CVE-2026-98046 PUBLISHED

bpf: Mark bpf_btf_find_by_name_kind() as sleepable

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

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

bpf: Mark bpf_btf_find_by_name_kind() as sleepable

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

The helper prototype does not set might_sleep, 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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 3d78417b60fba249cc555468cb72d96f5cde2964 to 29e40175617216fbd4544529f6bfb51d1ab95ba1 (excl.)
  • affected from 3d78417b60fba249cc555468cb72d96f5cde2964 to 4d8784226bd3c6a707975081f986078f40456cec (excl.)
  • affected from 3d78417b60fba249cc555468cb72d96f5cde2964 to 17f54a8f2b9714529d56edbbe12d448ccdbbf469 (excl.)
  • affected from 3d78417b60fba249cc555468cb72d96f5cde2964 to 620614bf7672130c43b3cff375525a2202f61979 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.14 is affected
  • unaffected from 0 to 5.14 (excl.)
  • unaffected from 6.12.111 to 6.12.* (incl.)
  • unaffected from 6.18.53 to 6.18.* (incl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References