Skip to contentSkip to conversation

CVE-2026-99129: selinux: fix BPF token permission checks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 28

lore
Share & tools
lore
#0 lore raw

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

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

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

selinux: fix BPF token permission checks

Avoid multiple lookups of the bpffs creator SID using the token's file descriptor when the same information can be found via the resolved path/dentry (in selinux_bpf_token_create()) or the token itself (in selinux_bpf_map_create() and selinux_bpf_prog_load()). Not only does this simplify the code, it avoids potential TOCTOU issues if the user changes the token file descriptor passed into the kernel.

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

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

	Issue introduced in 7.0 with commit 5473a722f782f79f96b4691400d681c01fcacc2f and fixed in 7.2.13 with commit e1ef306ba20eb13099ca4463527890df67619405
	Issue introduced in 7.0 with commit 5473a722f782f79f96b4691400d681c01fcacc2f and fixed in 7.3 with commit 77d499e61d36e883a6ad1f10afe05f556aa7e0cc

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

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:
security/selinux/hooks.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/e1ef306ba20eb13099ca4463527890df67619405
	https://git.kernel.org/stable/c/77d499e61d36e883a6ad1f10afe05f556aa7e0cc