Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttach modified USB host bypassing short-wLength check
-
DeliverySend 1-byte payload on 64-byte Setup OUT
-
ExploitUDC completes short ep0 OUT (req->actual < len)
-
Executionf_fs copies full len from kmalloc buffer
-
PersistUninitialised slab residue delivered to gadget daemon
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
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).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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
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
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.
EUVD-2026-45668
GHSA-hqp4-gw43-6pcc
NVD
CVE.org
EPSS
VulDB
Exploit-DB