CVE-2026-64327·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks When parsing endpoint descriptors, ffs_data_got_descs() generates the eps_addrmap which contains the endpoint direction. However, epfile->in was previously only populated in ffs_func_eps_enable() which executes upon USB host connection. As a result, early userspace ioctls like FUNCTIONFS_DMABUF_ATTACH that run before the host connects would see epfile->in as 0, leading to incorrect DMA directions. By moving the initialization to ffs_epfiles_create(), epfile->in is accurate before userspace opens the endpoint files.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve an endpoint direction initialization issue in the USB gadget FunctionFS subsystem. This vulnerability affects USB device mode operations where DMA direction checks could fail during early userspace I/O control operations before the USB host establishes a connection. Apply the patch immediately if your system uses USB gadget functionality, particularly with DMA buffer attachment features.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r. If the version is between 6.19 and 7.1.3, your system is potentially vulnerable.
- Step 2: Verify if USB gadget mode is enabled by checking: grep -i CONFIG_USB_GADGET /boot/config-$(uname -r). If set to 'y' or 'm', the subsystem is active.
- Step 3: Review kernel logs for USB FunctionFS initialization errors with: dmesg | grep -i 'ffs\|gadget\|epfile'. Look for endpoint direction warnings or DMABUF failures.
- Step 4: After updating, confirm the patched version is running with: uname -r. Verify it shows 7.1.4 or later, then reboot if necessary and re-run dmesg checks to confirm clean USB gadget initialization.
FAQ
What is CVE-2026-64327?
This vulnerability affects the Linux kernel's USB gadget FunctionFS driver, where endpoint direction information is initialized too late in the device lifecycle. Userspace applications attempting to configure DMA operations before USB host connection would receive incorrect endpoint direction data, potentially causing I/O failures or data corruption.
Is CVE-2026-64327 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploit code is currently available.
What versions of Kernel are affected by CVE-2026-64327?
Linux kernel versions 6.19 through 7.1.3 are vulnerable. The fix is included in kernel 7.1.4 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2026-64327?
Run 'uname -r' to display your kernel version. If the output shows a version between 6.19 and 7.1.3, your system is affected. Additionally, check if USB gadget mode is used with: grep CONFIG_USB_GADGET /boot/config-$(uname -r).
Does Defensia detect CVE-2026-64327?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64327 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64327. Free for 1 server.
Get started free