Process memory corruption via ring-buffer mmap overflow
Published Oct 21, 2024 · Updated Aug 5, 2026
Integer overflow in Linux libbpf allows local users to read or corrupt process memory through a crafted 2 GB BPF ring buffer. In ring_buffer__add, 2 * max_entries wraps during mmap-size calculation, leaving a one-page mapping that later code indexes and unmaps as though it spans roughly 4 GB. Reachability requires an affected local libbpf consumer and either unprivileged BPF access or CAP_BPF; effects remain within that process and include disclosure, control-flow corruption, or a crash.
Summary
What happened
Integer overflow in Linux libbpf allows local users to read or corrupt process memory through a crafted 2 GB BPF ring buffer. In ring_buffer__add, 2 * max_entries wraps during mmap-size calculation, leaving a one-page mapping that later code indexes and unmaps as though it spans roughly 4 GB. Reachability requires an affected local libbpf consumer and either unprivileged BPF access or CAP_BPF; effects remain within that process and include disclosure, control-flow corruption, or a crash.
The record
- CVE
- CVE-2022-49030
- Published
- Oct 21, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-190
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 21, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.8
- Affected versionversion=bf99c936f9478a05d51e9f101f90de70bee9a89c <0140e079a42064680394fff1199a7b5483688dec
- Affected versionversion=bf99c936f9478a05d51e9f101f90de70bee9a89c <535a25ab4f9a45f74ba38ab71de95e97474922ed
- Affected versionversion=bf99c936f9478a05d51e9f101f90de70bee9a89c <8a549ab6724520aa3c07f47e0eba820293551490
- Affected versionversion=bf99c936f9478a05d51e9f101f90de70bee9a89c <927cbb478adf917e0a142b94baa37f06279cc466
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo