Out-of-bounds Read in Linux
CVE-2024-50074
In the Linux kernel, the following vulnerability has been resolved:
parport: Proper fix for array out-of-bounds access
The recent fix for array out-of-bounds accesses replaced sprintf()
calls blindly with snprintf(). However, since snprintf() returns the
would-be-printed size, not the actually output size, the length
calculation can still go over the given limit.
Use scnprintf() instead of snprintf(), which returns the actually
output letters, for addressing the potential out-of-bounds access
properly.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.002, 15.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 5.10.224, 7f4da759092a1a6ce35fb085182d02de8cc4cc84, b579ea3516c371ecf59d073772bc45dfd28c8a0e
- Linux Kernel — versions 6.12
- Red Hat Enterprise Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/8aadef73ba3b325704ed5cfc4696a25c350182cf
- git.kernel.org/stable/c/b0641e53e6cb937487b6cfb15772374f0ba149b3
- git.kernel.org/stable/c/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa (Patch)
- git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc (Patch)
- git.kernel.org/stable/c/fca048f222ce9dcbde5708ba2bf81d85a4a27952 (Patch)
- git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569 (Patch)
- git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6 (Patch)
- git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9 (Patch)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html