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 incorrectly initializes the endpoint direction field, causing early userspace ioctl requests to see a zero value until the USB host connects. This leads to incorrect DMA direction handling for operations such as FUNCTIONFS_DMABUF_ATTACH, which can result in unintended data transfers or memory corruption.

Affected Systems

Linux kernels prior to the patch that implements early epfile->in initialization. Any distribution shipping a kernel with the FunctionFS driver without this change is affected. The affected product is the Linux kernel, all vendors that ship it unchanged.

Risk and Exploitability

The CVSS score is 5.5, indicating moderate severity, while the EPSS score of <1% implies a low likelihood of exploitation. The vulnerability is not listed in CISA KEV. Externally, it requires a local user to invoke early ioctl operations before a host connects, so it is a local privilege scenario. The likely attack vector is local use of FUNCTIONFS_DMABUF_ATTACH before the USB device is attached, which could misdirect DMA transfers.

Generated by OpenCVE AI on August 3, 2026 at 19:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the epfile->in early initialization patch.
  • If an immediate kernel upgrade is not possible, delay all early FUNCTIONFS_DMABUF_ATTACH calls until after the USB device is connected to a host.
  • Where feasible, configure devices to not expose DMA attachment capabilities before host connection and monitor system logs for DMA direction warnings.

Generated by OpenCVE AI on August 3, 2026 at 19:13 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

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-07-25T08:49:55.426Z

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

Link: CVE-2026-64327

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-08-11T15:00:57.447

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-08-03T19:15:04Z

Weaknesses
  • CWE-908

    Use of Uninitialized Resource