Skip to main content

Linux Kernel EUVDEUVD-2026-45668

| CVE-2026-63895 LOW
Out-of-bounds Read (CWE-125)
2026-07-19 Linux GHSA-hqp4-gw43-6pcc
2.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Attach modified USB host bypassing short-wLength check
  2. Delivery
    Send 1-byte payload on 64-byte Setup OUT
  3. Exploit
    UDC completes short ep0 OUT (req->actual < len)
  4. Execution
    f_fs copies full len from kmalloc buffer
  5. Persist
    Uninitialised slab residue delivered to gadget daemon
  6. Impact
    Disclose kernel heap memory contents

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

Exploitation requires the target to be running in USB gadget/peripheral mode with FunctionFS configured and its device node owned by a privileged gadget daemon (adbd, UMS, composite gadget services) - it is explicitly NOT reachable from unprivileged userspace. It additionally requires a UDC that completes short ep0 DATA-OUT transfers rather than stalling (the description names dwc2, aspeed_udc, renesas_usbf, and dwc3, which stalls short IN but not short OUT), AND a USB host build that bypasses the host stack's normal rejection of short-wLength control OUTs; without that bypass, hosts reject the short transfer before it reaches the gadget. Impact is limited to disclosure of up to (len - received) bytes of uninitialised slab memory to the privileged daemon. Fixed in stable branches including 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, and 7.1.

Impact

This is a low-severity kernel information-disclosure flaw (CWE-125) that all signals agree is a monitor-and-patch issue, not an emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N, base 2.3) describes a locally-reachable, high-privilege, confidentiality-only leak with no integrity or availability impact, and the vuln.today Decision label is 'monitor'. EPSS is 0.24% (16th percentile), consistent with low expected exploitation, and the flaw is NOT on the CISA KEV list, so there is no evidence of active exploitation. No SSVC decision vector was supplied in the input. The signals are mutually consistent - there is no high-CVSS/low-risk or low-EPSS/KEV contradiction to flag here. The practical risk is further reduced by the threat model stated in the description: the FunctionFS device node is owned by the privileged gadget daemon (adbd, UMS, composite gadget services), so the bug is not reachable from unprivileged userspace, and triggering it also requires a USB host build that bypasses the normal host-stack rejection of short-wLength control-OUT transfers. The realistic impact is leakage of uninitialised slab residue (up to len-ret bytes, e.g. 63 bytes on a 64-byte Setup with a 1-byte payload) into the daemon's read buffer. Net: a genuine but minor info leak; standard stable-kernel patching is the appropriate response, not urgent out-of-band action.

Exploit ScenarioDerived

ffs_ep0_read() allocates a control-OUT buffer with kmalloc(len) and then copies the full Setup-declared len to userspace even when the UDC completed a short OUT transfer (req->actual < len), so the trailing uninitialised slab bytes are handed to the gadget daemon. An actor controlling or emulating the USB host - using a build that bypasses the host-side rejection of short-wLength control OUTs - sends a short payload (e.g. 1 byte on a 64-byte Setup) so the FunctionFS daemon receives kernel heap residue instead of zeros. No public exploit identified at time of analysis; only vendor patch commits, an Ubuntu USN, and an oss-security post are referenced.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – Nov 16, 2026

FunctionFS (f_fs) gadget code in the Linux kernel leaks uninitialised slab memory to the gadget daemon when a short control-OUT transfer arrives on ep0. ffs_ep0_read() sizes its buffer from the Setup packet's wLength with kmalloc() and then copies the full wLength to userspace even though the UDC completed fewer bytes, so the trailing (len - received) bytes of slab residue are handed to the reader; the defect dates back to Linux 2.6.35 and is fixed in 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12 and 7.1. Impact is limited: the FunctionFS node is owned by a privileged gadget daemon (adbd, UMS, composite services), the host USB stack normally rejects short-wLength control OUTs before they reach the gadget, and the flaw is rated CVSS 2.3 (AV:L/PR:H, confidentiality-only). EPSS is 0.24% (16th percentile), no public exploit code has been identified at time of analysis, and the priority decision is monitor.

RemediationAI

Vendor-released patches are available: upgrade to Linux 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12 or 7.1, or apply the stable commits listed in the CVE record; Ubuntu users should follow USN-8593-1 at https://ubuntu.com/security/notices/USN-8593-1 and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-63895. The fix mirrors gadgetfs by copying only req->actual bytes to userspace, so updating is the only complete remedy described by the sources. Note the constraints that bound real exposure when triaging: the FunctionFS device node is owned by a privileged gadget daemon and is not reachable from unprivileged userspace, and unmodified Linux host stacks reject short-wLength control OUTs before they reach the gadget, so only a host build that deliberately bypasses that check can drive the short transfer. Devices that do not run in USB peripheral/gadget mode with FunctionFS do not need emergency action, consistent with the monitor priority label, EPSS of 0.24%, and the absence of KEV listing or public exploit code.

Affected VersionsENISA

Linux 2.6.35
Linux patch: 7.0.12
Linux patch: 6.6.143
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <4e036c10e7f4df5d951c69cc3697bc8e209c6d02
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <23c1f7deb9dd8447ecde749850676302aa1e2bd3
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <607730a414773a7cbe3037a64a6c64e72689ff5e
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <90ccf5fb63243fae1b4b3200f3310500500ecf2e
Linux patch: 6.12.93
Linux patch: 7.1
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <e835bf9a055f71874065a40780ca5560b7df8b33
Linux patch: 6.18.35
Linux patch: 0
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <88874a19b2b093bfaaa1c0090fa536c44da8c08b
Linux ddf8abd2599491cbad959c700b90ba72a5dce8d0 <af32dbb2ca0b3d09271ab718d13857a457fa16f2
Linux patch: 6.1.176
Linux patch: 5.15.210

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 interface that lets a userspace daemon (adb, mass-storage, composite gadgets) service USB control requests via a character device. In ffs_ep0_read() the control-OUT data buffer is allocated with kmalloc(len, GFP_KERNEL) using the Length field of the Setup packet, the transfer is queued through __ffs_ep0_queue_wait(), and the return value (req->actual, the number of bytes the UDC actually moved) is only used as a success indicator; copy_to_user(buf, data, len) still copies the full len. On a short control OUT, where req->actual < len, the tail of the buffer was never written by the hardware and consists of uninitialised slab residue, matching the CWE-125 out-of-bounds read classification. Short ep0 OUT completions are legal USB behaviour produced by in-tree UDCs: dwc2 continues when req->actual < req->length for ep0 DATA OUT (short-not-ok is its only ep0-OUT stall path), aspeed_udc ends ep0 OUT on rx_len < maxpacket, renesas_usbf logs 'ep0 short packet' and completes, and dwc3 stalls short IN but not short OUT. The sibling gadgetfs implementation in drivers/usb/gadget/legacy/inode.c already handles this correctly by copying min(len, dev->req->actual); the fix adopts the same pattern in f_fs.c. Normal Linux host stacks reject short-wLength control OUTs before they reach a gadget, so a modified host build is needed to exercise the path; with that bypass, a 1-byte payload on a 64-byte Setup produced 63 bytes of non-canary slab residue in the daemon's buffer.

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 2.3 LOW
AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 2.3 LOW

Local gadget-node access owned by a privileged daemon gives AV:L/PR:H; only a bounded slab-residue leak yields C:L with no integrity or availability impact (I:N/A:N).

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
CVSS changed
Nov 16, 2026 - 14:37 NVD
2.3 (LOW)
Patch available
Jul 19, 2026 - 17:19 EUVD
CVE Published
Jul 19, 2026 - 14:55 nvd
LOW 2.3
CVE Published
Jul 19, 2026 - 14:55 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

usb: gadget: f_fs: copy only received bytes on short ep0 read

ffs_ep0_read() allocates its control-OUT data buffer with kmalloc() (not kzalloc) at the Length value from the Setup packet, then copies that full len to userspace regardless of how many bytes were actually received:

data = kmalloc(len, GFP_KERNEL); ... ret = __ffs_ep0_queue_wait(ffs, data, len); if ((ret > 0) && (copy_to_user(buf, data, len))) ret = -EFAULT;

__ffs_ep0_queue_wait() returns req->actual, which on a short control OUT transfer is strictly less than len. The copy_to_user() call still copies len bytes, so on a short OUT the last (len - ret) bytes of the kmalloc() buffer -- uninitialised slab residue -- are delivered to the FunctionFS daemon.

Short ep0 OUT completions are specified USB control-transfer behavior and are produced by in-tree UDCs:

  • dwc2 continues on req->actual < req->length for ep0 DATA OUT

(short-not-ok is the only ep0-OUT stall path).

  • aspeed_udc ends ep0 OUT on rx_len < ep->ep.maxpacket.
  • renesas_usbf logs "ep0 short packet" and completes the

request.

  • dwc3 stalls on short IN but not on short OUT.

A short ep0 OUT is therefore not evidence of a broken UDC; it is a normal condition f_fs has to cope with. The sibling gadgetfs implementation in drivers/usb/gadget/legacy/inode.c already does this correctly via min(len, dev->req->actual) before copy_to_user(). This patch brings f_fs.c to the same safe pattern rather than trimming at a defensive layer.

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. Linux host stacks normally reject short-wLength control OUTs before they reach the gadget, so reproducing this required a build that bypasses that host-side check. With the bypass in place, a 1-byte payload on a 64-byte Setup produces 63 bytes of non-canary slab residue in the daemon's read buffer.

Fix by copying only ret (actually received) bytes to userspace.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though the vulnerable FunctionFS gadget path runs only in USB peripheral mode
Data Quality
4 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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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