CVE-2025-68282
Patch priority
RegularFix with the next regular update.
- CVSS
- –
- Severity
- –
- EPSS
- 0.2 %
- Percentile
- 13
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Everyone who uses Linux-Kernel.
How dangerous is it?
- How an attack works has not been rated yet.
What to do?
- Include it in your next regular update.
- Install your distribution’s kernel update and reboot – the new kernel only runs after a restart.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDIn 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
- 16.12.2025
- Modified
- 13.10.2026
- Status
- Deferred
Vendor updates
27- Ubuntu: USN-8261-1 – Linux kernel (Xilinx) vulnerabilities 07.05.2026 · Critical · Patch day
- Ubuntu: USN-8243-1 – Linux kernel (Azure) vulnerabilities 07.05.2026 · Critical · Patch day
- Ubuntu: USN-8163-2 – Linux kernel (Azure) vulnerabilities 14.04.2026 · Critical · Patch day
- Ubuntu: USN-8165-1 – Linux kernel (Azure FIPS) vulnerabilities 10.04.2026 · Critical · Patch day
- Ubuntu: USN-8163-1 – Linux kernel (Azure FIPS) vulnerabilities 10.04.2026 · Critical · Patch day
- Ubuntu: USN-8152-1 – Linux kernel (OEM) vulnerabilities 06.04.2026 · Critical · Patch day
- Ubuntu: USN-8095-5 – Linux kernel (Raspberry Pi) vulnerabilities 01.04.2026 · Critical · Patch day
- Ubuntu: USN-8141-1 – Linux kernel (Raspberry Pi) vulnerabilities 01.04.2026 · Critical · Patch day
- Ubuntu: USN-8094-5 – Linux kernel (Raspberry Pi) vulnerabilities 01.04.2026 · Critical · Patch day
- Ubuntu: USN-8126-1 – Linux kernel (Azure) vulnerabilities 25.03.2026 · Critical · Patch day
- Ubuntu: USN-8125-1 – Linux kernel (Azure) vulnerabilities 25.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-4 – Linux kernel (Azure) vulnerabilities 25.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-3 – Linux kernel (Real-time) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8095-4 – Linux kernel (AWS) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8096-5 – Linux kernel (NVIDIA Tegra IGX) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8116-1 – Linux kernel (Intel IoTG Real-time) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8096-4 – Linux kernel (Real-time) vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8096-3 – Linux kernel vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-2 – Linux kernel vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8095-3 – Linux kernel (Real-time) vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8096-2 – Linux kernel (FIPS) vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8095-2 – Linux kernel (FIPS) vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8100-1 – Linux kernel (NVIDIA) vulnerabilities 16.03.2026 · Critical · Patch day
- Ubuntu: USN-8096-1 – Linux kernel vulnerabilities 16.03.2026 · Critical · Patch day
- Ubuntu: USN-8095-1 – Linux kernel vulnerabilities 16.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-1 – Linux kernel vulnerabilities 16.03.2026 · Critical · Patch day
- Microsoft: Mariner 18.12.2025 · Medium · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.