CVE-2026-64327

Source
https://cve.org/CVERecord?id=CVE-2026-64327
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64327.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64327
Downstream
Published
2026-07-25T08:49:55.426Z
Modified
2026-07-27T04:03:21.407564106Z
Summary
usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks
Details

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, 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 FUNCTIONFSDMABUF_ATTACH 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64327.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7b07a2a7ca02a20124b552be96c5a56910795488
Fixed
82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b
Fixed
9e04055ab5fc0470a0031ee6934739f9aa8f34a5
Fixed
f99f32ea9aa976afcbec20647ed33b50a52002c1
Fixed
82cfd4739011bdc7e87b5d585703427e89ddfaa5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64327.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64327.json"