CVE-2022-49548

bpf: Fix potential array overflow in bpf_trampoline_get_progs()

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:13 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.455.16 ≤ v < 5.17.135.18 ≤ v < 5.18.25.7 ≤ v < 5.10.1205.7 ≤ v < 5.15.455.7 ≤ v < 5.17.135.7 ≤ v < 5.18.25.7 ≤ v < 5.195.788fd9e5352fe05f7fe57778293aebd4cd106960b
Vendor states this is fixed in 32c4559c61652f24c9fdd5440342196fe37453bc (fixed)
Vendor states this is fixed in 4f8897bcc20b9ae44758e0572538d741ab66f0dc (fixed)
Vendor states this is fixed in 7f845de2863334bed4f362e95853f5e7bc323737 (fixed)
Vendor states this is fixed in a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d (fixed)
Vendor states this is fixed in e36452d5da6325df7c10cffc60a9e68d21e2606d (fixed)
Vendor states this is fixed in 5.10.120 (unaffected)
Vendor states this is fixed in 5.15.45 (unaffected)
Vendor states this is fixed in 5.17.13 (unaffected)
Vendor states this is fixed in 5.18.2 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-129

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card