CVE-2021-4155
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-4155 is a data leak vulnerability discovered in the XFS filesystem's XFSIOCALLOCSP IOCTL implementation. The flaw allowed for size increase of files with unaligned size, potentially exposing sensitive data. The vulnerability was discovered by Kirill Tkhai from the Virtuozzo Kernel team and was fixed in Linux Kernel 5.16 (Kernel Commit, OSS Security).

Technical details

The vulnerability occurs when a file is truncated by an unaligned size and then the XFSIOCALLOCSP IOCTL is used to increase the file size up to 4096 bytes. In this scenario, xfsiocspace()->xfsvnsetattrsize() fails to zero the memory region between rounddown(size, 4096) and size, leading to potential data leakage. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability allows local attackers to access data on the XFS filesystem that would otherwise be inaccessible to them. This could lead to unauthorized disclosure of sensitive information stored in the filesystem (Red Hat CVE).

Mitigation and workarounds

The vulnerability was fixed in Linux Kernel 5.16 by modifying the behavior of XFSIOCALLOCSP IOCTL to properly handle unaligned file sizes. The fix makes the behavior consistent with other similar operations like fallocate and RESVSP. Various Linux distributions have backported the fix to their maintained kernel versions (Debian Security, Red Hat Errata).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-39866N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesSep 19, 2025
CVE-2025-39865N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesSep 19, 2025
CVE-2025-39864N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules-extra
NoYesSep 19, 2025
CVE-2025-39863N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-core
NoYesSep 19, 2025
CVE-2025-39861N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoYesSep 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management