CVE-2024-58237

MEDIUM EPSS 4.4%
Published May 5, 20251y ago · Modified Jun 17, 20261w ago
5.5 CVSS 3.1
Medium
Find Similar
Published May 5, 2025 1y ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
4.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-476 NULL Pointer Dereference Memory Safety

Affected Products 4

VendorProductVersionRange
linuxlinux_kernel*≥5.6  –  <6.6.90
linuxlinux_kernel*≥6.7  –  <6.12.9
linuxlinux_kernel6.13any
linuxlinux_kernel6.13any

References 3

  • git.kernel.org https://git.kernel.org/stable/c/1a4607ffba35bf2a630aab299e34dd3f6e658d70
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/1c2244437f9ad3dd91215f920401a14f2542dbfc
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f1692ee23dcaaddc24ba407b269707ee5df1301f
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/1a4607ffba35bf2a630aab299e34dd3f6e658d70
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/1c2244437f9ad3dd91215f920401a14f2542dbfc
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/f1692ee23dcaaddc24ba407b269707ee5df1301f
    Patch