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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.01% · P1
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux f3a95075549e0e5c36db922caf86847db7a35403 ~ a7b98aa10f895e2569403896f2d19b73b6c95653 -
LinuxLinux 5.13 -

II. Public POCs for CVE-2024-26591

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-26591

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-26591

No comments yet


Leave a comment