CVE-2025-68282: usb: gadget: udc: fix use-after-free in usb_gadget_state_work
Noroxi assessment
Priority: Monitor (action score 0/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.20% (FIRST EPSS).
- Fixed version: Linux Linux 10014310193cf6736c1aeb4105c5f4a0818d0c65, 3b32caa73d135eea8fb9cabb45e9fc64c5a3ecb9, baeb66fbd4201d1c4325074e78b1f557dff89b5b.
Low priority for now. Upgrade to Linux Linux 10014310193cf6736c1aeb4105c5f4a0818d0c65, 3b32caa73d135eea8fb9cabb45e9fc64c5a3ecb9, baeb66fbd4201d1c4325074e78b1f557dff89b5b 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: udc: fix use-after-free in usb_gadget_state_work A race condition during gadget teardown can lead to a use-after-free in usb_gadget_state_work(), as reported by KASAN: BUG: KASAN: invalid-access in sysfs_notify+0x2c/0xd0 Workqueue: events usb_gadget_state_work The fundamental race occurs because a concurrent event (e.g., an interrupt) can call usb_gadget_set_state() and schedule gadget->work at any time during the cleanup process in usb_del_gadget(). Commit 399a45e5237c ("usb: gadget: core: flush gadget workqueue after device removal") attempted to fix this by moving flush_work() to after device_del(). However, this does not fully solve the race, as a new work item can still be scheduled *after* flush_work() completes but before the gadget's memory is freed, leading to the same use-after-free. This patch fixes the race condition robustly by introducing a 'teardown' flag and a 'state_lock' spinlock to the usb_gadget struct. The flag is set during cleanup in usb_del_gadget() *before* calling flush_work() to prevent any new work from being scheduled once cleanup has commenced. The scheduling site, usb_gadget_set_state(), now checks this flag under the lock before queueing the work, thus safely closing the race window.
- Published
- Dec 16, 2025
- Updated
- Oct 13, 2026
- EPSS
- 0.2% · 10th percentile
- CWE
- —
Report tools
Action score
0
Monitor
Low priority for now.
- CVSS
- 0 / 40 · —
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
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.
—
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.12affected
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before dddc944d65169b552e09cb54e3ed4fbb9ea26416affected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before eee16f3ff08e759ea828bdf7dc1c0ef2f22134f5affected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before c12a0c3ef815ddd67e47f9c819f9fe822fed5467affected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before f02a412c0a18f02f0f91b0a3d9788315a721b7fdaffected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before 10014310193cf6736c1aeb4105c5f4a0818d0c65affected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before 3b32caa73d135eea8fb9cabb45e9fc64c5a3ecb9affected · git
- 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 and later · before baeb66fbd4201d1c4325074e78b1f557dff89b5baffected · git
- before 3.12not affected · semver
- 5.10.248 and later · up to and including 5.10.*not 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.159-1 | 6.1.159-1 |
| Debian:13 | linux | before 6.12.63-1 | 6.12.63-1 |
| Debian:14 | linux | before 6.17.11-1 | 6.17.11-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation40Plan
- CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment40Plan
- CVE-2026-74475vxlan: use neigh_ha_snapshot() in route_shortcircuit()40Plan
Published before and after this one in the same product
- ← EarlierCVE-2025-68266Dec 16, 2025 · bfs: Reconstruct file type when loading from disk0Monitor
- ← EarlierCVE-2025-68281Dec 16, 2025 · ASoC: SDCA: bug fix while parsing mipi-sdca-control-cn-list0Monitor
- Later →CVE-2025-68283Dec 16, 2025 · libceph: replace BUG_ON with bounds check for map->max_osd30Monitor
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 | 10014310193cf6736c1aeb4105c5f4a0818d0c65 | Vendor (CNA) |
| Linux Linux | 3b32caa73d135eea8fb9cabb45e9fc64c5a3ecb9 | Vendor (CNA) |
| Linux Linux | baeb66fbd4201d1c4325074e78b1f557dff89b5b | Vendor (CNA) |
| Linux Linux | c12a0c3ef815ddd67e47f9c819f9fe822fed5467 | Vendor (CNA) |
| Linux Linux | dddc944d65169b552e09cb54e3ed4fbb9ea26416 | Vendor (CNA) |
| Linux Linux | eee16f3ff08e759ea828bdf7dc1c0ef2f22134f5 | Vendor (CNA) |
| Linux Linux | f02a412c0a18f02f0f91b0a3d9788315a721b7fd | Vendor (CNA) |
| debian:linux | 6.1.159-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.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
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
No CVSS vector for this record, so attack conditions can't be derived.
Weakness class (CWE)
—
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 (6 more)Show less
- git.kernel.org/stable/c/3b32caa73d135eea8fb9cabb45e9fc64c5a3ecb9
- git.kernel.org/stable/c/baeb66fbd4201d1c4325074e78b1f557dff89b5b
- git.kernel.org/stable/c/c12a0c3ef815ddd67e47f9c819f9fe822fed5467
- git.kernel.org/stable/c/dddc944d65169b552e09cb54e3ed4fbb9ea26416
- git.kernel.org/stable/c/eee16f3ff08e759ea828bdf7dc1c0ef2f22134f5
- git.kernel.org/stable/c/f02a412c0a18f02f0f91b0a3d9788315a721b7fd
Vendor advisories and official records. Exploit/PoC links are deliberately left out.