CVE-2024-50074

Source
https://cve.org/CVERecord?id=CVE-2024-50074
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50074.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50074
Downstream
Related
Published
2024-10-29T00:50:16.263Z
Modified
2026-03-11T07:50:08.325955Z
Summary
parport: Proper fix for array out-of-bounds access
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50074.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
166a0bddcc27de41fe13f861c8348e8e53e988c8
Fixed
8aadef73ba3b325704ed5cfc4696a25c350182cf
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
47b3dce100778001cd76f7e9188944b5cb27a76d
Fixed
b0641e53e6cb937487b6cfb15772374f0ba149b3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0
Fixed
1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c719b393374d3763e64900ee19aaed767d5a08d6
Fixed
440311903231c6e6c9bcf8acb6a2885a422e00bc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7f4da759092a1a6ce35fb085182d02de8cc4cc84
Fixed
fca048f222ce9dcbde5708ba2bf81d85a4a27952
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b579ea3516c371ecf59d073772bc45dfd28c8a0e
Fixed
66029078fee00646e2e9dbb8f41ff7819f8e7569
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ab11dac93d2d568d151b1918d7b84c2d02bacbd5
Fixed
2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6
Fixed
02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
7789a1d6792af410aa9b39a1eb237ed24fa2170a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50074.json"