Description
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.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel FunctionFS driver improperly initializes the epfile->in field, causing early userspace ioctl calls such as FUNCTIONFS_DMABUF_ATTACH to see an incorrect DMA direction until the USB host is connected; this misdirection can lead the kernel to perform DMA transfers with the wrong source or destination, potentially leaking sensitive memory or causing data corruption.

Affected Systems

Linux kernel versions prior to the patch that initializes epfile->in early are affected; any distribution shipping an unpatched kernel with the FunctionFS driver, especially kernels before the 7.2 release that lacked this change, is vulnerable, and the issue manifests in the FunctionFS device nodes exposed by the USB gadget subsystem.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while an EPSS score of less than 1% shows a low likelihood of exploitation; the vulnerability is not listed in CISA KEV. Exploitation requires a local user to invoke early ioctl operations before a USB host is attached, making it a local privilege scenario that could misdirect DMA transfers and potentially expose sensitive memory or destabilize the system.

Generated by OpenCVE AI on September 4, 2026 at 23:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the early epfile->in initialization patch.
  • If a kernel upgrade is not possible, avoid performing early FUNCTIONFS_DMABUF_ATTACH operations until after a USB host is attached.
  • If early attachment is mandatory, restrict access to the FUNCTIONFS_DMABUF_ATTACH ioctl through device permissions or by disabling DMA attachment capability.

Generated by OpenCVE AI on September 4, 2026 at 23:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Fri, 04 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.2:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Thu, 30 Jul 2026 04:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-754

Mon, 27 Jul 2026 06:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-754

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description 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.
Title usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T04:53:29.409Z

Reserved: 2026-07-19T15:36:31.780Z

Link: CVE-2026-64327

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-25T10:17:14.327

Modified: 2026-09-04T14:50:56.703

Link: CVE-2026-64327

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64327 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T00:00:07Z

Weaknesses