{"id":"CVE-2026-93121","summary":"usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths\n\nThe error paths for endpoint-disabled (ESHUTDOWN) and request-allocation\nfailure (ENOMEM) in ffs_dmabuf_transfer() jump to err_fence_put which\ncalls dma_fence_put() on the fence. However, at that point the fence has\nonly been kmalloc'd — dma_fence_init() has not been called yet, so the\nrefcount and the fence ops are uninitialized. Calling dma_fence_put() on\nsuch an object leads to undefined behavior.\n\nUse kfree() instead, since the fence is just a plain allocation at this\nstage, and rename the label to err_fence_free to reflect the actual\ncleanup action.","modified":"2026-09-20T11:30:43.098867433Z","published":"2026-09-17T16:11:27.220Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93121.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/58952c83dfe6ea3294a74734d2d1018c1120779a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5fd8baacc7dc477df9cac61b45491840247a9b1e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/621707dc67c9846fd876d7579ec951d92aa033f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be539138d9a187af3b884525a395db10797c64f1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93121.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93121"},{"type":"PACKAGE","url":"https://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":"be539138d9a187af3b884525a395db10797c64f1"},{"fixed":"5fd8baacc7dc477df9cac61b45491840247a9b1e"},{"fixed":"58952c83dfe6ea3294a74734d2d1018c1120779a"},{"fixed":"621707dc67c9846fd876d7579ec951d92aa033f1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93121.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.52"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93121.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}