Linux: Out-of-bounds Read
CVE-2024-41013 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.1 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions b0932e4f9da85349d1c8f2a77d2a7a7163b8511d, ca96d83c93071f95cf962ce92406621a472df31b, 0c7fcdb6d06cdf8b19b57c17605215b06afa864a as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.22% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to b0932e4f9da85349d1c8f2a77d2a7a7163b8511d or ca96d83c93071f95cf962ce92406621a472df31b or 0c7fcdb6d06cdf8b19b57c17605215b06afa864a, whichever matches your release line, or a later version.
- Update Linux Kernel to 6.1.142 or 6.6.68 or 6.11, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 82025d7f79148fe66a1594a0ebe4ab38152cf9e6 up to, but not including, b0932e4f9da85349d1c8f2a77d2a7a7163b8511d; 82025d7f79148fe66a1594a0ebe4ab38152cf9e6 up to, but not including, ca96d83c93071f95cf962ce92406621a472df31b; 82025d7f79148fe66a1594a0ebe4ab38152cf9e6 up to, but not including, 0c7fcdb6d06cdf8b19b57c17605215b06afa864a; 3.8 | b0932e4f9da85349d1c8f2a77d2a7a7163b8511d, ca96d83c93071f95cf962ce92406621a472df31b, 0c7fcdb6d06cdf8b19b57c17605215b06afa864a |
| Linux | Linux Kernel | before 6.1.142; 6.2 up to, but not including, 6.6.68; 6.7 up to, but not including, 6.11 | 6.1.142, 6.6.68, 6.11 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
How developers prevent this class of flaw
- Use a language that provides appropriate memory abstractions.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
Other references
Recent Out-of-bounds Read vulnerabilities
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.8 High severity
- 7.1 High severity
Spotted an error? Tell us.