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 DD8F037E5DC for ; Sat, 25 Jul 2026 08:53:57 +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=1784969639; cv=none; b=UxKohmTxvem/pQinX3S0WTghbSm0dIwoZfDNOUEqGJH3GUKlhq4vBS21mgtEAwsgEpdP4LR57agdW/3R0mPbeW2Dvf+FY9yOOnfGgLo08TkQ0kp28leXo5WdxAYhsOuCGl262OF8S+DV2DVQflRP8HL1xA6MadLGzRwMAW+PNj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969639; c=relaxed/simple; bh=0PePOIAD2Y8emzAj55WfRekbMb5cNYGHXjftWdFFoBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gR+fV7rfjjZiWfS53sg9/iuPpeEd1xGWt0r4mgjrXd2LsPf9Fn8xwC0QAeH642ZUs7lnZAAGesU5yYwzIygk6ILpv00JhzULaU/S4optwnOpEKwiw9X/Hd+Odp9/G2exoZvV6Yrwn+9JqGOLvIi21ADAzsNO8ZppklyeJHHaGw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XJIaE6N0; 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="XJIaE6N0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E6551F000E9; Sat, 25 Jul 2026 08:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969637; bh=j8eA+7zeLqP+5MWaKcmn/NtU8hTyISykq7TZ+vPgAqw=; h=From:To:Cc:Subject:Date:Reply-To; b=XJIaE6N00RCRG0SjngcUS05D8hWMG5gUOQkVDHdQF3lvJjvLPwEbIqZNZm4OkUYJK 5EflJIysUPteu5JqS8C8Z63/QqG1XPFD3roDyI0be4MOMr5AlRXaF7Nd7w514aXGXN CcW6KZSMqT0aK1J4guEfDdB95qOTdJ+NB9j9+QuU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64328: usb: gadget: f_fs: Fix DMA fence leak Date: Sat, 25 Jul 2026 10:49:05 +0200 Message-ID: <2026072513-CVE-2026-64328-f1c7@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=3104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WGt2kV09WxN4+ipE+qwVitJb6jWLfkZpH9B9AAK3Dpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFb7/ncv3S/NMSN8isWSK48HUIk2j1wIn79fkKWzIu O84/8OnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIyjqG+Z61BpPPHLQrsvpX VHn9euehLKPOLoYF027Yds14tYzj3W5zl7uH4i47hu6cAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Fix DMA fence leak In ffs_dmabuf_transfer(), a ffs_dma_fence object is kmalloc'd, with the underlying dma_fence later initialized by dma_fence_init(), which sets its kref counter to 1. Then, dma_resv_add_fence() gets a second reference, and a pointer to the ffs_dma_fence is passed as the usb_request's "context" field. The dma-resv mechanism will manage the second reference, but the first reference is never properly released; the ffs_dmabuf_cleanup() function decreases the reference count, but only to balance with the reference grab in ffs_dmabuf_signal_done(). The code will then slowly leak memory as more ffs_dma_fence objects are created without being ever freed. Address this issue by transferring ownership of the fence to the DMA reservation object, by calling dma_fence_put() right after dma_resv_add_fence(). The ffs_dma_fence then gets properly discarded after being signalled. The Linux kernel CVE team has assigned CVE-2026-64328 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.12.96 with commit b7475b2dce5e121e687280ba5732ccefe77ffd2f Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.18.39 with commit e086c16962a1b0142e2675610e9c06fcfcd4c3a8 Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.1.4 with commit 0cae3d6109427c455bad0a18dfb3e2a91657e38a Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.2-rc3 with commit baa6b6068a3f2bf2ed525a1cb37975905dadc658 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-64328 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/b7475b2dce5e121e687280ba5732ccefe77ffd2f https://git.kernel.org/stable/c/e086c16962a1b0142e2675610e9c06fcfcd4c3a8 https://git.kernel.org/stable/c/0cae3d6109427c455bad0a18dfb3e2a91657e38a https://git.kernel.org/stable/c/baa6b6068a3f2bf2ed525a1cb37975905dadc658