Back
CVE-2022-49030
libbpf: Handle size overflow for ringbuf mmap
High7.8EPSS 0.28%
- Published
- Updated
- Reserved
- Assigned by
- Linux
Description
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 * max_entries will overflow u32 when mapping producer page and data pages. Only casting max_entries to size_t is not enough, because for 32-bits application on 64-bits kernel the size of read-only mmap region also could overflow size_t. 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.28% · top 80% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
- affected bf99c936f9478a05d51e9f101f90de70bee9a89c – < 8a549ab6724520aa3c07f47e0eba820293551490
- affected bf99c936f9478a05d51e9f101f90de70bee9a89c – < 0140e079a42064680394fff1199a7b5483688dec
- affected bf99c936f9478a05d51e9f101f90de70bee9a89c – < 535a25ab4f9a45f74ba38ab71de95e97474922ed
- affected bf99c936f9478a05d51e9f101f90de70bee9a89c – < 927cbb478adf917e0a142b94baa37f06279cc466
- affected 5.8
- unaffected < 5.8
- unaffected 5.10.158 – ≤ 5.10.*
- unaffected 5.15.82 – ≤ 5.15.*
- unaffected 6.0.12 – ≤ 6.0.*
- unaffected 6.1 – ≤ *
References (4)
- https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490 (opens in a new tab)
- https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec (opens in a new tab)
- https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed (opens in a new tab)
- https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-49030)Record last updated .