VDB

CVE-2024-58237

CVE-2024-58237 PUBLISHED CVSS 7.8 HIGH

bpf: consider that tail calls invalidate packet pointers

Reported by linux · Published May 5, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.12.9, 6.6.90

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux51c39bb1d5d105a02e29aa7960f0a395086e6342, 51c39bb1d5d105a02e29aa7960f0a395086e6342, 51c39bb1d5d105a02e29aa7960f0a395086e6342
LinuxLinux5.6, 0, 6.6.90
linuxlinux_kernel5.6, 5.6, 5.6
LinuxLinux51c39bb1d5d105a02e29aa7960f0a395086e6342, 51c39bb1d5d105a02e29aa7960f0a395086e6342, 51c39bb1d5d105a02e29aa7960f0a395086e6342

Timeline

  • May 5, 2025 Coalition ESS Score (17 in total, the first dated here)
  • May 5, 2025 CVE Published
  • May 6, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (5 in total, the first dated here)
  • Dec 29, 2025 Security Advisory (13 in total, the first dated here)
  • Sep 19, 2026 Distribution Patch (12 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-58237
vulnetix vdb fixes CVE-2024-58237

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-58237/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›