Description
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.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Potential kernel instability or denial of service due to sleeping in non‑sleepable contexts
Action: Patch
AI Analysis

Impact

In the Linux kernel a helper function that can sleep was not marked as such, allowing it to be invoked in contexts where sleeping is prohibited. When bpf_btf_find_by_name_kind() returns a file descriptor through __btf_new_fd(), the helper may trigger anon_inode_getfd(), which can sleep while allocating or expanding the current task fd table. Because the helper’s prototype did not indicate a can‑sleep property, the BPF verifier allowed the helper to run inside non‑sleepable regions such as timer callbacks. The resulting sleep can occur in a softirq context, potentially causing a scheduler mis‑behavior, system hang or crash. According to the CVE description this flaw was mitigated by marking the helper as sleepable, which restores correct verification behavior while still permitting use in legitimate sleepable contexts.

Affected Systems

The affected product is the Linux operating system kernel. No specific version range is provided in the data, so the scope of impact remains uncertain and may apply to any kernel containing the unmarked bpf_btf_find_by_name_kind() implementation.

Risk and Exploitability

The CVSS score is not disclosed and the EPSS score is unavailable, so the quantitative likelihood of exploitation cannot be precisely assessed. The flaw is not listed in CISA’s KEV catalog. The exploit would require an attacker to load a BPF program that calls the vulnerable helper in a non‑sleepable context, such as a timer callback or high‑priority task. Based on the description, the attack vector is likely via legitimate application or kernel module interfaces that use BPF, but no direct exploitation proof exists in the provided data.

Generated by OpenCVE AI on September 25, 2026 at 15:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that patches bpf_btf_find_by_name_kind() to mark it as sleepable
  • If a patch cannot be applied immediately, avoid using BPF programs that invoke this helper in non‑sleepable contexts such as timer callbacks or high‑priority softirq handlers
  • Upgrade the kernel to a version that includes the fix once it becomes available

Generated by OpenCVE AI on September 25, 2026 at 15:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description 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.
Title bpf: Mark bpf_btf_find_by_name_kind() as sleepable
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:23:56.691Z

Reserved: 2026-09-25T10:19:56.071Z

Link: CVE-2026-98046

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:33.440

Modified: 2026-09-25T11:17:33.440

Link: CVE-2026-98046

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T16:00:18Z

Weaknesses