CVE-2026-64327
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
25/07/2026
Last modified:
25/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks<br />
<br />
When parsing endpoint descriptors, ffs_data_got_descs() generates the<br />
eps_addrmap which contains the endpoint direction. However, epfile->in<br />
was previously only populated in ffs_func_eps_enable() which executes<br />
upon USB host connection. As a result, early userspace ioctls like<br />
FUNCTIONFS_DMABUF_ATTACH that run before the host connects would see<br />
epfile->in as 0, leading to incorrect DMA directions.<br />
<br />
By moving the initialization to ffs_epfiles_create(), epfile->in is<br />
accurate before userspace opens the endpoint files.



