Skip to contentSkip to conversation

CVE-2026-90046: mm/page_alloc: don't spin_trylock() in NMI on UP

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

mm/page_alloc: don't spin_trylock() in NMI on UP

Patch series "mm/page_alloc: fixes for free_pages_nolock() on RT/UP".

Pre-existing bugs found by Sashiko during review of this other series:
https://lore.kernel.org/all/[email protected]/

I have not reproduced these bugs, and I suspect there is no real-world user that is affected by them.

This patch (of 2):

As noted in can_spin_trylock(), using this is unsafe in this context. commit 620b46ed6ae17 ("mm/page_alloc: return NULL early from alloc_frozen_pages_nolock() in NMI on UP") fixed this on the alloc side but missed the free side.

Impact: If BPF programs using these features in NMI (probably tracing) are present on non-SMP builds this might crash the kernel and is probably exploitable by local attackers for privilege escalation.

The Linux kernel CVE team has assigned CVE-2026-90046 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.15 with commit 8c57b687e8331eb80e302a2c528b18b966a9ac7a and fixed in 6.18.51 with commit 06c76d3c389ff504052f64b1acee44651bd847fa
	Issue introduced in 6.15 with commit 8c57b687e8331eb80e302a2c528b18b966a9ac7a and fixed in 7.2.5 with commit 68a069b407303e71db371df85036101e8ff59280
	Issue introduced in 6.15 with commit 8c57b687e8331eb80e302a2c528b18b966a9ac7a and fixed in 7.3-rc1 with commit 3105ae628fb785d48b49256468be4f21a7b3cfc0

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-90046

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/page_alloc.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/06c76d3c389ff504052f64b1acee44651bd847fa
	https://git.kernel.org/stable/c/68a069b407303e71db371df85036101e8ff59280
	https://git.kernel.org/stable/c/3105ae628fb785d48b49256468be4f21a7b3cfc0