CVE-2024-50074
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 166a0bddcc27de41fe13f861c8348e8e53e988c8 before 8aadef73ba3b325704ed5cfc4696a25c350182cf, from 47b3dce100778001cd76f7e9188944b5cb27a76d before b0641e53e6cb937487b6cfb15772374f0ba149b3, from a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0 before 1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa, from c719b393374d3763e64900ee19aaed767d5a08d6 before 440311903231c6e6c9bcf8acb6a2885a422e00bc, from 7f4da759092a1a6ce35fb085182d02de8cc4cc84 before fca048f222ce9dcbde5708ba2bf81d85a4a27952, from b579ea3516c371ecf59d073772bc45dfd28c8a0e before 66029078fee00646e2e9dbb8f41ff7819f8e7569, from ab11dac93d2d568d151b1918d7b84c2d02bacbd5 before 2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6, from ab11dac93d2d568d151b1918d7b84c2d02bacbd5 before 02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9 and 9 more
Not affected: before 6.11, from 4.19.323 up to 4.19.*, from 5.4.285 up to 5.4.*, from 5.10.228 up to 5.10.*, from 5.15.169 up to 5.15.*, from 6.1.114 up to 6.1.*
CVE List
linux linux_kernelfrom 5.10.224 before 5.10.228, from 5.11 before 5.15.169, from 5.16 before 6.1.114, from 6.2 before 6.6.58, from 6.7 before 6.11.5, 6.12NVD
redhat enterprise_linux8.0, 9.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: parport: Solución adecuada para el acceso fuera de los límites a matrices La solución reciente para los accesos fuera de los límites a matrices reemplazó las llamadas sprintf() ciegamente con snprintf(). Sin embargo, dado que snprintf() devuelve el tamaño que se imprimirá, no el tamaño de salida real, el cálculo de la longitud aún puede superar el límite dado. Utilice scnprintf() en lugar de snprintf(), que devuelve las letras de salida reales, para abordar el posible acceso fuera de los límites correctamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50074 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-50074 changed 2026-08-04Public domain