Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local privileges to mount filesystems
-
DeliveryMount a FunctionFS (f_fs) instance
-
ExploitUnmount the instance (ffs_fs_kill_sb)
-
Executioncancel_work_sync on uninitialized reset_work
-
ImpactWARN_ON(!work->func) / panic under panic_on_warn
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Uninitialized pointer prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the target to run a kernel with CONFIG_USB_FUNCTIONFS and to mount a FunctionFS (f_fs) gadget instance, then unmount it - the WARN fires in the common case (no 'no_disconnect' option and no prior deactivation), because ffs_data_new() leaves reset_work.func NULL and ffs_fs_kill_sb() unconditionally calls cancel_work_sync() on it. Limiting factors: AV:L means local access only; PR:L means the attacker needs sufficient privilege to mount/unmount a functionfs filesystem (typically mount/CAP_SYS_ADMIN scope); the device must actually use the USB gadget functionfs subsystem (embedded/Android-style gadget mode), which is not present on typical servers/desktops; and the severity is materially worse only when panic_on_warn is enabled. Older kernels silently no-op'd the uninitialized work, so only newer kernels with the WARN guard are affected. |
| Impact | This is a low-priority, local availability issue despite the A:H in the supplied CVSS vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 5.5). The vector correctly reflects local access (AV:L), low complexity (AC:L), and some privilege requirement (PR:L) with no confidentiality or integrity impact (C:N/I:N). The decision signals reinforce low urgency: EPSS is 0.16% (6th percentile), there is no CISA KEV listing, and no public exploit reference is present - only vendor advisories and the upstream fix commits. The vuln.today priority is 'this_month', consistent with a routine local-only kernel hardening fix rather than an emergency. The practical effect described is a WARN_ON(!work->func) tripped by cancel_work_sync() on an uninitialized work struct during umount - i.e. a kernel warning/taint, not a demonstrated code-execution or corruption primitive; the A:H rating is only realistic on kernels configured with panic_on_warn, where the WARN becomes a panic. Note a signal mismatch: the input Tags label this 'Information Disclosure' and 'Memory Corruption', but the CVSS vector (C:N/I:N) and the described mechanism (uninitialized function pointer caught by a WARN guard) support neither - this is an availability/robustness defect. |
| Exploit ScenarioDerived | A local user or process able to mount and then unmount a FunctionFS (f_fs) gadget instance triggers ffs_fs_kill_sb(), which calls cancel_work_sync() on ffs->reset_work whose .func was never initialized, firing the kernel's WARN_ON guard. On systems configured with panic_on_warn this converts to a kernel panic (local denial of service); otherwise it produces a kernel warning and taint. No public exploit code is referenced; exploitation requires the privileges needed to mount/unmount a functionfs filesystem. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
A local denial-of-service condition exists in the Linux kernel's USB gadget FunctionFS (f_fs) subsystem: ffs_fs_kill_sb() unconditionally calls cancel_work_sync() on ffs->reset_work, but that work item is only initialized on the FFS_DEACTIVATED path, which is reached only when a FunctionFS instance was mounted with the no_disconnect option and later deactivated. In the common case - a functionfs instance mounted without no_disconnect and unmounted without deactivation - reset_work.func remains NULL, and cancel_work_sync() trips the WARN_ON(!work->func) guard in __flush_work(). Affected are kernels built with CONFIG_USB_FUNCTIONFS that contain the WARN guard (older kernels silently no-op'd a zero-initialized work struct and thus masked the bug); the practical impact is a kernel warning, escalating to a panic only where panic_on_warn is enabled. Triggering requires local privilege sufficient to mount and unmount a functionfs gadget instance (typically CAP_SYS_ADMIN/mount scope, CVSS PR:L), and no public exploit code or active exploitation was identified at time of analysis; EPSS is 0.16% (6th percentile) and the issue is not in CISA KEV.
RemediationAI
Vendor-released patches are available: Linux 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.4 and 7.2-rc3, with the individual stable commits listed in the CVE references (for example https://git.kernel.org/stable/c/7fe895e0a9651518c4fc082487da770ff9c14c7f) initializing reset_work in ffs_data_new() and dropping the redundant INIT_WORK() calls from the deactivation paths; Ubuntu users should apply USN-8726-1 (https://ubuntu.com/security/notices/USN-8726-1) or USN-8727-1 (https://ubuntu.com/security/notices/USN-8727-1) for their kernel flavour. No workaround is described in the available sources; where updating cannot be scheduled immediately, the exposure is confined to systems with CONFIG_USB_FUNCTIONFS in gadget mode, and operators can reduce the practical severity by ensuring panic_on_warn is not enabled on such devices, since the failure otherwise manifests as a kernel warning rather than a reboot.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FunctionFS (f_fs) is the Linux USB gadget framework's userspace-facing function, allowing a gadget daemon to handle endpoint setup and descriptors via a mounted filesystem. The CWE-824 (access of uninitialized pointer) root cause here is a lifecycle mismatch: ffs_data_new() allocates the ffs_data structure with kzalloc_obj() and never calls INIT_WORK() on ffs->reset_work, and ffs_data_reset()/ffs_data_clear() don't touch it either. The only INIT_WORK() calls live in ffs_func_set_alt() and ffs_func_disable(), both on the FFS_DEACTIVATED path reached solely via ffs_data_closed() when the instance was mounted with the no_disconnect option. Because the mount teardown path ffs_fs_kill_sb() calls ffs_data_reset() followed by cancel_work_sync(&ffs->reset_work) unconditionally, a normally mounted and unmounted functionfs instance hands __flush_work() a work_struct whose func pointer is NULL, tripping WARN_ON(!work->func) in kernel/workqueue.c. Older kernels treated cancel_work_sync() on a zero-initialized work struct as a silent no-op, hiding the missing initialization; the fix initializes reset_work once in ffs_data_new() so it is valid for the lifetime of the ffs_data and removes the now-redundant INIT_WORK() calls from the two deactivation paths. Reachability requires CONFIG_USB_FUNCTIONFS and a platform actually operating in USB gadget mode (embedded/Android-style devices), not typical servers or desktops; the supplied vector's A:H is assessed as A:L in our independent analysis because the realistic outcome is a kernel warning with availability loss only when panic_on_warn is set.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Local mount/unmount of functionfs needs privilege (AV:L, PR:L); no C/I impact; effect is a kernel WARN, so A:L (A:H only under panic_on_warn).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_fs: initialize reset_work at allocation time
ffs_fs_kill_sb() unconditionally calls cancel_work_sync() on ffs->reset_work when a functionfs instance is unmounted:
ffs_data_reset(ffs); cancel_work_sync(&ffs->reset_work);
However ffs->reset_work is only ever initialized via INIT_WORK() in ffs_func_set_alt() and ffs_func_disable(), and only on the FFS_DEACTIVATED path. That state is reached solely by ffs_data_closed() when the instance is mounted with the "no_disconnect" option, so for the common case (no "no_disconnect", or mounted and unmounted without ever being deactivated) reset_work is never initialized.
ffs_data_new() allocates the ffs_data with kzalloc_obj() and does not initialize reset_work, and ffs_data_reset()/ffs_data_clear() do not touch it either, so reset_work.func is left NULL. cancel_work_sync() on such a work then trips the WARN_ON(!work->func) guard in __flush_work():
WARNING: kernel/workqueue.c:4301 at __flush_work+0x330/0x360, CPU#3: umount Call trace: __flush_work cancel_work_sync ffs_fs_kill_sb [usb_f_fs] deactivate_locked_super deactivate_super cleanup_mnt __cleanup_mnt task_work_run exit_to_user_mode_loop el0_svc
On older kernels cancel_work_sync() on a zero-initialized work struct was a silent no-op, which hid the missing initialization.
Initialize reset_work once in ffs_data_new() so it is always valid for the lifetime of the ffs_data, and drop the now-redundant INIT_WORK() calls from the two deactivation paths.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-53781
GHSA-28fc-4vwx-pr32
NVD
CVE.org
EPSS
VulDB
Exploit-DB