CVE-2024-42236
Published: Aug 7, 2024
Modified: May 11, 2026
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() Userspace provided string 's' could trivially have the length zero. Left unchecked this will firstly result in an OOB read in the form `if (str[0 - 1] == '\n') followed closely by an OOB write in the form `str[0 - 1] = '\0'`. There is already a validating check to catch strings that are too long. Let's supply an additional check for invalid strings that are too short.
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected 88af8bbe4ef781031ad3370847553f3b42ba0076 - < a444c3fc264119801575ab086e03fb4952f23fd0affected 88af8bbe4ef781031ad3370847553f3b42ba0076 - < c95fbdde87e39e5e0ae27f28bf6711edfb985caaaffected 88af8bbe4ef781031ad3370847553f3b42ba0076 - < e8474a10c535e6a2024c3b06e37e4a3a23beb490affected 88af8bbe4ef781031ad3370847553f3b42ba0076 - < 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ceaffected 88af8bbe4ef781031ad3370847553f3b42ba0076 - < 2d16f63d8030903e5031853e79d731ee5d474e70+3 more versions |
Linux | Linux | affected 3.10unaffected 0 - < 3.10unaffected 4.19.318 - <= 4.19.*unaffected 5.4.280 - <= 5.4.*unaffected 5.10.222 - <= 5.10.*+5 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now