Skip to main content

Linux Kernel CVE-2026-63894

| EUVDEUVD-2026-45667 HIGH
Use After Free (CWE-416)
2026-07-19 Linux GHSA-xh4m-2r9c-xfr3
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Gain local access to delegated FunctionFS node
  2. Delivery
    Submit DMABUF transfer request via ioctl
  3. Exploit
    Issue DETACH/close as completion frees request
  4. Execution
    usb_ep_dequeue() dereferences freed usb_request
  5. Impact
    Kernel use-after-free, memory corruption or crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local code execution on a device running an affected kernel (~6.9 through the fixed stable points) that is operating in USB gadget/peripheral mode with FunctionFS mounted and the DMABUF feature compiled in. The attacker must be able to open the FunctionFS endpoint node and issue DMABUF ioctls - by default this node is GLOBAL_ROOT_UID (root-owned), so the meaningful less-privileged attack only exists where the mount has been delegated via the uid=, gid=, or fmode= options to a non-root gadget daemon. Exploitation then requires winning a timing race: a FUNCTIONFS_DMABUF_DETACH ioctl or file close (ffs_epfile_release) must land concurrently with the request-completion callback that frees the usb_request. Reliable memory corruption further requires a real SG-capable in-tree UDC (e.g. chipidea, cdnsp) whose dequeue path dereferences the request immediately; on dummy_hcd the freed pointer is only read via pointer-compare and does not fault. Limiting factors: not reachable from unprivileged userspace on a default (root-owned) mount, not reachable from a USB host across the cable, and gated by a hard-to-win race - consistent with the low EPSS and absence from KEV.

Impact

This is a genuine but bounded local kernel bug, not an internet-facing critical. The assigned CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8) reflects local access with low privileges and full CIA impact typical of a kernel UAF, but two signals temper it: (1) EPSS is only 0.20% at the 10th percentile, and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation - consistent with a hard-to-win race in a narrow feature. (2) The description explicitly notes the FunctionFS node is normally owned by a privileged gadget daemon (adbd, UMS, composite services) and is 'not reachable from unprivileged userspace or from a USB host on the cable,' which meaningfully limits the realistic attacker population to a co-located gadget service rather than arbitrary local users. I would rate the AC lower than AC:L: exploitation requires winning a race between completion and DETACH/close, which is characteristically high-complexity - the vendor's own claim that it needed KASAN with an observability hook to surface on dummy_hcd supports AC:H. The 'Information Disclosure' tag also conflicts with the C:H/I:H/A:H scoring; the concrete demonstrated effect is a freed-pointer read/deref leading to memory corruption or crash, with escalation being plausible but not demonstrated. Net: patch on normal kernel cadence; it is not an emergency for most fleets, and is only material where untrusted or lower-privileged code can reach a delegated FunctionFS mount.

Exploit ScenarioDerived

A lower-privileged gadget service that has been delegated the FunctionFS mount (via uid=/gid=/fmode=) submits a DMABUF transfer, then issues a FUNCTIONFS_DMABUF_DETACH ioctl (or closes the endpoint file) at the exact moment the request completes and is freed, so the cancel path calls usb_ep_dequeue() on the freed usb_request. On a real SG-capable UDC (chipidea or cdnsp) this immediately dereferences freed kernel memory, causing corruption or a crash and potentially local privilege escalation. No public exploit is identified at time of analysis; reproduction to date is via a KASAN observability hook on dummy_hcd, indicating the race is non-trivial to win reliably.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Jul 20, 2026

Local privilege-boundary memory corruption in the Linux kernel USB gadget FunctionFS (f_fs) driver lets a process with access to the FunctionFS control node trigger a use-after-free by racing a DMABUF request completion against a FUNCTIONFS_DMABUF_DETACH ioctl or the file-close path. The completion frees the usb_request but leaves the priv->req back-pointer dangling, so the cancel path passes freed memory to usb_ep_dequeue(), corrupting kernel memory on SG-capable UDCs (chipidea, cdnsp) that dereference the request immediately. EPSS is low (0.20%, 10th percentile) and there is no public exploit identified at time of analysis; a vendor patch is available across stable trees.

RemediationAI

Vendor-released patch: update to a fixed stable kernel - 6.12.93, 6.18.35, 7.0.12, or mainline 7.1 (or any distribution kernel that backports the four fix commits listed on git.kernel.org, notably c872d8a065b3b499ce4c3ad168b5d34b68524f66 and its siblings). Apply via your distribution's kernel update channel and reboot. Where immediate patching is not possible, the concrete compensating control is to avoid delegating the FunctionFS mount to lower-privileged code: keep functionfs mounted with default GLOBAL_ROOT_UID ownership and do NOT use the uid=/gid=/fmode= mount options to hand the control/endpoint nodes to a non-root gadget daemon, which forces an attacker to already hold root (removing the privilege-boundary crossing). If DMABUF zero-copy transfers are not required by your gadget application, avoid using the FUNCTIONFS_DMABUF_ATTACH/TRANSFER/DETACH ioctls, or restrict the device so it does not operate in USB gadget mode - the trade-off is loss of zero-copy performance or of gadget functionality entirely. Advisory/reference: https://nvd.nist.gov/vuln/detail/CVE-2026-63894.

Affected VersionsENISA

Linux patch: 0
Linux patch: 7.0.12
Linux patch: 6.12.93
Linux 7b07a2a7ca02a20124b552be96c5a56910795488 <2796646f6d892c1eb6818c7ca41fdfa12568e8d1
Linux 7b07a2a7ca02a20124b552be96c5a56910795488 <c7d421123b98d5e9c1c84bd9957aba36f1cbb4ca
Linux patch: 6.18.35
Linux 7b07a2a7ca02a20124b552be96c5a56910795488 <c872d8a065b3b499ce4c3ad168b5d34b68524f66
Linux patch: 7.1
Linux 7b07a2a7ca02a20124b552be96c5a56910795488 <552dae28dbeb5f7c4fafcda43962dc46569f58a0
Linux 6.9

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

The flaw lives in drivers/usb/gadget/function/f_fs.c, the FunctionFS driver that exposes USB gadget endpoints to userspace via a mounted functionfs filesystem. The affected code path is the DMABUF zero-copy transfer feature (FUNCTIONFS_DMABUF_ATTACH/DETACH/TRANSFER ioctls) added around kernel 6.9. The root cause is a classic lifetime/ownership race (CWE-416 Use-After-Free, though the record lists CWE as N/A): ffs_epfile_dmabuf_io_complete() runs the completion callback without holding ffs->eps_lock and calls usb_ep_free_request() on the request, but never clears priv->req, the back-pointer set by ffs_dmabuf_transfer(). A concurrent cancel path holding eps_lock reads priv->ep && priv->req and calls usb_ep_dequeue() on the now-freed usb_request. On dummy_hcd the dequeue only pointer-compares against a live queue so it reads without faulting (KASAN-only), but real in-tree SG-capable UDCs immediately dereference: chipidea's ep_dequeue() does container_of(req, struct ci_hw_req, req) and reads hwreq->req.status, and cdnsp reads request->status before locking. The fix moves usb_ep_free_request() out of the lockless completion into ffs_dmabuf_cleanup() (the io_completion_wq work handler), clearing priv->req under eps_lock and only if it still names the same request, with the priv refcount keeping the container alive. CPE data identifies the affected product only generically as cpe:2.3:a:linux:linux.

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

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local FunctionFS node access (AV:L, PR:L via mount delegation); winning a completion-vs-cancel race makes it AC:H; kernel UAF yields high C/I/A, no scope change.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.0 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Jul 20, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Jul 19, 2026 - 17:19 EUVD
CVE Published
Jul 19, 2026 - 14:55 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 19, 2026 - 14:55 cve.org
HIGH 7.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_fs: serialize DMABUF cancel against request completion

ffs_epfile_dmabuf_io_complete() calls usb_ep_free_request() on the completed request but leaves priv->req, the back-pointer that ffs_dmabuf_transfer() set on submission, pointing at the freed memory. A later FUNCTIONFS_DMABUF_DETACH ioctl or ffs_epfile_release() on the close path still sees priv->req non-NULL under ffs->eps_lock:

if (priv->ep && priv->req) usb_ep_dequeue(priv->ep, priv->req);

so usb_ep_dequeue() is called on a freed usb_request.

On dummy_hcd the dequeue path only walks a live queue and pointer-compares, so the freed pointer reads without faulting and KASAN requires an explicit check at the FunctionFS call site to surface the use-after-free. On SG-capable in-tree UDCs the dequeue path dereferences the supplied request immediately:

  • chipidea's ep_dequeue() does

container_of(req, struct ci_hw_req, req) and reads hwreq->req.status before acquiring its own lock.

  • cdnsp's cdnsp_gadget_ep_dequeue() reads request->status first.

The narrower option of clearing priv->req via cmpxchg() in the completion does not close the race: the completion runs without eps_lock, so a cancel path holding eps_lock can still observe priv->req non-NULL, race a concurrent completion that clears and frees, and pass the freed pointer to usb_ep_dequeue(). A slightly longer fix that moves the free into the cleanup work is needed.

Same class of lifetime race as the recent usbip-vudc timer fix [1].

Take eps_lock in the sole place that mutates priv->req from the callback direction by moving usb_ep_free_request() out of the completion into ffs_dmabuf_cleanup(), the existing work handler scheduled by ffs_dmabuf_signal_done() on ffs->io_completion_wq. Clear priv->req there under eps_lock before freeing, and only clear if priv->req still names our request (a subsequent ffs_dmabuf_transfer() on the same attachment may have queued a new one).

This keeps the existing dummy_hcd sync-dequeue invariant: the completion callback is still invoked by the UDC without eps_lock held (dummy_hcd drops its own lock before calling the callback), and the callback now takes no f_fs lock at all. Serialization against the cancel path happens in cleanup, which runs from the workqueue with no f_fs lock held on entry.

The priv ref count protects the containing ffs_dmabuf_priv: ffs_dmabuf_transfer() takes a ref via ffs_dmabuf_get(), cleanup drops it via ffs_dmabuf_put(), so priv stays live for the cleanup even after the cancel path's list_del + ffs_dmabuf_put.

The ffs_dmabuf_transfer() error path no longer frees usb_req inline: fence->req and fence->ep are set before usb_ep_queue(), so ffs_dmabuf_cleanup() (scheduled by the error-path ffs_dmabuf_signal_done()) owns the free regardless of whether the queue succeeded.

Reproduced under KASAN on both detach and close paths against dummy_hcd with an observability hook (kasan_check_byte(priv->req) immediately before usb_ep_dequeue) at the two FunctionFS cancel sites to surface the stale-pointer access; the hook is not part of this patch. The KASAN allocator / free stacks in the captured splats identify the same request: alloc in dummy_alloc_request, free in dummy_timer, fault reached from ffs_epfile_release (close) and from the FUNCTIONFS_DMABUF_DETACH ioctl (detach). With the patch applied, both paths are silent under the same hook.

The bug is reached from the FunctionFS device node, which in real deployments is owned by the privileged gadget daemon (adbd, UMS, composite gadget services, etc.); it is not reachable from unprivileged userspace or from a USB host on the cable. FunctionFS mounts default to GLOBAL_ROOT_UID, but the filesystem supports uid=, gid=, and fmode= delegation to a non-root gadget daemon, so on real deployments the attacker may be a less-privileged service rather than root.

Executive ViewAI

Why It Matters

A privilege escalation flaw in the Linux kernel USB driver (CVE-2026-63894, CVSS 7.8) could allow local users to gain administrative access on affected systems. No public exploit identified at time of analysis, and the likelihood of attack remains very low (0.2% EPSS). This impacts Linux environments where untrusted users have local system access or device permissions, and patching should be scheduled within 30 days as part of routine kernel updates.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
Linux kernel is ubiquitous, but vulnerable path only on USB gadget-mode FunctionFS DMABUF deployments
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

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.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

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