Skip to main content
Network Thinking Solutions Logo

CVE-2024-26591

Linux kernel: bpf: Fix re-attachment branch in bpf_tracing_prog_attach

All CVEs
CVE-2024-26591Published 2/22/2024

Linux kernel: bpf: Fix re-attachment branch in bpf_tracing_prog_attach

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix re-attachment branch in bpf_tracing_prog_attach The following case can cause a crash due to missing attach_btf: 1) load rawtp program 2) load fentry program with rawtp as target_fd 3) create tracing link for fentry program with target_fd = 0 4) repeat 3 In the end we have: - prog->aux->dst_trampoline == NULL - tgt_prog == NULL (because we did not provide target_fd to link_create) - prog->aux->attach_btf == NULL (the program was loaded with attach_prog_fd=X) - the program was loaded for tgt_prog but we have no way to find out which one BUG: kernel NULL pointer dereference, address: 0000000000000058 Call Trace: <TASK> ? __die+0x20/0x70 ? page_fault_oops+0x15b/0x430 ? fixup_exception+0x22/0x330 ? exc_page_fault+0x6f/0x170 ? asm_exc_page_fault+0x22/0x30 ? bpf_tracing_prog_attach+0x279/0x560 ? btf_obj_id+0x5/0x10 bpf_tracing_prog_attach+0x439/0x560 __sys_bpf+0x1cf4/0x2de0 __x64_sys_bpf+0x1c/0x30 do_syscall_64+0x41/0xf0 entry_SYSCALL_64_after_hwframe+0x6e/0x76 Return -EINVAL in this situation.

Published
2/22/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
< 5.15.148

Verify advisory

Source
linux kernel
linux
≥ 5.16.0, < 6.1.75

Verify advisory

Source
linux kernel
linux
≥ 6.2.0, < 6.6.14

Verify advisory

Source
linux kernel
linux
≥ 6.7.0, < 6.7.2

Verify advisory

Source
Linux
Linux
≥ f3a95075549e0e5c36db922caf86847db7a35403, < a7b98aa10f895e2569403896f2d19b73b6c95653

Verify advisory

Source
Linux
Linux
≥ f3a95075549e0e5c36db922caf86847db7a35403, < 6cc9c0af0aa06f781fa515a1734b1a4239dfd2c0

Verify advisory

Source
Linux
Linux
≥ f3a95075549e0e5c36db922caf86847db7a35403, < 8c8bcd45e9b10eef12321f08d2e5be33d615509c

Verify advisory

Source
Linux
Linux
≥ f3a95075549e0e5c36db922caf86847db7a35403, < 50ae82f080cf87e84828f066c31723b781d68f5b

Verify advisory

Source
Linux
Linux
≥ f3a95075549e0e5c36db922caf86847db7a35403, < 715d82ba636cb3629a6e18a33bb9dbe53f9936ee

Verify advisory

Source
Linux
Linux
5.13

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.