Wiz Agents & Workflows are here

CVE-2021-4155
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-4155 is a data leak vulnerability discovered in the XFS filesystem's XFS_IOC_ALLOCSP 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 XFS_IOC_ALLOCSP IOCTL is used to increase the file size up to 4096 bytes. In this scenario, xfs_ioc_space()->xfs_vn_setattr_size() fails to zero the memory region between round_down(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 XFS_IOC_ALLOCSP 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-2026-23395CRITICAL9.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoYesMar 25, 2026
CVE-2026-23399MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesMar 28, 2026
CVE-2026-23398MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug
NoYesMar 26, 2026
CVE-2026-23397MEDIUM4.4
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules-core
NoYesMar 26, 2026
CVE-2026-31788N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde
NoYesMar 25, 2026

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