Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04ABB52CCE5 for ; Thu, 17 Sep 2026 16:37:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663078; cv=none; b=BXYNO4PhZz+/x3LAN5Q139N0IiGbvOa9mbxvjF5aQU8tathGIbATcwJ7lQjcywpct5JBHE7Yf8aT2lZ9apD/1fms0rRlIQkR8WojC4RaCWGRbkRYAR3q/Y4+OJlME7rjrPJuH7+YFvIA732WOfOk12f7z7QT8daS0/d4n9h8fBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663078; c=relaxed/simple; bh=nztfgL13NlNay6NXWXiQONf6TI0Fvy3z3gvZZWjTV5k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JvHpFUIfW7183x32EAnnE84K8Tuei84J62qikIRazMNqD5lUOYRiujL35Z49GOvgWvRPJQ9edLu7HVP6N2tCUbTG3CIuFPCFhX0tJSLsErUwPb5VQWafM71BIG4VNHwt8hMS8qMrHZdLxSQDonE8ECPe2MWIFH8C0mLAnEDngkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jdMRPp1u; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jdMRPp1u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 163871F000FF; Thu, 17 Sep 2026 16:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663076; bh=6ZuX3OqB9scXc9t50Yh5d7O6U073qHm9BLmBmCLd0bo=; h=From:To:Cc:Subject:Date:Reply-To; b=jdMRPp1ucZ9BkXMzKG0pv8G+Ff21cjs/QyTn3Rgi7LRf5E4/raulKzyjUgKD95VR1 nnez0ni7vIM1G9W5WAoERvAsziendqBmnkcrK2LzhB631U5PTNrgWvvtvts3CjuoII imwzLZQyYi1/sIPx30zciIjqwFRpicxhcTSDesDw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93121: usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths Date: Thu, 17 Sep 2026 17:16:38 +0100 Message-ID: <2026091749-CVE-2026-93121-bacb@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DXz+OD0ghNxOVkT4Gs6zzYjIDffvs5eGSky9fYlN/10=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBM6u0GX89+iH9171mrt/eVL3n+iqX9jw8rLGkXbRS wF37LcYdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjD8xLGgrFHSbc9RCtfbl 8x+VU6eoKU7smcKwYGXw9lTt/b4yS1TUbtxnONd4dJH1PQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Fix fence cleanup in ffs_dmabuf_transfer() error paths The error paths for endpoint-disabled (ESHUTDOWN) and request-allocation failure (ENOMEM) in ffs_dmabuf_transfer() jump to err_fence_put which calls dma_fence_put() on the fence. However, at that point the fence has only been kmalloc'd — dma_fence_init() has not been called yet, so the refcount and the fence ops are uninitialized. Calling dma_fence_put() on such an object leads to undefined behavior. Use kfree() instead, since the fence is just a plain allocation at this stage, and rename the label to err_fence_free to reflect the actual cleanup action. The Linux kernel CVE team has assigned CVE-2026-93121 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.12.110 with commit be539138d9a187af3b884525a395db10797c64f1 Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.18.52 with commit 5fd8baacc7dc477df9cac61b45491840247a9b1e Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.2.6 with commit 58952c83dfe6ea3294a74734d2d1018c1120779a Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.3-rc1 with commit 621707dc67c9846fd876d7579ec951d92aa033f1 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93121 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/function/f_fs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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