{"id":"CVE-2026-93121","revision":"da877f8a243d4b49bbb884ae696824df","records":[{"revision":"da877f8a243d4b49bbb884ae696824df","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-93121","aliases":[],"title":"usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths","description":"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.","state":0,"publishedAt":"2026-09-17T16:11:27.22+00:00","modifiedAt":"2026-10-19T09:05:54.766+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/usb/gadget/function/f_fs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"7b07a2a7ca02a20124b552be96c5a56910795488\",\n                            \"lessThan\": \"be539138d9a187af3b884525a395db10797c64f1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7b07a2a7ca02a20124b552be96c5a56910795488\",\n                            \"lessThan\": \"5fd8baacc7dc477df9cac61b45491840247a9b1e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7b07a2a7ca02a20124b552be96c5a56910795488\",\n                            \"lessThan\": \"58952c83dfe6ea3294a74734d2d1018c1120779a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7b07a2a7ca02a20124b552be96c5a56910795488\",\n                            \"lessThan\": \"621707dc67c9846fd876d7579ec951d92aa033f1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/usb/gadget/function/f_fs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.9\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.9\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.110\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.52\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.6\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/be539138d9a187af3b884525a395db10797c64f1","https://git.kernel.org/stable/c/5fd8baacc7dc477df9cac61b45491840247a9b1e","https://git.kernel.org/stable/c/58952c83dfe6ea3294a74734d2d1018c1120779a","https://git.kernel.org/stable/c/621707dc67c9846fd876d7579ec951d92aa033f1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-93121","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-93121","identifiers":["CVE-2026-93121"]},"retained":false,"historicalAffected":[]}],"coverage":[]}