Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A7A6E3A1E7F for ; Tue, 16 Dec 2025 13:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893506; cv=none; b=cibrn/K0JK8Megf3sbFBniWGaKUDX5dN/RI3FqjsbKSrk3CNEb8Ks3U/p/mqS3Ti1/2ouWJxILG9uQyFUcrQwma8pUeLK98idkoRu7sPcLKGGAsMvm5U4ZiwwIMcngu2BEzXV7yW+B7Wy2B6UWYW+JtwcIyrelb/zYvQN73+nOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893506; c=relaxed/simple; bh=OYyX6A9MOxOvdoiAC3Ssxw7/QPrPvZUvjkkEdP5UaEg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h/ADmLkKYZRSlDnPTzSXoALy58EnsIEB+PfjwN3bZefURQ37o90Q5XnFZOPJireKPBvyKqes+7zPwM1X2ypdy1klIfrgGxQe9dfqT39bhfvsmO+q2rzGHoYm3YRWRX9l0fVN50JrhDGlH5EBVJRH89yjMrBaElIfgabQF4XrP20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dtS+Q1Ux; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dtS+Q1Ux" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BADE2C4CEF1; Tue, 16 Dec 2025 13:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765893506; bh=OYyX6A9MOxOvdoiAC3Ssxw7/QPrPvZUvjkkEdP5UaEg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dtS+Q1Ux49qx/+B5WuvOvcnnZHbenRBwzSH9lYimoijZAieVpLJPOiy69oI+8yy+A W3RSz6W/Dy1vHq6IuY8czDJRG7uw4HLypqrGbDp2kIyqFSt/qYHFyx7Ujm3IMuIL3n AV6Q7b1ShF1Jj8RXh0JBRVaeNT7GwxnRnIdnGyqA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68231: mm/mempool: fix poisoning order>0 pages with HIGHMEM Date: Tue, 16 Dec 2025 14:57:50 +0100 Message-ID: <2025121636-CVE-2025-68231-74ba@gregkh> X-Mailer: git-send-email 2.52.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=4219; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sEW1mVwEDI7kwz8Agi3mWVWCPrIpnv2Qmlq/BDb9pII=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOqQGff/AxXZRmmXLSLPRGyX2xCXoJW66wCnVenZr1o uVZduj5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIoyiGBW0RYQwcL7QN0yQl trAf3iXc+53PmmG++9b1WdEhlR7Hhbcma8x8fUP5ws6bAA== 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/mempool: fix poisoning order>0 pages with HIGHMEM The kernel test has reported: BUG: unable to handle page fault for address: fffba000 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page *pde = 03171067 *pte = 00000000 Oops: Oops: 0002 [#1] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Tainted: G T 6.18.0-rc2-00031-gec7f31b2a2d3 #1 NONE a1d066dfe789f54bc7645c7989957d2bdee593ca Tainted: [T]=RANDSTRUCT Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 EIP: memset (arch/x86/include/asm/string_32.h:168 arch/x86/lib/memcpy_32.c:17) Code: a5 8b 4d f4 83 e1 03 74 02 f3 a4 83 c4 04 5e 5f 5d 2e e9 73 41 01 00 90 90 90 3e 8d 74 26 00 55 89 e5 57 56 89 c6 89 d0 89 f7 aa 89 f0 5e 5f 5d 2e e9 53 41 01 00 cc cc cc 55 89 e5 53 57 56 EAX: 0000006b EBX: 00000015 ECX: 001fefff EDX: 0000006b ESI: fffb9000 EDI: fffba000 EBP: c611fbf0 ESP: c611fbe8 DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010287 CR0: 80050033 CR2: fffba000 CR3: 0316e000 CR4: 00040690 Call Trace: poison_element (mm/mempool.c:83 mm/mempool.c:102) mempool_init_node (mm/mempool.c:142 mm/mempool.c:226) mempool_init_noprof (mm/mempool.c:250 (discriminator 1)) ? mempool_alloc_pages (mm/mempool.c:640) bio_integrity_initfn (block/bio-integrity.c:483 (discriminator 8)) ? mempool_alloc_pages (mm/mempool.c:640) do_one_initcall (init/main.c:1283) Christoph found out this is due to the poisoning code not dealing properly with CONFIG_HIGHMEM because only the first page is mapped but then the whole potentially high-order page is accessed. We could give up on HIGHMEM here, but it's straightforward to fix this with a loop that's mapping, poisoning or checking and unmapping individual pages. The Linux kernel CVE team has assigned CVE-2025-68231 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit bdfedb76f4f5aa5e37380e3b71adee4a39f30fc6 and fixed in 6.1.159 with commit ea4131665107e66ece90e66bcec1a2f1246cbd41 Issue introduced in 4.1 with commit bdfedb76f4f5aa5e37380e3b71adee4a39f30fc6 and fixed in 6.6.118 with commit 19de79aaea33ee1ea058c8711b3b2b4a7e4decd4 Issue introduced in 4.1 with commit bdfedb76f4f5aa5e37380e3b71adee4a39f30fc6 and fixed in 6.12.60 with commit 6a13b56537e7b0d97f4bb74e8038ce471f9770d7 Issue introduced in 4.1 with commit bdfedb76f4f5aa5e37380e3b71adee4a39f30fc6 and fixed in 6.17.10 with commit a79e49e1704367b635edad1479db23d7cf1fb71a Issue introduced in 4.1 with commit bdfedb76f4f5aa5e37380e3b71adee4a39f30fc6 and fixed in 6.18 with commit ec33b59542d96830e3c89845ff833cf7b25ef172 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-2025-68231 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/mempool.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/ea4131665107e66ece90e66bcec1a2f1246cbd41 https://git.kernel.org/stable/c/19de79aaea33ee1ea058c8711b3b2b4a7e4decd4 https://git.kernel.org/stable/c/6a13b56537e7b0d97f4bb74e8038ce471f9770d7 https://git.kernel.org/stable/c/a79e49e1704367b635edad1479db23d7cf1fb71a https://git.kernel.org/stable/c/ec33b59542d96830e3c89845ff833cf7b25ef172