Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-26591— bpf: Fix re-attachment branch in bpf_tracing_prog_attach

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于缺少attach_btf而导致崩溃。

AI Predicted 5.9 Difficulty: Moderate EPSS 0.23% · P13

Possible ATT&CK Techniques 1 AI

T1055 · Process Injection

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux f3a95075549e0e5c36db922caf86847db7a35403< a7b98aa10f895e2569403896f2d19b73b6c95653 affected
f3a95075549e0e5c36db922caf86847db7a35403< 6cc9c0af0aa06f781fa515a1734b1a4239dfd2c0 affected
f3a95075549e0e5c36db922caf86847db7a35403< 8c8bcd45e9b10eef12321f08d2e5be33d615509c affected
f3a95075549e0e5c36db922caf86847db7a35403< 50ae82f080cf87e84828f066c31723b781d68f5b affected
f3a95075549e0e5c36db922caf86847db7a35403< 715d82ba636cb3629a6e18a33bb9dbe53f9936ee affected
5.13 affected
< 5.13 unaffected
5.15.148≤ 5.15.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-26591

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
bpf: Fix re-attachment branch in bpf_tracing_prog_attach
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于缺少attach_btf而导致崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux f3a95075549e0e5c36db922caf86847db7a35403 ~ a7b98aa10f895e2569403896f2d19b73b6c95653 -
Linux Linux 5.13 -

II. Public POCs for CVE-2024-26591

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-26591

请登录查看更多情报信息。

Other References for CVE-2024-26591 (5)

Same Patch Batch · Linux · 2024-02-22 · 17 CVEs total

CVE-2024-26592 9.8 CRITICAL ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
CVE-2023-52447 7.8 HIGH bpf: Defer the free of inner map when necessary
CVE-2023-52444 7.8 HIGH f2fs: fix to avoid dirent corruption
CVE-2024-26589 7.8 HIGH bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS
CVE-2024-26586 7.8 HIGH mlxsw: spectrum_acl_tcam: Fix stack corruption
CVE-2023-52452 bpf: Fix accesses to uninit stack slots
CVE-2023-52451 powerpc/pseries/memhp: Fix access beyond end of drmem array
CVE-2023-52450 perf/x86/intel/uncore: Fix NULL pointer dereference issue in upi_fill_topology()
CVE-2023-52449 mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
CVE-2023-52448 gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
CVE-2023-52446 bpf: Fix a race condition between btf_put() and map_free()
CVE-2023-52445 media: pvrusb2: fix use after free on context disconnection
CVE-2024-26590 erofs: fix inconsistent per-file compression format
CVE-2024-26588 LoongArch: BPF: Prevent out-of-bounds memory access
CVE-2024-26587 net: netdevsim: don't try to destroy PHC on VFs
CVE-2023-52443 apparmor: avoid crash when parsed profile name is empty

IV. Related Vulnerabilities

V. Comments for CVE-2024-26591

No comments yet


Leave a comment