CVE-2026-98058
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| kernel-livepatch-6.12.114-139.210 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.114-139.210.amzn2023 |
| linux_kernel | linux | 7.2.7, 6.18.57, 6.12.114, 6.6.160 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 79a7f8bdb159d9914b58740f3d31d602a6e4aca8 |
| Linux | Linux | 5.14, 0, 6.6.160 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.114-139.210 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| linux | linux_kernel | 5.14, 5.14, 5.14 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Linux | Linux | 79a7f8bdb159d9914b58740f3d31d602a6e4aca8, 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