CVE-2024-50074 parport: Proper fix for array out-of-bounds access

High 7.8 Published Updated

An out-of-bounds access in the Linux kernel parport driver can lead to memory corruption, potentially causing denial of service or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50074?

CVE-2024-50074 is a high-severity memory corruption vulnerability in Linux kernel, published on 29 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2024-50074?

It affects 2 products.

Products include Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2024-50074?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-50074 being exploited?

There is no known exploitation of CVE-2024-50074 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-50074, DEBIAN-CVE-2024-50074, GHSA-8cgr-vwjm-54q7, UBUNTU-CVE-2024-50074.

Is CVE-2024-50074 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free