CVE-2024-42236usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
- 7.8HighCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 8 days later
· 8 days later
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < a444c3fc264119801575ab086e03fb4952f23fd0
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < c95fbdde87e39e5e0ae27f28bf6711edfb985caa
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < e8474a10c535e6a2024c3b06e37e4a3a23beb490
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < 2d16f63d8030903e5031853e79d731ee5d474e70
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < d1205033e912f9332c1dbefa812e6ceb0575ce0a
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < eecfefad0953b2f31aaefa058f7f348ff39c4bba
- affected 88af8bbe4ef781031ad3370847553f3b42ba0076 – < 6d3c721e686ea6c59e18289b400cc95c76e927e0
- affected 3.10
- unaffected < 3.10
- unaffected 4.19.318 – ≤ 4.19.*
- unaffected 5.4.280 – ≤ 5.4.*
- unaffected 5.10.222 – ≤ 5.10.*
- unaffected 5.15.163 – ≤ 5.15.*
- unaffected 6.1.100 – ≤ 6.1.*
- unaffected 6.6.41 – ≤ 6.6.*
- unaffected 6.9.10 – ≤ 6.9.*
- unaffected 6.10 – ≤ *
References
References9
- https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0 (opens in a new tab)
- https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa (opens in a new tab)
- https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490 (opens in a new tab)
- https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce (opens in a new tab)
- https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70 (opens in a new tab)
- https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a (opens in a new tab)
- https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba (opens in a new tab)
- https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0 (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-39440 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-42236)Record last updated .