CVE-2024-41013·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: xfs: don't walk off the end of a directory data block This adds sanity checks for xfs_dir2_data_unused and xfs_dir2_data_entry to make sure don't stray beyond valid memory region. Before patching, the loop simply checks that the start offset of the dup and dep is within the range. So in a crafted image, if last entry is xfs_dir2_data_unused, we can change dup->length to dup->length-1 and leave 1 byte of space. In the next traversal, this space will be considered as dup or dep. We may encounter an out of bound read when accessing the fixed members. In the patch, we make sure that the remaining bytes large enough to hold an unused entry before accessing xfs_dir2_data_unused and xfs_dir2_data_unused is XFS_DIR2_DATA_ALIGN byte aligned. We also make sure that the remaining bytes large enough to hold a dirent with a single-byte name before accessing xfs_dir2_data_entry.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11
- Published
- 2024-07-29
Affected versions
From: 6.7
Until: 6.11
Fixed in: 6.11
How to fix this CVE
Update your Linux kernel to version 6.11 or later to resolve this XFS directory traversal vulnerability. Systems running kernel versions 6.7 through 6.10 are vulnerable to out-of-bounds memory reads when processing maliciously crafted XFS filesystem images. Apply the kernel update immediately and reboot your system to ensure protection.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; if it reports 6.7.x through 6.10.x, your system is vulnerable.
- Check if XFS filesystems are mounted using 'mount | grep xfs' — systems without XFS are not exposed to this particular vulnerability path.
- Search kernel logs with 'sudo dmesg | grep -i xfs' or 'sudo journalctl -k | grep -i xfs' for any memory access errors or XFS warnings.
- After patching, verify the new kernel version with 'uname -r' returns 6.11 or later, confirming the fix is active.
FAQ
What is CVE-2024-41013?
This is a memory safety vulnerability in the Linux kernel's XFS filesystem driver where insufficient boundary validation allows an attacker to read memory beyond valid data block boundaries by crafting a malicious XFS image with truncated directory entries.
Is CVE-2024-41013 being actively exploited?
No, CVE-2024-41013 is not listed as actively exploited in the CISA Known Exploited Vulnerabilities catalog, and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-41013?
Linux kernel versions 6.7 through 6.10 are vulnerable; kernel 6.11 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2024-41013?
Run 'uname -r' — if the output shows a version between 6.7 and 6.10 (e.g., 6.9.5), your kernel is vulnerable. Cross-reference with 'mount | grep xfs' to determine if XFS filesystems are in use.
Does Defensia detect CVE-2024-41013?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-41013 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0c7fcdb6d06cdf8b19b57c17605215b06afa864a
- https://git.kernel.org/stable/c/b0932e4f9da85349d1c8f2a77d2a7a7163b8511d
- https://git.kernel.org/stable/c/ca96d83c93071f95cf962ce92406621a472df31b
- https://git.kernel.org/stable/c/0c7fcdb6d06cdf8b19b57c17605215b06afa864a
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-41013. Free for 1 server.
Get started free