CVE-2026-45971: bpf: Limit bpf program signature size
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Limit bpf program signature size
Practical BPF signatures are significantly smaller than KMALLOC_MAX_CACHE_SIZE
Allowing larger sizes opens the door for abuse by passing excessive size values and forcing the kernel into expensive allocation paths (via kmalloc_large or vmalloc).
The Linux kernel CVE team has assigned CVE-2026-45971 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 349271568303695f0ac3563af153d2b4542f6986 and fixed in 6.18.14 with commit 5835a077c6f5c565d525eaca9fac01572b97a9b9 Issue introduced in 6.18 with commit 349271568303695f0ac3563af153d2b4542f6986 and fixed in 6.19.4 with commit eb8166c79097996396468a341de258a798789d36 Issue introduced in 6.18 with commit 349271568303695f0ac3563af153d2b4542f6986 and fixed in 7.0 with commit ea1535e28bb3773fc0b3cbd1f3842b808016990c
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-45971
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/syscall.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/5835a077c6f5c565d525eaca9fac01572b97a9b9 https://git.kernel.org/stable/c/eb8166c79097996396468a341de258a798789d36 https://git.kernel.org/stable/c/ea1535e28bb3773fc0b3cbd1f3842b808016990c