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

bpf: Mark syscall helpers as sleepable

bpf_sys_bpf() executes the bpf(2) syscall body, which can take mutexes,
allocate with GFP_KERNEL, and wait for an RCU grace period.
bpf_sys_close() reaches close_fd() and filp_close(), which can sleep as
well.

Both helpers are limited to BPF_PROG_TYPE_SYSCALL, whose main program is
sleepable. That does not make every callback sleepable: a syscall program
can register a bpf_timer callback, and the verifier checks that callback
in a non-sleepable context while retaining the syscall helper set.

Without .might_sleep on the prototypes, such a callback can invoke
bpf_sys_bpf() from hrtimer softirq context and trigger a
scheduling-while-atomic failure. bpf_sys_close() is exposed through the
same missing context check.

Set .might_sleep on both prototypes so the existing helper-context check
rejects them from timer callbacks and other atomic regions. Calls from the
sleepable main body remain valid.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via Kernel Crash
Action: Apply patch
AI Analysis

Impact

The vulnerability is caused by a missing .might_sleep flag on two BPF helper prototypes, bpf_sys_bpf() and bpf_sys_close(), in the Linux kernel. These helpers can sleep while re‑entering with mutexes, allocating memory, or waiting for RCU grace periods. When a BPF program registers a timer callback, the verifier checks the callback in a non‑sleepable context but still permits the helper set. If the helper is invoked from such an atomic region, the kernel attempts to schedule while atomic, triggering a scheduling‑while‑atomic failure. This leads to a kernel panic or system crash, causing denial of service. The weakness aligns with CWE‑1322.

Affected Systems

All Linux kernel implementations that have not incorporated the commit adding the .might_sleep attribute to the bpf_sys_bpf and bpf_sys_close prototypes are affected. This includes stock kernels from any distribution version released prior to the patch. Vendor products that ship unmodified Linux kernels without the fix are susceptible. Since the commit is not part of the stable release for many distributions, any running kernel built from sources before the fix is vulnerable, regardless of the version number.

Risk and Exploitability

The CVSS score of 5.5 reflects a moderate severity and moderate attack complexity. The EPSS score of <1% indicates a low probability of exploitation at present, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker would need privileged access to load a BPF program and that the likely attack vector is a local execution of a crafted BPF program that registers a timer callback. When the helper is invoked from a non‑sleepable context, it can trigger a scheduling‑while‑atomic failure, leading to a kernel crash or reboot, effectively denying system availability.

Generated by OpenCVE AI on September 30, 2026 at 14:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the patch marking bpf_sys_bpf and bpf_sys_close as .might_sleep.
  • If a kernel update is not immediately possible, restrict BPF programs that register timer callbacks, especially of type BPF_PROG_TYPE_SYSCALL, or disable BPF support entirely.
  • Monitor kernel logs for scheduling‑while‑atomic warnings and set alerts for such events to detect potential exploitation.

Generated by OpenCVE AI on September 30, 2026 at 14:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 13:30:00 +0000


Tue, 29 Sep 2026 21:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1322
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low


Fri, 25 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Mark syscall helpers as sleepable bpf_sys_bpf() executes the bpf(2) syscall body, which can take mutexes, allocate with GFP_KERNEL, and wait for an RCU grace period. bpf_sys_close() reaches close_fd() and filp_close(), which can sleep as well. Both helpers are limited to BPF_PROG_TYPE_SYSCALL, whose main program is sleepable. That does not make every callback sleepable: a syscall program can register a bpf_timer callback, and the verifier checks that callback in a non-sleepable context while retaining the syscall helper set. Without .might_sleep on the prototypes, such a callback can invoke bpf_sys_bpf() from hrtimer softirq context and trigger a scheduling-while-atomic failure. bpf_sys_close() is exposed through the same missing context check. Set .might_sleep on both prototypes so the existing helper-context check rejects them from timer callbacks and other atomic regions. Calls from the sleepable main body remain valid.
Title bpf: Mark syscall helpers as sleepable
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-10-15T10:12:10.677Z

Reserved: 2026-09-25T10:19:56.072Z

Link: CVE-2026-98058

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-09-25T11:17:34.767

Modified: 2026-10-15T11:18:10.840

Link: CVE-2026-98058

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98058 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T14:30:18Z

Weaknesses
  • CWE-1322

    Use of Blocking Code in Single-threaded, Non-blocking Context