CVE-2024-50074

parport: Proper fix for array out-of-bounds access

7.8 high EPSS 0.24%

Published 29 Oct 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-50074

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50074 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 166a0bddcc27de41fe13f861c8348e8e53e988c8, before 8aadef73ba3b325704ed5cfc4696a25c350182cf
affected from 47b3dce100778001cd76f7e9188944b5cb27a76d, before b0641e53e6cb937487b6cfb15772374f0ba149b3
affected from a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0, before 1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa
affected from c719b393374d3763e64900ee19aaed767d5a08d6, before 440311903231c6e6c9bcf8acb6a2885a422e00bc
affected from 7f4da759092a1a6ce35fb085182d02de8cc4cc84, before fca048f222ce9dcbde5708ba2bf81d85a4a27952
affected from b579ea3516c371ecf59d073772bc45dfd28c8a0e, before 66029078fee00646e2e9dbb8f41ff7819f8e7569
affected from ab11dac93d2d568d151b1918d7b84c2d02bacbd5, before 2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6
affected from ab11dac93d2d568d151b1918d7b84c2d02bacbd5, before 02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9
affected 7789a1d6792af410aa9b39a1eb237ed24fa2170a
affected from 4.19.320, before 4.19.323
affected from 5.4.282, before 5.4.285
affected from 5.10.224, before 5.10.228
affected from 5.15.165, before 5.15.169
affected from 6.1.103, before 6.1.114
affected from 6.6.44, before 6.6.58
affected from 6.10.3, before 6.11
Other versions: unaffected
Linux
affected 6.11
unaffected before 6.11
unaffected from 4.19.323 up to and including 4.19.*
unaffected from 5.4.285 up to and including 5.4.*
unaffected from 5.10.228 up to and including 5.10.*
unaffected from 5.15.169 up to and including 5.15.*
unaffected from 6.1.114 up to and including 6.1.*
unaffected from 6.6.58 up to and including 6.6.*
unaffected from 6.11.5 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50074 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50074

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-50074
trivy image --scanners vuln IMAGE | grep CVE-2024-50074

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-50074 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.