VDB

CVE-2026-98058

CVE-2026-98058 PUBLISHED

bpf: Mark syscall helpers as sleepable

Reported by linux · Published September 25, 2026

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.

EPSS 0.12% · 1.8th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-tools-develAmazon Linux1:6.12.114-139.210.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.114-139.210.amzn2023
perf6.12Amazon Linux1:6.12.114-139.210.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.114-139.210.amzn2023
python3-perf6.12Amazon Linux1:6.12.114-139.210.amzn2023
kernel-livepatch-6.12.114-139.210Amazon Linux1:1.0-0.amzn2023
kernel6.12-develAmazon Linux1:6.12.114-139.210.amzn2023
kernel6.12Amazon Linux1:6.12.114-139.210.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.114-139.210.amzn2023
linux_kernellinux7.2.7, 6.18.57, 6.12.114, 6.6.160

Risk scores

EPSS Score
0.12%
1.8th percentile

Affected products

VendorProductVersions
LinuxLinux79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 79a7f8bdb159d9914b58740f3d31d602a6e4aca8
LinuxLinux5.14, 0, 6.6.160
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.114-139.2100
amazon:2023kernel6.12-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-tools0
linuxlinux_kernel5.14, 5.14, 5.14
amazon:2023bpftool6.120
amazon:2023kernel6.12-headers0
LinuxLinux79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 5.14

Timeline

  • Sep 25, 2026 CVE Published
  • Sep 26, 2026 EPSS Score (8 in total, the first dated here)
  • Oct 21, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98058
vulnetix vdb fixes CVE-2026-98058

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98058/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›