CVE-2022-49548: 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 bpftrampolinegetprogs()
The cnt value in the 'cnt >= BPFMAXTRAMPPROGS' check does not include BPFTRAMPMODIFYRETURN bpf programs, so the number of the attached BPFTRAMPMODIFYRETURN bpf programs in a trampoline can exceed BPFMAXTRAMPPROGS.
When this happens, the assignment 'progs++ = aux->prog' in bpftrampolinegetprogs() will cause progs array overflow as the progs field in the bpftrampprogs struct can only hold at most BPFMAXTRAMPPROGS bpf programs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.18.2-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.120-1Fixed in 5.18.2-1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49548?
CVE-2022-49548 has been classified with a moderate severity level due to its potential to cause an array overflow in the Linux kernel.
How do I fix CVE-2022-49548?
To fix CVE-2022-49548, you should update your Linux kernel to a patched version that addresses the overflow issue.
Which versions of Linux kernel are affected by CVE-2022-49548?
CVE-2022-49548 affects Linux kernel versions from 5.7 to 5.18.2, excluding certain contained versions.
What impact does CVE-2022-49548 have on system performance?
While CVE-2022-49548 primarily concerns security, it could potentially impact system stability if exploited.
Is CVE-2022-49548 actively being exploited?
As of now, there are no public reports indicating active exploitation of CVE-2022-49548.