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 E44054EB873 for ; Thu, 17 Sep 2026 16:19:43 +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=1789661985; cv=none; b=C+qR7DAbeVwlVVIROenulY0ewNgQVr8colR50SbyN9aMCqL+QgElf5XINUNGqE+tNcyTYLLg27zTKudETEnHJ3DbYbJdzTI6076gnhwcVV/MsOn+kpsh8q9rissnREQ/p7DGFxS6Yl5IWXniu/CuLiY9PWfTJU82ts9VJZs4Gh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661985; c=relaxed/simple; bh=YstwYy0jobaPJr8H4/ll9ztjjbvL1zIIaeE3XVaKZbE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t6ngLdiGX6Kzypg+AUObnssH9VMSip9qcnhEqcWBcqyffb7lIWNzGWQE2eDiPBDhPsgqJZ0ALVUl1hF9y4GRXo6j9z4e53F54Pkpj2rsHizoblFx4DrmFHuwTZQ7ovGMIIikI0XQXGRTtzKnke4rwTaX5AlKHvaLYdKWrv18yIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=euwEpMN8; 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="euwEpMN8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46FF51F000FF; Thu, 17 Sep 2026 16:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661983; bh=soKW2ufdHhlMmWLD4erbfqudviKXWkWUGJ+Sj9W+x6w=; h=From:To:Cc:Subject:Date:Reply-To; b=euwEpMN8qKrrBjG7VaSKZf/1OKwCtADm0JXCgdGAt+0tGPDzat+RmZTiu6h3wgFZe UotUFjG0ZL8mmgF/IR48fGmKLXCyi/Nf3b3Y1O/x03Wow+7tP6WPhHHsyL+YMFT+SZ T4TJ8wqSsPdHxr7xOh7aIufaX708oq//ce54KzeQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90201: net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race Date: Thu, 17 Sep 2026 17:10:31 +0100 Message-ID: <2026091734-CVE-2026-90201-bcec@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=3959; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QAUByuAT02xY0vZJrs3MocgSj8fSke3Lzt00T3bOvaM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBJr87qQfO/ZI6uEdoaXmn3Z9llzV/aVAqNzljtOTU z93tgtUdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEEvYyzI/4/aXuYEr4xf2/ tZRmfI/xuVkbs45hnrpJ9c/zq3ZOuM1g+Pr/i706184e8QEA 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: net: page_pool: fix UAF in __page_pool_release_netmem_dma on xa_cmpxchg race This bug was discovered while testing the hns3 driver under channel reconfiguration (`ethtool -L` / `ethtool -G`) with iperf3 traffic on arm64. The race is intermittently triggered when page_pool_destroy() runs page_pool_scrub() concurrently with page return via page_pool_put_netmem() on a different CPU. A WARN in page_pool_clear_pp_info() surfaced the dangling DMA index bits left by the cmpxchg loser, which led to the investigation. page_pool_scrub() iterates pool->dma_mapped via xa_for_each() with no page ref held. __page_pool_release_netmem_dma() currently reads and writes netmem fields (dma_addr, DMA index bits in pp_magic) after xa_cmpxchg() returns. The unref path calls put_page() unconditionally regardless of the cmpxchg outcome; when it loses the cmpxchg, it still frees the page before the scrub winner finishes these netmem accesses, so scrub touches a freed page -- a Use-After-Free. Fix this by splitting the DMA release into two functions: 1. __page_pool_unmap_netmem_dma() caches dma_addr before xa_cmpxchg(), does the cmpxchg to remove the DMA mapping, and calls dma_unmap on the cached address. It never touches netmem fields after the cmpxchg, making it safe for the scrub path which holds no page ref. 2. __page_pool_release_netmem_dma() wraps the above and additionally clears dma_addr and DMA index bits in netmem fields. This is safe only when the caller holds a page ref, so it is used by the return path (page_pool_return_netmem). The scrub path calls __page_pool_unmap_netmem_dma() directly; the return path calls __page_pool_release_netmem_dma(). The Linux kernel CVE team has assigned CVE-2026-90201 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.34 with commit 4f51fb0d257ff4d406ec27966902de075e3b118e and fixed in 6.12.110 with commit bbfef303f980c1c078b8fa142e10a0e2fbcdd247 Issue introduced in 6.16 with commit ee62ce7a1d909ccba0399680a03c2dee83bcae95 and fixed in 6.18.52 with commit 424a9fc4876cc7f28e9cb0aa8d92e920d726e350 Issue introduced in 6.16 with commit ee62ce7a1d909ccba0399680a03c2dee83bcae95 and fixed in 7.2.6 with commit 9b65b0253ad5a66f73efee9a79a21a1e2b57cf59 Issue introduced in 6.16 with commit ee62ce7a1d909ccba0399680a03c2dee83bcae95 and fixed in 7.3-rc1 with commit 24ef02f934eeb48830cff6b739abc3c62b1d107b Issue introduced in 6.15.3 with commit c30ae60f41f9edd6e1b5cad41cf28ce04dae39e4 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-90201 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: net/core/page_pool.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/bbfef303f980c1c078b8fa142e10a0e2fbcdd247 https://git.kernel.org/stable/c/424a9fc4876cc7f28e9cb0aa8d92e920d726e350 https://git.kernel.org/stable/c/9b65b0253ad5a66f73efee9a79a21a1e2b57cf59 https://git.kernel.org/stable/c/24ef02f934eeb48830cff6b739abc3c62b1d107b