CVE-2022-49548
published 2025-02-26CVE-2022-49548: 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…
PriorityP337high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.30%
21.9th percentile
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.
Affected
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.18.2-1 (bookworm) | linux 5.18.2-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 88fd9e5352fe05f7fe57778293aebd4cd106960b < 7f845de2863334bed4f362e95853f5e7bc323737 | 7f845de2863334bed4f362e95853f5e7bc323737 |
| linux | linux | >= 88fd9e5352fe05f7fe57778293aebd4cd106960b < e36452d5da6325df7c10cffc60a9e68d21e2606d | e36452d5da6325df7c10cffc60a9e68d21e2606d |
| linux | linux | >= 88fd9e5352fe05f7fe57778293aebd4cd106960b < 32c4559c61652f24c9fdd5440342196fe37453bc | 32c4559c61652f24c9fdd5440342196fe37453bc |
| linux | linux | >= 88fd9e5352fe05f7fe57778293aebd4cd106960b < 4f8897bcc20b9ae44758e0572538d741ab66f0dc | 4f8897bcc20b9ae44758e0572538d741ab66f0dc |
| linux | linux | >= 88fd9e5352fe05f7fe57778293aebd4cd106960b < a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d | a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d |
| linux | linux_kernel | >= 0 < 5.10.120-1 | 5.10.120-1 |
| linux | linux_kernel | >= 0 < 5.18.2-1 | 5.18.2-1 |
| linux | linux_kernel | >= 0 < 5.18.2-1 | 5.18.2-1 |
| linux | linux_kernel | >= 0 < 5.18.2-1 | 5.18.2-1 |
| linux | linux_kernel | >= 5.11 < 5.15.45 | 5.15.45 |
| linux | linux_kernel | >= 5.16 < 5.17.13 | 5.17.13 |
| linux | linux_kernel | >= 5.18 < 5.18.2 | 5.18.2 |
| linux | linux_kernel | >= 5.7 < 5.10.120 | 5.10.120 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: bpf: Fix potential array overflow in bpf_trampoline_get_progs()
vendor_redhat·2025-02-26·CVSS 7.8
CVE-2022-49548 [HIGH] CWE-129 kernel: bpf: Fix potential array overflow in bpf_trampoline_get_progs()
kernel: bpf: Fix potential array overflow in bpf_trampoline_get_progs()
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.
Statement: The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_di
Debian
CVE-2022-49548: linux - In the Linux kernel, the following vulnerability has been resolved: bpf: Fix po...
vendor_debian·2022·CVSS 7.8
CVE-2022-49548 [HIGH] CVE-2022-49548: linux - In the Linux kernel, the following vulnerability has been resolved: bpf: Fix po...
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.
Scope: local
bookworm: resolved (fixed in 5.18.2-1)
bullseye: resolved (fixed in 5.10.120-1)
forky: resolved (fixed in 5.18.2-1)
sid: resolved (fixed in 5.18.2-1)
trixie: resolved (fixed in 5.18.2-1)
GHSA
GHSA-v45j-q282-89r5: In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix potential array overflow in bpf_trampoline_get_progs()
The cnt value in
ghsa_unreviewed·2025-03-11
CVE-2022-49548 [HIGH] CWE-129 GHSA-v45j-q282-89r5: In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix potential array overflow in bpf_trampoline_get_progs()
The cnt value in
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.
OSV
CVE-2022-49548: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix potential array overflow in bpf_trampoline_get_progs() The cnt value in t
osv·2025-02-26·CVSS 7.8
CVE-2022-49548 [HIGH] CVE-2022-49548: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix potential array overflow in bpf_trampoline_get_progs() The cnt value in t
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.
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bchttps://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dchttps://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8dhttps://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d
2025-02-26
Published