CVE-2024-41013: xfs: don't walk off the end of a directory data block
Vulnerability summary
CVE-2024-41013 is a high (CVSS 7.1) Out-of-bounds Read vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.8% of scored vulnerabilities.
Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 25 · Related 20Timeline
- 29-07-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu131 products
- linuxAll versions (No fix recorded) | < 6.8.0-60.63
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1029.31
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 82025d7f79148fe66a1594a0ebe4ab38152cf9e6, < b0932e4f9da85349d1c8f2a77d2a7a7163b8511d | ≥ 82025d7f79148fe66a1594a0ebe4ab38152cf9e6, < ca96d83c93071f95cf962ce92406621a472df31b | ≥ 82025d7f79148fe66a1594a0ebe4ab38152cf9e6, < 0c7fcdb6d06cdf8b19b57c17605215b06afa864a | 3.8
- linux_kernel< 6.1.142 | ≥ 6.2, < 6.6.68 | ≥ 6.7, < 6.11
Debian1 product
- linux< 6.1.147-1 | < 6.11.2-1
3 vendors · 134 products