CVE-2024-42236: usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.24% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 2d16f63d8030903e5031853e79d731ee5d474e70, 6d3c721e686ea6c59e18289b400cc95c76e927e0, 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce.
- Severity is disputed: the assigning authority (CNA) scores it 7.8, NVD 5.5.
Low priority for now. Upgrade to Linux Linux 2d16f63d8030903e5031853e79d731ee5d474e70, 6d3c721e686ea6c59e18289b400cc95c76e927e0, 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Aug 7, 2024
- Updated
- Aug 5, 2026
- EPSS
- 0.2% · 15th percentile
- CWE
- CWE-787
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 5.5
- CNA · Linux
- 7.8
- 2.3 point gap
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernelbefore 4.19.318
- linux linux kernel4.20 and later · before 5.4.280
- linux linux kernel5.5 and later · before 5.10.222
- linux linux kernel5.11 and later · before 5.15.163
- linux linux kernel5.16 and later · before 6.1.100
- linux linux kernel6.2 and later · before 6.6.41
- linux linux kernel6.7 and later · before 6.9.10
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 3.10affected
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before a444c3fc264119801575ab086e03fb4952f23fd0affected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before c95fbdde87e39e5e0ae27f28bf6711edfb985caaaffected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before e8474a10c535e6a2024c3b06e37e4a3a23beb490affected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ceaffected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before 2d16f63d8030903e5031853e79d731ee5d474e70affected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before d1205033e912f9332c1dbefa812e6ceb0575ce0aaffected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before eecfefad0953b2f31aaefa058f7f348ff39c4bbaaffected · git
- 88af8bbe4ef781031ad3370847553f3b42ba0076 and later · before 6d3c721e686ea6c59e18289b400cc95c76e927e0affected · git
- before 3.10not affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.106-1 | 6.1.106-1 |
| Debian:13 | linux | before 6.9.10-1 | 6.9.10-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2024-42234Aug 7, 2024 · mm: fix crashes from deferred split racing folio migration22Monitor
- ← EarlierCVE-2024-42235Aug 7, 2024 · s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()22Monitor
- Later →CVE-2024-42237Aug 7, 2024 · firmware: cs_dsp: Validate payload length before processing block22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 2d16f63d8030903e5031853e79d731ee5d474e70 | Vendor (CNA) |
| Linux Linux | 6d3c721e686ea6c59e18289b400cc95c76e927e0 | Vendor (CNA) |
| Linux Linux | 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce | Vendor (CNA) |
| Linux Linux | a444c3fc264119801575ab086e03fb4952f23fd0 | Vendor (CNA) |
| Linux Linux | c95fbdde87e39e5e0ae27f28bf6711edfb985caa | Vendor (CNA) |
| Linux Linux | d1205033e912f9332c1dbefa812e6ceb0575ce0a | Vendor (CNA) |
| Linux Linux | e8474a10c535e6a2024c3b06e37e4a3a23beb490 | Vendor (CNA) |
| Linux Linux | eecfefad0953b2f31aaefa058f7f348ff39c4bba | Vendor (CNA) |
| debian:linux | 6.1.106-1 · Debian:12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0
- git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce
- git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0
- git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa
- git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a
- git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490
- git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.