parport: Proper fix for array out-of-bounds access (Linux Linux)

CVE-2024-50074
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 166a0bddcc27de41fe13f861c8348e8e53e988c8 < 8aadef73ba3b325704ed5cfc4696a25c350182cf ; affected 47b3dce100778001cd76f7e9188944b5cb27a76d < b0641e53e6cb937487b6cfb15772374f0ba149b3 ; affected a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0 < 1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa ; affected c719b393374d3763e64900ee19aaed767d5a08d6 < 440311903231c6e6c9bcf8acb6a2885a422e00bc ; affected 7f4da759092a1a6ce35fb085182d02de8cc4cc84 < fca048f222ce9dcbde5708ba2bf81d85a4a27952 ; affected b579ea3516c371ecf59d073772bc45dfd28c8a0e < 66029078fee00646e2e9dbb8f41ff7819f8e7569
Linux · Linuxaffected 6.11 ; unaffected 0 < 6.11 ; unaffected 4.19.323 ≤ 4.19.* ; unaffected 5.4.285 ≤ 5.4.* ; unaffected 5.10.228 ≤ 5.10.* ; unaffected 5.15.169 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD