Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154153; b=PnN0BUB9GTrZcq5/twK+wF7m/kCuaG6XhA0WWNvsHr3n1f65yiWU2Pd7jXB8GX/Nf8rw SRzx0XUXA0nYvvmHBVTLF/Jskvnwzn5hzN5Tr66LbLHAAjSatWkYZMEYWwc9gl5VtE2Ig bCbjSWEnuOvVnTwxD6e5UN/9LUthvn8iqslJGI8VwzPKf8uTluOCTaint96VTNAmpwu7F irg4Rs4pZelZ+i2owRIJhy+5uG/ajTYMzQf0tkwZxp5J83xN2Li2WoRvBy5499M/xL/K4 xjt6dhSi7FXBxFC8pocGQn3oGFDsC2iIst4YxNsV3EW1IPNUKeEgpNsY9b8qnLrEUFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154153; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=QuVNeyy+4rlLXf0nQa3eZQ06KMIjREEOvetawqyDW2A=; b=EruqIXfqz0vzhbi3BG1cJHeoOAFBcQRdYHI4mOEJgSViPWeVc5lIS3Umt0NRUi22WB+f vJM6hga9iOJ1XIRRAm9ilvN3wPfDecVrGA5GzvGD4A1T8g/Kdgqn+aKtoKATiyPjRauyr Q1z/r9uqPeQLKovLCwoqFZAbkNQxcr7NNgVVjDXbBUo4X+uzKvn1OwJWGaF5v/d1EtRYV /GFwelVcjjfP0J4XRXOaPpCy4m8cDiZ5cYMKju25uj3Ysdi3sAoaMU8IbG+h0DMe7akgZ Vc3Y9Jii8BoIdx+OTWW1zIOnuNAYFQ7gr7+fu3Y73uBqLzR7cF9JZjvYBpKPYoRRFQg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ugpMvk+P; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ED53606A330 for ; Fri, 20 Nov 2026 05:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ugpMvk+P Received: by smtp.kernel.org (Postfix) with ESMTPSA id DECDB1F000C4; Fri, 20 Nov 2026 05:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154153; bh=QuVNeyy+4rlLXf0nQa3eZQ06KMIjREEOvetawqyDW2A=; h=From:To:Cc:Subject:Date:Reply-To; b=ugpMvk+P5avytLCzlYGGMzuhLreB3DCtLLfwpV6uqutx+fTOXWaK2z44EU2wsds1r iLBA2eTHBrq7XhUJiPjgpyLPutJj59XBHTRCrT+50fmumZQPVlRnvYvmpaY6uytbZ6 KWTCG7F/st0JYUcLt7o7von1EEJ74tiLIAOPdfyI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99645: mm/cma: don't release CMA pages still in use Date: Fri, 20 Nov 2026 06:50:31 +0100 Message-ID: <2026112042-CVE-2026-99645-b193@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2640; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w64q7eIKArSXEzPQu+8qswsdv/mxwsyHmllBp0wETdQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/75cFTPh96eiR7rQXATuFnH+ld7VN6GC1WT5X/OCF6 gzr5Jd5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR6/0MC6Z9+5Hy+cN26fpr Qc3fZFyftQfN72WYw/PSx/Th2rOSAVfmP3nGsWqnuXxMDwA= 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: mm/cma: don't release CMA pages still in use When a driver calls dma_free_contiguous() before quiescing DMA, the page might still have a reference from the device. put_page_testzero() there returns false, WARN fires, but the code proceeds to free_contig_frozen_range() putting a live page onto buddy and clearing the bitmap. A subsequent allocation can hand the same PFN to a new owner while the original holder still references it. A concurrent put_page() that drops the last reference between the testzero loop and free_contig_frozen_range() can double-queue the page via page->lru, corrupting buddy lists. Avoid the corruption by not freeing a CMA region if any of the pages inside are still in use. Make it explicit in the warning that the driver allowed a leak. While at it, use page_ref_freeze() to make the semantics clearer and switch to pr_warn_ratelimited(). [ david: use page_ref_freeze() + pr_warn_ratelimited() ] The Linux kernel CVE team has assigned CVE-2026-99645 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f and fixed in 7.3.5 with commit 485214cc031771fdbd5829b431f4f115e285dc21 Issue introduced in 7.0 with commit 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f and fixed in 7.4-rc2 with commit e8abc61d8a549a91c8fa639f68be2ef13d5fa63b 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-99645 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: mm/cma.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/485214cc031771fdbd5829b431f4f115e285dc21 https://git.kernel.org/stable/c/e8abc61d8a549a91c8fa639f68be2ef13d5fa63b