
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."