PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-41013: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-41013 affects the Linux kernel's XFS filesystem implementation. The vulnerability was discovered and disclosed on July 29, 2024, and involves a potential out-of-bounds read vulnerability in the directory data block handling code. The issue affects Linux kernel systems that use the XFS filesystem (NVD).

Technical details

The vulnerability exists in the XFS filesystem code where the directory data block traversal logic lacks proper bounds checking. Before the patch, the code only verified that the start offset of directory entries was within range. In a crafted filesystem image, if the last entry is xfs_dir2_data_unused, an attacker could modify dup->length to dup->length-1, leaving 1 byte of space that could be incorrectly interpreted as a new entry in subsequent traversals, potentially leading to an out-of-bounds read when accessing fixed members (Kernel Git).

Impact

The vulnerability could allow an attacker with the ability to create or modify XFS filesystem images to cause an out-of-bounds read in the kernel, potentially leading to information disclosure or system crashes. This affects systems where untrusted users can mount or interact with XFS filesystems (NVD).

Exploitability

The vulnerability requires an attacker to have access to create or modify XFS filesystem images. It can be triggered by crafting a malicious filesystem image where the last directory entry is manipulated to cause the out-of-bounds read condition (Kernel Git).

Mitigation and workarounds

The vulnerability has been patched by adding proper sanity checks for xfs_dir2_data_unused and xfs_dir2_data_entry to ensure they don't access memory beyond valid regions. The fix ensures that remaining bytes are large enough to hold an unused entry before accessing xfs_dir2_data_unused and validates that xfs_dir2_data_unused is XFS_DIR2_DATA_ALIGN byte aligned. It also verifies that remaining bytes are sufficient to hold a directory entry with a single-byte name before accessing xfs_dir2_data_entry (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.147-1

Fixed

bullseye

linux-6.1: 6.1.153-1~deb11u1

Fixed

sid

linux: 6.11.2-1

Fixed

trixie

linux: 6.11.2-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-7356HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules
NoYesOct 21, 2026
CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • python3-perf
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-internal
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-devel-matched
NoYesOct 18, 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