VDB

CVE-2024-58100

CVE-2024-58100 PUBLISHED CVSS 7.8 HIGH

bpf: check changes_pkt_data property for extension programs

Reported by linux · Published May 5, 2025

In the Linux kernel, the following vulnerability has been resolved: bpf: check changes_pkt_data property for extension programs When processing calls to global sub-programs, verifier decides whether to invalidate all packet pointers in current state depending on the changes_pkt_data property of the global sub-program. Because of this, an extension program replacing a global sub-program must be compatible with changes_pkt_data property of the sub-program being replaced. This commit: - adds changes_pkt_data flag to struct bpf_prog_aux: - this flag is set in check_cfg() for main sub-program; - in jit_subprogs() for other sub-programs; - modifies bpf_check_attach_btf_id() to check changes_pkt_data flag; - moves call to check_attach_btf_id() after the call to check_cfg(), because it needs changes_pkt_data flag to be set: bpf_check: ... ... - check_attach_btf_id resolve_pseudo_ldimm64 resolve_pseudo_ldimm64 --> bpf_prog_is_offloaded bpf_prog_is_offloaded check_cfg check_cfg + check_attach_btf_id ... ... The following fields are set by check_attach_btf_id(): - env->ops - prog->aux->attach_btf_trace - prog->aux->attach_func_name - prog->aux->attach_func_proto - prog->aux->dst_trampoline - prog->aux->mod - prog->aux->saved_dst_attach_type - prog->aux->saved_dst_prog_type - prog->expected_attach_type Neither of these fields are used by resolve_pseudo_ldimm64() or bpf_prog_offload_verifier_prep() (for netronome and netdevsim drivers), so the reordering is safe.

Fixed versions

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

PackageEcosystemFixed in
bpftoolAmazon Linux6.12.25-32.101.amzn2023
kernel-headersAmazon Linux6.12.25-32.101.amzn2023
kernel-tools-develAmazon Linux6.12.25-32.101.amzn2023
LinuxLinux7197fc4acdf238ec8ad06de5a8235df0c1f9c7d7

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
LinuxLinuxbe8704ff07d2374bcc5c675526f95e70c6459683, be8704ff07d2374bcc5c675526f95e70c6459683, be8704ff07d2374bcc5c675526f95e70c6459683
LinuxLinux5.6, 0, 6.6.90
amazon:2023bpftool0
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
LinuxLinux*, *, 6.13
amazon:2023kernel-tools0
amazon:2023perf6.120
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.12.25-32.1010
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023python3-perf6.120
linuxlinux_kernel5.6, 5.6, 5.6
amazon:2023kernel-devel0
amazon:2023kernel6.120

Timeline

  • May 5, 2025 CVE Published
  • May 6, 2025 EPSS Score (30 in total, the first dated here)
  • May 6, 2025 Coalition ESS Score (8 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-58100
vulnetix vdb fixes CVE-2024-58100

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-58100/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 ›