CVE-2026-99129

selinux: fix BPF token permission checks

Published Oct 28, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a bug in the SELinux subsystem of the Linux kernel that handled permission checks for BPF tokens. The kernel performed multiple lookups of the creator’s security identifier (SID) using the token’s file descriptor when creating a token or loading a program. The same SID could be derived from the resolved path or the token data itself. The code removal simplifies the logic and avoids a potential time‑of‑check to time‑of‑use (TOCTOU) race condition. Based on the description, an attacker might be able to manipulate the token file descriptor after permission checks to bypass SELinux policies, but the CVE data does not confirm an actual exploitation path. The fix removes the redundant lookups and eliminates the race, ensuring correct permission enforcement.

Affected Systems

All Linux kernel releases that contain the obsolete SELinux BPF token code are affected. The referenced commits mark the point where the bug was fixed; users running kernel versions prior to these changes are impacted.

Risk and Exploitability

The CVSS score is 6.3, indicating a moderate impact. The EPSS score of < 1% suggests a low likelihood of exploitation at this time. The vulnerability is not listed in CISA’s KEV catalog. Exploitation would require the ability to load eBPF programs and manipulate token file descriptors, a capability typically restricted to privileged users. If such conditions exist, the bug could potentially lead to privilege escalation, but the CVE data does not assert that an exploit exists.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the SELinux BPF token permission check fix from the latest kernel release (e.g., the commit 77d499e61d36e883a6ad1f10afe05f556aa7e0cc or e1ef306ba20eb13099ca4463527890df67619405).
  • Ensure that SELinux is enabled and enforcing policies on eBPF programs.
  • If a kernel upgrade is not immediately possible, monitor for new kernel releases and validate the presence of the fix before applying any new eBPF functionality.

Generated by OpenCVE AI on October 30, 2026 at 05:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-285
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-285
CWE-367
Type Values Removed Values Added
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.
Title selinux: fix BPF token permission checks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 28, 2026, 10:34 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 28, 2026, 11:17 AM
Severity
Moderate
Public date
Oct 28, 2026, 10:34 AM