CVE-2022-49548
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
26/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: Fix potential array overflow in bpf_trampoline_get_progs()<br />
<br />
The cnt value in the &#39;cnt >= BPF_MAX_TRAMP_PROGS&#39; check does not<br />
include BPF_TRAMP_MODIFY_RETURN bpf programs, so the number of<br />
the attached BPF_TRAMP_MODIFY_RETURN bpf programs in a trampoline<br />
can exceed BPF_MAX_TRAMP_PROGS.<br />
<br />
When this happens, the assignment &#39;*progs++ = aux->prog&#39; in<br />
bpf_trampoline_get_progs() will cause progs array overflow as the<br />
progs field in the bpf_tramp_progs struct can only hold at most<br />
BPF_MAX_TRAMP_PROGS bpf programs.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.7 (including) | 5.10.120 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.45 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.17.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.18 (including) | 5.18.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc
- https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc
- https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737
- https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d
- https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d



