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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-10-29T00:50:16.263Z
- Modified: 2026-08-05T11:41:24.682Z
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; 7789a1d6792af410aa9b39a1eb237ed24fa2170a; from 4.19.320 before 4.19.323; from 5.4.282 before 5.4.285; from 5.10.224 before 5.10.228; and 5 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.*; from 6.6.58 up to 6.6.*; from 6.11.5 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 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.12
- redhat enterprise_linux: 8.0; 9.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/8aadef73ba3b325704ed5cfc4696a25c350182cf>
- <https://git.kernel.org/stable/c/b0641e53e6cb937487b6cfb15772374f0ba149b3>
- <https://git.kernel.org/stable/c/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa> (patch)
- <https://git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc> (patch)
- <https://git.kernel.org/stable/c/fca048f222ce9dcbde5708ba2bf81d85a4a27952> (patch)
- <https://git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569> (patch)
- <https://git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6> (patch)
- <https://git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50074](https://www.cve.org/CVERecord?id=CVE-2024-50074), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-50074](https://nvd.nist.gov/vuln/detail/CVE-2024-50074), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-50074 · Whole record: https://cve.day/CVE-2024-50074.json · Rebuilt by cve.day 2026-11-25T22:58:47.443Z
