CVE-2026-98058
- CVE-2026-98058
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.
Text from the NVD record.
Recommendation
linux linux kernel
- If you run a version from 6.19 to before 7.2.7update to 7.2.7 or laterMajor version change: expect breaking changes
- If you run a version from 6.13 to before 6.18.57update to 6.18.57 or laterMinor version change: check the release notes
- If you run a version from 6.7 to before 6.12.114update to 6.12.114 or laterMinor version change: check the release notes
- If you run a version from 5.14 to before 6.6.160update to 6.6.160 or laterMajor version change: expect breaking changes
Some affected versions have no stated fix.
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
linux linux kernel
Affected versions Fixed in from 6.19 to before 7.2.7 7.2.7 from 6.13 to before 6.18.57 6.18.57 from 6.7 to before 6.12.114 6.12.114 from 5.14 to before 6.6.160 6.6.160 7.3 none stated
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.