Skip to main content

Linux Kernel CVE-2026-64594

| EUVDEUVD-2026-53781 MEDIUM
Access of Uninitialized Pointer (CWE-824)
2026-08-06 Linux GHSA-28fc-4vwx-pr32
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local privileges to mount filesystems
  2. Delivery
    Mount a FunctionFS (f_fs) instance
  3. Exploit
    Unmount the instance (ffs_fs_kill_sb)
  4. Execution
    cancel_work_sync on uninitialized reset_work
  5. Impact
    WARN_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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <69faa3779250df14f51d5084f938a99809546e52
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <0de6ebbabfbbc9c28350283dc97d8a519d5c6dd7
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <ba1867999dbc4085e6d8c52ac5266005b8b2bf07
Linux patch: 0
Linux patch: 6.12.97
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <c36393b0d14e1e9783888f821ffe29381b8f46dc
Linux patch: 5.15.212
Linux patch: 7.2-rc3
Linux 4.0
Linux patch: 6.1.178
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <cb19e54ebe9baf3c3243083ade65c937339ccb7b
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <3137b243c93982fe3460335e12f9247739766e10
Linux patch: 5.10.261
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <d5631081be07f20e764d3cb5c98ac0a1004fba51
Linux patch: 6.18.40
Linux 18d6b32fca3841f7cd9479b4024abd8a9b299281 <7fe895e0a9651518c4fc082487da770ff9c14c7f
Linux patch: 6.6.145
Linux patch: 7.1.4

Affected Packages

euvd linux no fix

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 3.3 LOW

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).

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Dec 01, 2026 - 15:07 NVD
5.5 (MEDIUM)
Patch available
Aug 06, 2026 - 08:16 EUVD
CVE Published
Aug 06, 2026 - 07:13 nvd
MEDIUM 5.5
CVE Published
Aug 06, 2026 - 07:13 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though the vulnerable USB gadget functionfs path is niche
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy