CVE
CVE-2024-50074
CNA description
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.
Affected versions
All Linux kernel vulnerabilities →
- 6.12-rc3This version only
- 6.12-rc2This version only
- 6.12-rc1This version only
- ≥ 6.7, < 6.11.5Fixed in 6.11.5
- ≥ 6.2, < 6.6.58Fixed in 6.6.58
- ≥ 5.16, < 6.1.114Fixed in 6.1.114
- ≥ 5.11, < 5.15.169Fixed in 5.15.169
- ≥ 5.10.224, < 5.10.228Fixed in 5.10.228
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9 · Patch
- git.kernel.org/stable/c/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa · Patch
- git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6 · Patch
- git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc · Patch
- git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569 · Patch
- git.kernel.org/stable/c/fca048f222ce9dcbde5708ba2bf81d85a4a27952 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.