Skip to contentSkip to conversation

CVE-2026-53031: bpf: Validate node_id in arena_alloc_pages()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

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

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

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

bpf: Validate node_id in arena_alloc_pages()

arena_alloc_pages() accepts a plain int node_id and forwards it through the entire allocation chain without any bounds checking.

Validate node_id before passing it down the allocation chain in arena_alloc_pages().

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

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

	Issue introduced in 6.9 with commit 317460317a02a1af512697e6e964298dedd8a163 and fixed in 6.12.91 with commit 31d3b4b28e55835646d6829d60023f730dd34e85
	Issue introduced in 6.9 with commit 317460317a02a1af512697e6e964298dedd8a163 and fixed in 6.18.33 with commit e15900888c09480a4c632bc598f1c5bd39bed6d6
	Issue introduced in 6.9 with commit 317460317a02a1af512697e6e964298dedd8a163 and fixed in 7.0.10 with commit fb66e20130f95a93ffea1677252526a9e39170b2
	Issue introduced in 6.9 with commit 317460317a02a1af512697e6e964298dedd8a163 and fixed in 7.1 with commit 2845989f2ebaf7848e4eccf9a779daf3156ea0a5

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

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:
kernel/bpf/arena.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/31d3b4b28e55835646d6829d60023f730dd34e85
	https://git.kernel.org/stable/c/e15900888c09480a4c632bc598f1c5bd39bed6d6
	https://git.kernel.org/stable/c/fb66e20130f95a93ffea1677252526a9e39170b2
	https://git.kernel.org/stable/c/2845989f2ebaf7848e4eccf9a779daf3156ea0a5