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

bpf: Reject sleepable BPF_LSM_CGROUP programs at load time

The cgroup shim runs under rcu_read_lock_dont_migrate(), so we should
not attach any sleepable BPF programs there. Add support to the verifier
to explicitly reject attempts to load sleepable BPF programs destined
for LSM cgroup attachment.

Without this, we get the following splat from a BPF_LSM_CGROUP
program marked BPF_F_SLEEPABLE attached to file_open when it calls
bpf_get_dentry_xattr():

BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1567
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 34317, name: load
preempt_count: 0, expected: 0
RCU nest depth: 2, expected: 0
Call Trace:
down_read+0x76/0x480
ext4_xattr_get+0x11f/0x700
__vfs_getxattr+0xf0/0x150
bpf_get_dentry_xattr+0xbb/0xf0
bpf_prog_e76a298dac9218c6_test_open+0x6a/0x85
__cgroup_bpf_run_lsm_current+0x326/0x840
bpf_trampoline_6442534646+0x62/0x14d
security_file_open+0x34/0x60
do_dentry_open+0x340/0x1260
vfs_open+0x7a/0x440
path_openat+0x1bac/0x30a0

libbpf provides a .s named section variant for every sleepable
program type except lsm_cgroup, reflecting that per-cgroup LSM programs
are intended to only run in a non-sleepable context.

The above splat was obtained by bypassing libbpf by using bpf(2)
directly.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A sleepable BPF_LSM_CGROUP program can be loaded into the kernel’s LSM cgroup attachment mechanism— a context that does not allow sleeping functions. When such a program calls a sleeping API it triggers a BUG, leading the kernel to crash. It is inferred that this crash could lead to a system reboot or halt, causing a denial of service. The vulnerability is caused by a missing verification step that should reject sleepable programs for LSM cgroup attachment.

Affected Systems

Linux kernel binaries are affected. No specific kernel version is listed in the CVE data, but the bad code resides in the BPF verifier used by the kernel’s LSM cgroup attachment mechanism. Therefore any Linux kernel that includes this verifier without the new rejection logic could be impacted, regardless of distribution or release line.

Risk and Exploitability

The CVSS score is 7.8, and the EPSS score is less than 1%, indicating a very low but nonzero probability of exploitation. The vulnerability can be exploited by a local actor with appropriate privileges; the primary risk is a service interruption due to a kernel crash (viable DoS). The fix, introduced by the commit referenced in the description, eliminates the code path that allows sleeping in a non‑sleepable context, and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation at the time of reporting.

Generated by OpenCVE AI on August 22, 2026 at 02:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates the commit fixing the rejection of sleepable BPF_LSM_CGROUP programs.
  • If an immediate kernel upgrade is not feasible, avoid loading BPF programs that set the BPF_F_SLEEPABLE flag into LSM cgroup contexts; use libbpf rather than the raw bpf(2) system call to rely on the verifier.
  • Restrict the ability to load BPF programs to users with the necessary administrative capabilities (e.g., CAP_SYS_ADMIN) and consider disabling LSM cgroup BPF program attachment if it is not required.

Generated by OpenCVE AI on August 22, 2026 at 02:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-264
CWE-674

Thu, 20 Aug 2026 00:15:00 +0000


Mon, 17 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-264
CWE-674

Mon, 17 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-682

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-682

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Reject sleepable BPF_LSM_CGROUP programs at load time The cgroup shim runs under rcu_read_lock_dont_migrate(), so we should not attach any sleepable BPF programs there. Add support to the verifier to explicitly reject attempts to load sleepable BPF programs destined for LSM cgroup attachment. Without this, we get the following splat from a BPF_LSM_CGROUP program marked BPF_F_SLEEPABLE attached to file_open when it calls bpf_get_dentry_xattr(): BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1567 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 34317, name: load preempt_count: 0, expected: 0 RCU nest depth: 2, expected: 0 Call Trace: down_read+0x76/0x480 ext4_xattr_get+0x11f/0x700 __vfs_getxattr+0xf0/0x150 bpf_get_dentry_xattr+0xbb/0xf0 bpf_prog_e76a298dac9218c6_test_open+0x6a/0x85 __cgroup_bpf_run_lsm_current+0x326/0x840 bpf_trampoline_6442534646+0x62/0x14d security_file_open+0x34/0x60 do_dentry_open+0x340/0x1260 vfs_open+0x7a/0x440 path_openat+0x1bac/0x30a0 libbpf provides a .s named section variant for every sleepable program type except lsm_cgroup, reflecting that per-cgroup LSM programs are intended to only run in a non-sleepable context. The above splat was obtained by bypassing libbpf by using bpf(2) directly.
Title bpf: Reject sleepable BPF_LSM_CGROUP programs at load time
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:46:05.052Z

Reserved: 2026-08-15T05:44:03.885Z

Link: CVE-2026-74338

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:34.740

Modified: 2026-08-17T06:19:28.243

Link: CVE-2026-74338

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74338 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T02:15:03Z

Weaknesses
  • CWE-663

    Use of a Non-reentrant Function in a Concurrent Context