Linux: Off-by-one Error
CVE-2024-47682 is a high-severity off-by-one error vulnerability in Linux, with a CVSS 3.1 base score of 7.8 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 60312ae7392f9c75c6591a52fc359cf7f810d48f, 568c7c4c77eee6df7677bb861b7cee7398a3255d, a776050373893e4c847a49abeae2ccb581153df0 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.54% 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 60312ae7392f9c75c6591a52fc359cf7f810d48f or 568c7c4c77eee6df7677bb861b7cee7398a3255d or a776050373893e4c847a49abeae2ccb581153df0 or 413df704f149dec585df07466d2401bbd1f490a0, whichever matches your release line, or a later version.
- Update Linux Kernel to 6.1.113 or 6.6.54 or 6.10.13 or 6.11.2, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 7fb019c46eeea4e3cc3ddfd3e01a24e610f34fac up to, but not including, 60312ae7392f9c75c6591a52fc359cf7f810d48f; 7fb019c46eeea4e3cc3ddfd3e01a24e610f34fac up to, but not including, 568c7c4c77eee6df7677bb861b7cee7398a3255d; 7fb019c46eeea4e3cc3ddfd3e01a24e610f34fac up to, but not including, a776050373893e4c847a49abeae2ccb581153df0; 7fb019c46eeea4e3cc3ddfd3e01a24e610f34fac up to, but not including, 413df704f149dec585df07466d2401bbd1f490a0; 7fb019c46eeea4e3cc3ddfd3e01a24e610f34fac up to, but not including, f81eaf08385ddd474a2f41595a7757502870c0eb; 5.19 | 60312ae7392f9c75c6591a52fc359cf7f810d48f, 568c7c4c77eee6df7677bb861b7cee7398a3255d, a776050373893e4c847a49abeae2ccb581153df0, 413df704f149dec585df07466d2401bbd1f490a0, f81eaf08385ddd474a2f41595a7757502870c0eb |
| Linux | Linux Kernel | 5.19 up to, but not including, 6.1.113; 6.2 up to, but not including, 6.6.54; 6.7 up to, but not including, 6.10.13; 6.11 up to, but not including, 6.11.2 | 6.1.113, 6.6.54, 6.10.13, 6.11.2 |
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
- HighData or code can be modified at will.
- 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:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.6 | High | CNA |
| CVSS 3.1 | 7.8 | High | NVD |
Official description
In the Linux kernel, the following vulnerability has been resolved: scsi: sd: Fix off-by-one error in sd_read_block_characteristics() Ff the device returns page 0xb1 with length 8 (happens with qemu v2.x, for example), sd_read_block_characteristics() may attempt an out-of-bounds memory access when accessing the zoned field at offset 8.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Off-by-one Error
A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
How developers prevent this class of flaw
- When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().
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/413df704f149dec585df07466d2401bbd1f490a0
- git.kernel.org/stable/c/568c7c4c77eee6df7677bb861b7cee7398a3255d
- git.kernel.org/stable/c/60312ae7392f9c75c6591a52fc359cf7f810d48f
- git.kernel.org/stable/c/a776050373893e4c847a49abeae2ccb581153df0
- git.kernel.org/stable/c/f81eaf08385ddd474a2f41595a7757502870c0eb
Other references
Recent Off-by-one Error vulnerabilities
- 7.8 High severity
- 7.1 High severity
- 7.1 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.