CVE-2026-64327: usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks

Published Jul 25, 2026
·
Updated

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

usb: gadget: ffs: Initialize epfile->in early to fix endpoint direction checks

When parsing endpoint descriptors, ffsdatagotdescs() generates the epsaddrmap which contains the endpoint direction. However, epfile->in was previously only populated in ffsfuncepsenable() which executes upon USB host connection. As a result, early userspace ioctls like FUNCTIONFSDMABUFATTACH that run before the host connects would see epfile->in as 0, leading to incorrect DMA directions.

By moving the initialization to ffsepfilescreate(), epfile->in is accurate before userspace opens the endpoint files.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel>=6.9<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4
Linux Linux kernel=7.2-rc1
Linux Linux kernel=7.2-rc2

Event History

Jul 25, 2026
CVE Published
via MITRE·08:49 AM
Data Sourced
via MITRE·08:49 AM
Description
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required for this issue to occur?

A local, low-privileged user must be able to use the Linux USB FunctionFS interface and issue early userspace ioctls, such as FUNCTIONFS_DMABUF_ATTACH, before a USB host connects. The affected endpoint file must represent an endpoint whose actual direction differs from the uninitialized value.

2

What is the practical impact?

Before host connection, FunctionFS can use an incorrect DMA direction because epfile->in is treated as 0. The CVSS vector rates the impact as availability-only, with no confidentiality or integrity impact.

3

Are systems using FunctionFS affected only after a USB host connects?

No. The issue specifically affects operations performed before the USB host connection, because endpoint direction was previously initialized only during endpoint enablement after that connection.

4

What remediation is available?

A patch is available. It initializes endpoint direction during epfile creation, before userspace can open endpoint files and issue related ioctls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203