{"id":"CVE-2026-64327","aliases":["CVE-2026-64327"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks\n\nWhen parsing endpoint descriptors, ffs_data_got_descs() generates the\neps_addrmap which contains the endpoint direction. However, epfile->in\nwas previously only populated in ffs_func_eps_enable() which executes\nupon USB host connection. As a result, early userspace ioctls like\nFUNCTIONFS_DMABUF_ATTACH that run before the host connects would see\nepfile->in as 0, leading to incorrect DMA directions.\n\nBy moving the initialization to ffs_epfiles_create(), epfile->in is\naccurate before userspace opens the endpoint files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks\n\nWhen parsing endpoint descriptors, ffs_data_got_descs() generates the\neps_addrmap which contains the endpoint direction. However, epfile->in\nwas previously only populated in ffs_func_eps_enable() which executes\nupon USB host connection. As a result, early userspace ioctls like\nFUNCTIONFS_DMABUF_ATTACH that run before the host connects would see\nepfile->in as 0, leading to incorrect DMA directions.\n\nBy moving the initialization to ffs_epfiles_create(), epfile->in is\naccurate before userspace opens the endpoint files.","source":"cvelist"}],"published":"2026-07-25T08:49:55.426Z","modified":"2026-09-04T14:50:56.703Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7b07a2a7ca02a20124b552be96c5a56910795488","fixed":"82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b","status":"affected"},{"type":"git","introduced":"7b07a2a7ca02a20124b552be96c5a56910795488","fixed":"9e04055ab5fc0470a0031ee6934739f9aa8f34a5","status":"affected"},{"type":"git","introduced":"7b07a2a7ca02a20124b552be96c5a56910795488","fixed":"f99f32ea9aa976afcbec20647ed33b50a52002c1","status":"affected"},{"type":"git","introduced":"7b07a2a7ca02a20124b552be96c5a56910795488","fixed":"82cfd4739011bdc7e87b5d585703427e89ddfaa5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.96","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.9","fixed":"6.12.96"},{"status":"affected","introduced":"6.13","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e04055ab5fc0470a0031ee6934739f9aa8f34a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f99f32ea9aa976afcbec20647ed33b50a52002c1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82cfd4739011bdc7e87b5d585703427e89ddfaa5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64327","url":"https://www.cve.org/CVERecord?id=CVE-2026-64327","licence":"CVE Terms of Use","modified":"2026-08-17T04:53:29.409Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64327","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64327","licence":"Public domain","modified":"2026-09-04T14:50:56.703Z"}],"updatedAt":"2026-11-25T22:59:30.069Z","epss":{"score":0.00159,"percentile":0.05337,"date":"2026-12-01T12:00:22.000Z"}}