CVE-2024-50074·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.5
- Published
- 2024-10-29
Affected versions
From: 6.7
Until: 6.11.5
Fixed in: 6.11.5
How to fix this CVE
Update your Linux kernel to version 6.11.5 or later to resolve a memory safety issue in the parport subsystem that could allow privilege escalation. The vulnerability stems from improper buffer length calculations when formatting device names; apply the fix through your distribution's standard kernel update mechanism as soon as possible.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r — confirm if version falls between 6.7 and 6.11.4
- Verify parport module is loaded: lsmod | grep parport — if output exists, the vulnerable component is active
- Search kernel logs for parport-related errors: sudo dmesg | grep -i parport or sudo journalctl -b | grep -i parport — look for buffer overflow or memory access warnings
- After patching, verify the new kernel is running: uname -r should show version 6.11.5 or higher, and reboot if necessary
FAQ
What is CVE-2024-50074?
This CVE describes a memory buffer handling flaw in the Linux kernel's parport (parallel port) driver where incorrect string length calculations could lead to out-of-bounds memory access, potentially allowing a local attacker with user privileges to escalate to kernel-level code execution.
Is CVE-2024-50074 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploits are currently available, though the high CVSS score warrants prompt patching.
What versions of Kernel are affected by CVE-2024-50074?
Kernel versions 6.7 through 6.11.4 are vulnerable; version 6.11.5 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-50074?
Run 'uname -r' and compare the output against version 6.11.5 — if your kernel version is 6.7 to 6.11.4 and the parport module is loaded (verify with 'lsmod | grep parport'), your system is vulnerable.
Does Defensia detect CVE-2024-50074?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-50074 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9
- https://git.kernel.org/stable/c/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa
- https://git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6
- https://git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc
- https://git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-50074. Free for 1 server.
Get started free