CVE-2022-49548: bpf: Fix potential array overflow in bpf_trampoline_get_progs()

Published Feb 26, 2025
·
Updated

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

9 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.7<5.10.120
Linux Linux kernel>=5.11<5.15.45
Linux Linux kernel>=5.16<5.17.13
Linux Linux kernel>=5.18<5.18.2
debian/linux<5.18.2-1
5.18.2-1
debian/linux<5.18.2-1
5.18.2-1
debian/linux<5.18.2-1
5.18.2-1
debian/linux
5.10.120-15.18.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.2-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.120-1Fixed in 5.18.2-1

Event History

Feb 26, 2025
CVE Published
via MITRE·02:13 AM
Data Sourced
via MITRE·02:13 AM
Description
Data Sourced
via Red Hat·03:09 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:01 AM
Description
Data Sourced
via OSV·07:01 AM
DescriptionSeverityAffected Software
Mar 10, 2025
Data Sourced
via NVD·09:32 PM
RemedySeverityWeaknessAffected Software
Oct 1, 2025
Updated
via NVD·08:16 PM
SeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

Is CVE-2022-49548 actively being exploited?

As of now, there are no public reports indicating active exploitation of CVE-2022-49548.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203