# CVE-2022-49548: bpf: Fix potential array overflow in bpf_trampoline_get_progs()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `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 23% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:59.797Z
- Modified: 2026-06-17T05:18:24.830Z
- Weaknesses: CWE-129
- 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: Fix potential array overflow in bpf_trampoline_get_progs()

The cnt value in the 'cnt >= BPF_MAX_TRAMP_PROGS' check does not
include BPF_TRAMP_MODIFY_RETURN bpf programs, so the number of
the attached BPF_TRAMP_MODIFY_RETURN bpf programs in a trampoline
can exceed BPF_MAX_TRAMP_PROGS.

When this happens, the assignment '*progs++ = aux->prog' in
bpf_trampoline_get_progs() will cause progs array overflow as the
progs field in the bpf_tramp_progs struct can only hold at most
BPF_MAX_TRAMP_PROGS bpf programs.

(As written by CVE List.)

## Affected

- Linux Linux: from 88fd9e5352fe05f7fe57778293aebd4cd106960b before 7f845de2863334bed4f362e95853f5e7bc323737; from 88fd9e5352fe05f7fe57778293aebd4cd106960b before e36452d5da6325df7c10cffc60a9e68d21e2606d; from 88fd9e5352fe05f7fe57778293aebd4cd106960b before 32c4559c61652f24c9fdd5440342196fe37453bc; from 88fd9e5352fe05f7fe57778293aebd4cd106960b before 4f8897bcc20b9ae44758e0572538d741ab66f0dc; from 88fd9e5352fe05f7fe57778293aebd4cd106960b before a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d; 5.7 (not affected: before 5.7; from 5.10.120 up to 5.10.*; from 5.15.45 up to 5.15.*; from 5.17.13 up to 5.17.*; from 5.18.2 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.7 before 5.10.120; from 5.11 before 5.15.45; from 5.16 before 5.17.13; from 5.18 before 5.18.2

## Every score

- CISA-ADP: 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 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737> (patch)
- <https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d> (patch)
- <https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc> (patch)
- <https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc> (patch)
- <https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d> (patch)

## Sources

- CVE List: [CVE-2022-49548](https://www.cve.org/CVERecord?id=CVE-2022-49548), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49548](https://nvd.nist.gov/vuln/detail/CVE-2022-49548), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49548 · Whole record: https://cve.day/CVE-2022-49548.json · Rebuilt by cve.day 2026-11-25T22:58:20.723Z
