CVE
CVE-2022-49030
CNA 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.
Affected versions
All Linux kernel vulnerabilities →
- 6.1-rc7This version only
- 6.1-rc6This version only
- 6.1-rc5This version only
- 6.1-rc4This version only
- 6.1-rc3This version only
- 6.1-rc2This version only
- 6.1-rc1This version only
- ≥ 5.16, < 6.0.12Fixed in 6.0.12
- ≥ 5.11, < 5.15.82Fixed in 5.15.82
- ≥ 5.8, < 5.10.158Fixed in 5.10.158
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.