Linux: Out-of-bounds Read
CVE-2024-38560 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 481fc0c8617304a67649027c4a44723a139a0462, 595a6b98deec01b6dbb20139f71edcd5fb760ec2, 00b425ff0891283207d7bad607a2412225274d7a 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.27% 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 481fc0c8617304a67649027c4a44723a139a0462 or 595a6b98deec01b6dbb20139f71edcd5fb760ec2 or 00b425ff0891283207d7bad607a2412225274d7a or 1708e3cf2488788cba5489e4f913d227de757baf, whichever matches your release line, or a later version.
- Update SIMATIC S7-1500 TM MFP - GNU/Linux subsystem to V1.1.1 or a later version.
- Update Linux Kernel to 4.19.316 or 5.4.278 or 5.10.219 or 5.15.161, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 481fc0c8617304a67649027c4a44723a139a0462; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 595a6b98deec01b6dbb20139f71edcd5fb760ec2; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 00b425ff0891283207d7bad607a2412225274d7a; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 1708e3cf2488788cba5489e4f913d227de757baf; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 204714e68015d6946279719fd464ecaf57240f35; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, 7510fab46b1cbd1680e2a096e779aec3334b4143; 9f30b674759b9a2da25aefe25d885161d8a911cb up to, but not including, ecb76200f5557a2886888aaa53702da1ab9e6cdf; and 2 more ranges | 481fc0c8617304a67649027c4a44723a139a0462, 595a6b98deec01b6dbb20139f71edcd5fb760ec2, 00b425ff0891283207d7bad607a2412225274d7a, 1708e3cf2488788cba5489e4f913d227de757baf, 7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c, 204714e68015d6946279719fd464ecaf57240f35 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | before V1.1.1 | V1.1.1 |
| Linux | Linux Kernel | 3.19 up to, but not including, 4.19.316; 4.20 up to, but not including, 5.4.278; 5.5 up to, but not including, 5.10.219; 5.11 up to, but not including, 5.15.161; 5.16 up to, but not including, 6.1.93; 6.2 up to, but not including, 6.6.33; 6.7 up to, but not including, 6.8.12; 6.9 up to, but not including, 6.9.3 | 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33 |
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: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.
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
- git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
- git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
- git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
- git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
- git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
- git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
- git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
- git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
- git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
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.5 High severity
- 7.1 High severity
Spotted an error? Tell us.