CVE-2026-98046: bpf: Mark bpf_btf_find_by_name_kind() as sleepable

Published Sep 25, 2026
·
Updated

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

bpf: Mark bpfbtffindbynamekind() as sleepable

When bpfbtffindbynamekind() finds a type in module BTF, it returns a new BTF object fd through btfnewfd(). This reaches anoninodegetfd(), which can sleep while allocating or expanding the current task fd table.

The helper prototype does not set mightsleep, so the verifier allows the helper in non-sleepable contexts such as BPF timer callbacks. The fd allocation can then sleep in softirq context and install the fd into the interrupted task.

Mark the helper as sleepable. This preserves calls from the main body of a sleepable syscall program while rejecting calls from its non-sleepable regions.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

A BPF program must call bpf_btf_find_by_name_kind() from a non-sleepable context that the verifier previously allowed, such as a BPF timer callback. The vulnerable path is reached when the helper finds a type in module BTF and creates a new BTF file descriptor.

2

What is the practical impact of triggering it?

The helper can attempt file-descriptor allocation through anon_inode_getfd(), which may sleep while running in softirq context. It can also install the new file descriptor into the task that was interrupted.

3

What does the fix change for existing BPF programs?

The helper is marked sleepable. Calls remain permitted from the main body of a sleepable syscall program, but are rejected from its non-sleepable regions, including contexts such as BPF timer callbacks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203