CVE-2026-64328: usb: gadget: f_fs: Fix DMA fence leak

Published Jul 25, 2026
·
Updated

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

usb: gadget: ffs: Fix DMA fence leak

In ffsdmabuftransfer(), a ffsdmafence object is kmalloc'd, with the underlying dmafence later initialized by dmafenceinit(), which sets its kref counter to 1. Then, dmaresvaddfence() gets a second reference, and a pointer to the ffsdmafence is passed as the usbrequest's "context" field.

The dma-resv mechanism will manage the second reference, but the first reference is never properly released; the ffsdmabufcleanup() function decreases the reference count, but only to balance with the reference grab in ffsdmabufsignaldone().

The code will then slowly leak memory as more ffsdmafence objects are created without being ever freed.

Address this issue by transferring ownership of the fence to the DMA reservation object, by calling dmafenceput() right after dmaresvaddfence(). The ffsdmafence then gets properly discarded after being signalled.

Affected Software

6 affected components
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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Update the Linux kernel using the provided fix: "usb: gadget: f_fs: Fix DMA fence leak" (transfer ownership of the fence to the DMA so the ffs_dma_fence reference is released correctly, avoiding the memory leak).

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
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What level of access is required to trigger this issue?

The CVSS vector indicates local access with low privileges is required. No user interaction is needed.

2

What is the likely operational impact?

Repeated DMA-buffer transfers can slowly leak ffs_dma_fence objects. The issue is rated as having high availability impact, so sustained use may degrade system availability.

3

Which code path is involved?

The leak occurs when ffs_dmabuf_transfer() creates an ffs_dma_fence and adds it to a DMA reservation object without releasing the original fence reference.

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