{"api_version":"1","generated_at":"2026-09-17T23:31:15+00:00","cve":"CVE-2026-93121","urls":{"html":"https://cve.report/CVE-2026-93121","api":"https://cve.report/api/cve/CVE-2026-93121.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-93121","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-93121"},"summary":{"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":"PUBLISHED","assigner":"Linux","published_at":"2026-09-17 17:18:06","updated_at":"2026-09-17 17:18:06"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/621707dc67c9846fd876d7579ec951d92aa033f1","name":"https://git.kernel.org/stable/c/621707dc67c9846fd876d7579ec951d92aa033f1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/be539138d9a187af3b884525a395db10797c64f1","name":"https://git.kernel.org/stable/c/be539138d9a187af3b884525a395db10797c64f1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5fd8baacc7dc477df9cac61b45491840247a9b1e","name":"https://git.kernel.org/stable/c/5fd8baacc7dc477df9cac61b45491840247a9b1e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/58952c83dfe6ea3294a74734d2d1018c1120779a","name":"https://git.kernel.org/stable/c/58952c83dfe6ea3294a74734d2d1018c1120779a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-93121","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93121","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7b07a2a7ca02a20124b552be96c5a56910795488 be539138d9a187af3b884525a395db10797c64f1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7b07a2a7ca02a20124b552be96c5a56910795488 5fd8baacc7dc477df9cac61b45491840247a9b1e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7b07a2a7ca02a20124b552be96c5a56910795488 58952c83dfe6ea3294a74734d2d1018c1120779a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7b07a2a7ca02a20124b552be96c5a56910795488 621707dc67c9846fd876d7579ec951d92aa033f1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.110 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.52 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.6 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/usb/gadget/function/f_fs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"be539138d9a187af3b884525a395db10797c64f1","status":"affected","version":"7b07a2a7ca02a20124b552be96c5a56910795488","versionType":"git"},{"lessThan":"5fd8baacc7dc477df9cac61b45491840247a9b1e","status":"affected","version":"7b07a2a7ca02a20124b552be96c5a56910795488","versionType":"git"},{"lessThan":"58952c83dfe6ea3294a74734d2d1018c1120779a","status":"affected","version":"7b07a2a7ca02a20124b552be96c5a56910795488","versionType":"git"},{"lessThan":"621707dc67c9846fd876d7579ec951d92aa033f1","status":"affected","version":"7b07a2a7ca02a20124b552be96c5a56910795488","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/usb/gadget/function/f_fs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.110","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.52","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.110","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.52","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.6","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-09-17T16:11:27.220Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/be539138d9a187af3b884525a395db10797c64f1"},{"url":"https://git.kernel.org/stable/c/5fd8baacc7dc477df9cac61b45491840247a9b1e"},{"url":"https://git.kernel.org/stable/c/58952c83dfe6ea3294a74734d2d1018c1120779a"},{"url":"https://git.kernel.org/stable/c/621707dc67c9846fd876d7579ec951d92aa033f1"}],"title":"usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-93121","datePublished":"2026-09-17T16:11:27.220Z","dateReserved":"2026-09-17T16:02:15.086Z","dateUpdated":"2026-09-17T16:11:27.220Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-17 17:18:06","lastModifiedDate":"2026-09-17 17:18:06","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"93121","Ordinal":"1","Title":"usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() er","CVE":"CVE-2026-93121","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"93121","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() er"}]}}}