CVE-2024-50074

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

State
Published
Severity
7.8 High
Published
Oct 29, 2024
Updated
Aug 5, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 166a0bddcc27de41fe13f861c8348e8e53e988c8 to before 8aadef73ba3b325704ed5cfc4696a25c350182cfAffected
  • 47b3dce100778001cd76f7e9188944b5cb27a76d to before b0641e53e6cb937487b6cfb15772374f0ba149b3Affected
  • a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0 to before 1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaaAffected
  • c719b393374d3763e64900ee19aaed767d5a08d6 to before 440311903231c6e6c9bcf8acb6a2885a422e00bcAffected
  • 7f4da759092a1a6ce35fb085182d02de8cc4cc84 to before fca048f222ce9dcbde5708ba2bf81d85a4a27952Affected
  • b579ea3516c371ecf59d073772bc45dfd28c8a0e to before 66029078fee00646e2e9dbb8f41ff7819f8e7569Affected
  • ab11dac93d2d568d151b1918d7b84c2d02bacbd5 to before 2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6Affected
  • ab11dac93d2d568d151b1918d7b84c2d02bacbd5 to before 02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9Affected
  • 7789a1d6792af410aa9b39a1eb237ed24fa2170aAffected
  • 4.19.320 to before 4.19.323Affected
  • 5.4.282 to before 5.4.285Affected
  • 5.10.224 to before 5.10.228Affected
  • 5.15.165 to before 5.15.169Affected
  • 6.1.103 to before 6.1.114Affected
  • 6.6.44 to before 6.6.58Affected
  • 6.10.3 to before 6.11Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 4.19.323 through 4.19.*Not affected
  • 5.4.285 through 5.4.*Not affected
  • 5.10.228 through 5.10.*Not affected
  • 5.15.169 through 5.15.*Not affected
  • 6.1.114 through 6.1.*Not affected
  • 6.6.58 through 6.6.*Not affected
  • 6.11.5 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.