CVE-2022-49030: libbpf: Handle size overflow for ringbuf mmap

Published Oct 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

libbpf: Handle size overflow for ringbuf mmap

The maximum size of ringbuf is 2GB on x86-64 host, so 2 maxentries will overflow u32 when mapping producer page and data pages. Only casting maxentries to sizet is not enough, because for 32-bits application on 64-bits kernel the size of read-only mmap region also could overflow sizet.

So fixing it by casting the size of read-only mmap region into a u64 and checking whether or not there will be overflow during mmap.

Affected Software

14 affected componentsFixes available
Linux Linux kernel>=5.8<5.10.158
Linux Linux kernel>=5.11<5.15.82
Linux Linux kernel>=5.16<6.0.12
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7
debian/linux<6.0.12-1
6.0.12-1
debian/linux<6.0.12-1
6.0.12-1
debian/linux<6.0.12-1
6.0.12-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-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 6.0.12-1
  2. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1

Event History

Oct 21, 2024
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverity
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49030?

CVE-2022-49030 has a medium severity rating due to the potential for an overflow in size calculations affecting memory mapping.

2

How do I fix CVE-2022-49030?

To fix CVE-2022-49030, update your Linux kernel to a version later than 6.1-rc7, ensuring a patch that addresses the size overflow is applied.

3

Which versions of the Linux kernel are affected by CVE-2022-49030?

CVE-2022-49030 affects Linux kernel versions from 5.8 to 6.1-rc7.

4

What is the impact of CVE-2022-49030 on Linux systems?

The impact of CVE-2022-49030 could potentially allow for memory corruption due to incorrect size handling in mmap operations.

5

Is CVE-2022-49030 exploitability high?

The exploitability of CVE-2022-49030 is considered moderate, primarily depending on the system configuration and user access levels.

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