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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-58237— bpf: consider that tail calls invalidate packet pointers

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存在安全漏洞,该漏洞源于未考虑尾调用会无效化包指针,可能导致无效的包指针。

CVSS 7.8 · High EPSS 0.18% · P8

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 51c39bb1d5d105a02e29aa7960f0a395086e6342< f1692ee23dcaaddc24ba407b269707ee5df1301f affected
51c39bb1d5d105a02e29aa7960f0a395086e6342< 1c2244437f9ad3dd91215f920401a14f2542dbfc affected
51c39bb1d5d105a02e29aa7960f0a395086e6342< 1a4607ffba35bf2a630aab299e34dd3f6e658d70 affected
5.6 affected
< 5.6 unaffected
6.6.90≤ 6.6.* unaffected
6.12.9≤ 6.12.* unaffected
6.13≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-58237

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: consider that tail calls invalidate packet pointers
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bpf: consider that tail calls invalidate packet pointers Tail-called programs could execute any of the helpers that invalidate packet pointers. Hence, conservatively assume that each tail call invalidates packet pointers. Making the change in bpf_helper_changes_pkt_data() automatically makes use of check_cfg() logic that computes 'changes_pkt_data' effect for global sub-programs, such that the following program could be rejected: int tail_call(struct __sk_buff *sk) { bpf_tail_call_static(sk, &jmp_table, 0); return 0; } SEC("tc") int not_safe(struct __sk_buff *sk) { int *p = (void *)(long)sk->data; ... make p valid ... tail_call(sk); *p = 42; /* this is unsafe */ ... } The tc_bpf2bpf.c:subprog_tc() needs change: mark it as a function that can invalidate packet pointers. Otherwise, it can't be freplaced with tailcall_freplace.c:entry_freplace() that does a tail call.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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存在安全漏洞,该漏洞源于未考虑尾调用会无效化包指针,可能导致无效的包指针。
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 51c39bb1d5d105a02e29aa7960f0a395086e6342 ~ f1692ee23dcaaddc24ba407b269707ee5df1301f -
Linux Linux 5.6 -

II. Public POCs for CVE-2024-58237

# 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-58237

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-05-05 · 3 CVEs total

CVE-2024-58098 7.8 HIGH bpf: track changes_pkt_data property for global functions
CVE-2024-58100 7.8 HIGH bpf: check changes_pkt_data property for extension programs

IV. Related Vulnerabilities

V. Comments for CVE-2024-58237

No comments yet


Leave a comment