7.1

CVE-2024-41013: xfs: don't walk off the end of a directory data block

Modified
AliasesUBUNTU-CVE-2024-41013DEBIAN-CVE-2024-41013
Published 29-07-2024Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v3.1 (NVD)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 25 · Related 20

Timeline

  1. 29-07-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

19 links
Show all 19 references