Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.96, 6.18.39, 7.1.4
CVEs
CVE-2026-64327
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:24 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 25 Jul 2026, 08:49 UTC

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.

osv:CVE-2026-64327

Kernel

Fixed versions: 6.12.96, 6.18.39, 7.1.4

Complete source record
{
  "id": "6af6d3663891356e246cf6159d98224a04a6437215ccdf2a6b98e5a73e71a1b0",
  "url": "https://osv.dev/vulnerability/CVE-2026-64327",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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: 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.",
    "evidence": "osv:CVE-2026-64327",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.96",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.39",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-64327",
      "aliases": [
        "CVE-2026-64327"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64327.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.605835253Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b",
        "https://git.kernel.org/stable/c/82cfd4739011bdc7e87b5d585703427e89ddfaa5",
        "https://git.kernel.org/stable/c/9e04055ab5fc0470a0031ee6934739f9aa8f34a5",
        "https://git.kernel.org/stable/c/f99f32ea9aa976afcbec20647ed33b50a52002c1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64327.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-64327",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64327.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-64327",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 510243,
  "published_at": "2026-07-25T08:49:55.426+00:00"
}