{"id":"CVE-2024-50074","aliases":["CVE-2024-50074"],"related":[],"kind":"vulnerability","state":"published","title":"parport: Proper fix for array out-of-bounds access","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nparport: Proper fix for array out-of-bounds access\n\nThe recent fix for array out-of-bounds accesses replaced sprintf()\ncalls blindly with snprintf().  However, since snprintf() returns the\nwould-be-printed size, not the actually output size, the length\ncalculation can still go over the given limit.\n\nUse scnprintf() instead of snprintf(), which returns the actually\noutput letters, for addressing the potential out-of-bounds access\nproperly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nparport: Proper fix for array out-of-bounds access\n\nThe recent fix for array out-of-bounds accesses replaced sprintf()\ncalls blindly with snprintf().  However, since snprintf() returns the\nwould-be-printed size, not the actually output size, the length\ncalculation can still go over the given limit.\n\nUse scnprintf() instead of snprintf(), which returns the actually\noutput letters, for addressing the potential out-of-bounds access\nproperly.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-10-29T00:50:16.263Z","modified":"2026-08-05T11:41:24.682Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"166a0bddcc27de41fe13f861c8348e8e53e988c8","fixed":"8aadef73ba3b325704ed5cfc4696a25c350182cf","status":"affected"},{"type":"git","introduced":"47b3dce100778001cd76f7e9188944b5cb27a76d","fixed":"b0641e53e6cb937487b6cfb15772374f0ba149b3","status":"affected"},{"type":"git","introduced":"a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0","fixed":"1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa","status":"affected"},{"type":"git","introduced":"c719b393374d3763e64900ee19aaed767d5a08d6","fixed":"440311903231c6e6c9bcf8acb6a2885a422e00bc","status":"affected"},{"type":"git","introduced":"7f4da759092a1a6ce35fb085182d02de8cc4cc84","fixed":"fca048f222ce9dcbde5708ba2bf81d85a4a27952","status":"affected"},{"type":"git","introduced":"b579ea3516c371ecf59d073772bc45dfd28c8a0e","fixed":"66029078fee00646e2e9dbb8f41ff7819f8e7569","status":"affected"},{"type":"git","introduced":"ab11dac93d2d568d151b1918d7b84c2d02bacbd5","fixed":"2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6","status":"affected"},{"type":"git","introduced":"ab11dac93d2d568d151b1918d7b84c2d02bacbd5","fixed":"02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9","status":"affected"},{"type":"git","version":"7789a1d6792af410aa9b39a1eb237ed24fa2170a","status":"affected"},{"type":"semver","introduced":"4.19.320","fixed":"4.19.323","status":"affected"},{"type":"semver","introduced":"5.4.282","fixed":"5.4.285","status":"affected"},{"type":"semver","introduced":"5.10.224","fixed":"5.10.228","status":"affected"},{"type":"semver","introduced":"5.15.165","fixed":"5.15.169","status":"affected"},{"type":"semver","introduced":"6.1.103","fixed":"6.1.114","status":"affected"},{"type":"semver","introduced":"6.6.44","fixed":"6.6.58","status":"affected"},{"type":"semver","introduced":"6.10.3","fixed":"6.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.228","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.169","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.114","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.58","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.5","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10.224","fixed":"5.10.228"},{"status":"affected","introduced":"5.11","fixed":"5.15.169"},{"status":"affected","introduced":"5.16","fixed":"6.1.114"},{"status":"affected","introduced":"6.2","fixed":"6.6.58"},{"status":"affected","introduced":"6.7","fixed":"6.11.5"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8aadef73ba3b325704ed5cfc4696a25c350182cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0641e53e6cb937487b6cfb15772374f0ba149b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fca048f222ce9dcbde5708ba2bf81d85a4a27952","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50074","url":"https://www.cve.org/CVERecord?id=CVE-2024-50074","licence":"CVE Terms of Use","modified":"2026-08-05T11:41:24.682Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50074","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50074","licence":"Public domain","modified":"2026-08-04T11:21:15.143Z"}],"updatedAt":"2026-11-25T22:58:47.443Z","epss":{"score":0.0024,"percentile":0.16129,"date":"2026-12-01T12:00:22.000Z"}}