From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796045853; b=vcsSnDOLFQI1qYMiEOXhHR5gnIbyTK3bM2+ZeG807d/McLCiFNPnBw1POw05KhOnKUbM gLP82GxKB6oGHAIomTG6PHv9DYL2Twkk83hCt/VUuSo86GnAvy8q06zqre/veoGnssSAN depJsZ0UzK1BGXH+Y7hbE3jHWw2S/mynfP2t37c/G3KkYGj0NJMfud70b8bSFkT0SgNCX iJ5n/m0rsPLJ3AJDmjtkz1evjUo3hT48Pc/4obnsDWnABPHAlhXW8cP6wnRfRoY7My4Lx GfRxn5/57mU6QesxbDGVTFZIQQEcj8MwGbBqnKyX2zD0N/hsJy12QVMth5G0n6jKuQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045853; 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=E/6gtnJGKEJOigzksSK3E03JLV3VOsgYJe0GbUQ6ih8=; b=LAmkF/VhwaEOoy1zXkI3sSwcjYrxbugavjjPGlQQ8aTzzvQS8rjCdQidDgAnmmzsjUcO cgZdg3Klx1cbv1LNg7H6fmafeNsrxCRd1V5zSHtri+y9PzY00qfXz/PJbUCDLIgQE8UoJ G9kDRDgTIxyKrk/DWPrqxvT4CxM+0/RmPsyyZwI+ztO5ClJNP+lnXAWnbbjRGXe3bPrXG Zxc/vBL3ZNyTkLCu94eDDMg1pfXuMMnAGyDIMGh0u9DDfcNCVShv5QvFKiS6XMaTyPyeP hltJvbBacHbYa0wKvKA3xu1WxhnFJINDnMACSzACnZUeKb3R5Mjf2DHYfukJVWa/Fxw== 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=k6oEFuzY; 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 58D32606A325 for ; Mon, 30 Nov 2026 13:37:33 +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=k6oEFuzY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5FD1F00897; Mon, 30 Nov 2026 13:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045853; bh=E/6gtnJGKEJOigzksSK3E03JLV3VOsgYJe0GbUQ6ih8=; h=From:To:Cc:Subject:Date:Reply-To; b=k6oEFuzYMKh9YfF1QTipWeQdccBgS22BVenX6+GWq7LzzVJlgkUM4lDO6y22lQHn8 zZPnCYRJ6g19BAovZR+BzWKTxNJK6Kqro0EXmwciQRau+ugvD7OwxQE4beXhasn8t9 C10OZKKf3FR5BDe4JezXjUPu3NqO4t3waL15E8/s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-100039: alpha: load the MMU context when switch_mm() switches the current task Date: Mon, 30 Nov 2026 14:23:44 +0100 Message-ID: <2026113014-CVE-2026-100039-ca57@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=4664; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ioIM7UHJ2R/7EX+dZ7FNFjFQrcPQITVZ5CVG8CSccGo=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8FYeWHHqtfX+iRrKjo4/VpN+LZlQVrtTJ6ddo5mlOr Hd0VFfviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInImjIs2FTccqL3LWME962/ cvXMQStkfse9ZlhwVUE/5tshl2nhyXldm7pYz81rZJkGAA== 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: alpha: load the MMU context when switch_mm() switches the current task ev5_switch_mm() only prepares the incoming PCB. The context is installed by PAL_swpctx, which alpha_switch_to() issues against that PCB on the way out of the scheduler. Direct callers reach switch_mm() without going through alpha_switch_to(): kthread_use_mm(), which borrows an mm for the current kernel thread, sched_force_init_mm() on the CPU-hotplug teardown path, and do_shoot_lazy_tlb(), which switches to init_mm from an IPI. None explicitly loads the context, so the task can carry on running under whatever was loaded before. For kthread_use_mm(), current->mm then names the borrowed mm even though its context has not been loaded. The other two callers change active_mm while leaving current->mm NULL. The stale page-table root need not be swapper_pg_dir; it may belong to a user process that ran on the CPU earlier, and the kthread's user accesses can then read and write that process's memory wherever the stale mappings allow. Translations taken that way can also end up tagged with the borrowed mm's ASN: ev5_switch_mm() writes that ASN into the PCB, which the next PAL_swpctx installs against the stale ptbr. An address the stale tables do not map faults instead, and since do_page_fault() resolves faults against current->mm without reloading the context, the same access can fault again on return. sched_force_init_mm() needs CONFIG_HOTPLUG_CPU and do_shoot_lazy_tlb() needs CONFIG_MMU_LAZY_TLB_SHOOTDOWN. Alpha selects neither, so only kthread_use_mm() is reachable in practice. Test the caller's identity rather than special-casing individual callers. The scheduler passes the incoming task, which is not current until alpha_switch_to() runs; all three direct callers pass current. Test for that and load the context the way activate_mm() does. All three run with interrupts disabled across the switch, so this completes before any shootdown can be taken and needs no asn_lock handshake. The Linux kernel CVE team has assigned CVE-2026-100039 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.193 with commit f46ad7a6fb199acbb70fbcbee74f42368aecbb03 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.163 with commit c92003e46cd818c339598a77c1bcad5a517f6aa9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.117 with commit e4223344d89d70ad289494a0e92eef3ef58ccaa1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.63 with commit bc958129a57392adff6f2d374bbb0f32bbf9a5de Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.4 with commit 1af35afb40a355e5e50678792463509e0405d1a6 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc1 with commit 9b8be19d5dc9525a408942e2e8012873199e7455 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-100039 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: arch/alpha/include/asm/mmu_context.h 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/f46ad7a6fb199acbb70fbcbee74f42368aecbb03 https://git.kernel.org/stable/c/c92003e46cd818c339598a77c1bcad5a517f6aa9 https://git.kernel.org/stable/c/e4223344d89d70ad289494a0e92eef3ef58ccaa1 https://git.kernel.org/stable/c/bc958129a57392adff6f2d374bbb0f32bbf9a5de https://git.kernel.org/stable/c/1af35afb40a355e5e50678792463509e0405d1a6 https://git.kernel.org/stable/c/9b8be19d5dc9525a408942e2e8012873199e7455