# CVE-2024-58100: bpf: check changes_pkt_data property for extension programs

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 16% of CVEs (2026-11-30)
- Published: 2025-05-05T14:53:33.445Z
- Modified: 2026-10-15T22:18:06.013Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from be8704ff07d2374bcc5c675526f95e70c6459683 before 7197fc4acdf238ec8ad06de5a8235df0c1f9c7d7; from be8704ff07d2374bcc5c675526f95e70c6459683 before 3846e2bea565ee1c5195dcc625fda9868fb0e3b3; from be8704ff07d2374bcc5c675526f95e70c6459683 before 81f6d0530ba031b5f038a091619bf2ff29568852; 5.6 (not affected: before 5.6; from 6.6.90 up to 6.6.*; from 6.12.25 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.6 before 6.6.90; from 6.7 before 6.12.25; 6.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/7197fc4acdf238ec8ad06de5a8235df0c1f9c7d7> (patch)
- <https://git.kernel.org/stable/c/3846e2bea565ee1c5195dcc625fda9868fb0e3b3> (patch)
- <https://git.kernel.org/stable/c/81f6d0530ba031b5f038a091619bf2ff29568852> (patch)

## Sources

- CVE List: [CVE-2024-58100](https://www.cve.org/CVERecord?id=CVE-2024-58100), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-58100](https://nvd.nist.gov/vuln/detail/CVE-2024-58100), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-58100 · Whole record: https://cve.day/CVE-2024-58100.json · Rebuilt by cve.day 2026-11-25T22:58:52.579Z
