CVE-2022-49548 Details
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.
A potential array overflow vulnerability has been identified in the Linux kernel's BPF (Berkeley Packet Filter) trampoline handling. The issue arises because the count of attached BPF_TRAMP_MODIFY_RETURN programs is not properly accounted for, allowing the number of these programs to exceed the maximum limit. When this occurs, it can lead to an overflow in the program storage array, as the designated structure can only accommodate a certain number of programs.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc | kernel.org | Patch |
| https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc | kernel.org | Patch |
| https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d | kernel.org | Patch |
| https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-129 | Improper Validation of Array Index | [email protected] |
| CWE-129 | Improper Validation of Array Index | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.7, < 5.10.120 >= 5.11, < 5.15.45 >= 5.16, < 5.17.13 >= 5.18, < 5.18.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 10, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |