{"id":"CVE-2022-49030","summary":"libbpf: Handle size overflow for ringbuf mmap","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibbpf: Handle size overflow for ringbuf mmap\n\nThe maximum size of ringbuf is 2GB on x86-64 host, so 2 * max_entries\nwill overflow u32 when mapping producer page and data pages. Only\ncasting max_entries to size_t is not enough, because for 32-bits\napplication on 64-bits kernel the size of read-only mmap region\nalso could overflow size_t.\n\nSo fixing it by casting the size of read-only mmap region into a __u64\nand checking whether or not there will be overflow during mmap.","modified":"2026-04-02T08:27:14.703124Z","published":"2024-10-21T20:06:34.571Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49030.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490"},{"type":"WEB","url":"https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49030.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49030"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bf99c936f9478a05d51e9f101f90de70bee9a89c"},{"fixed":"8a549ab6724520aa3c07f47e0eba820293551490"},{"fixed":"0140e079a42064680394fff1199a7b5483688dec"},{"fixed":"535a25ab4f9a45f74ba38ab71de95e97474922ed"},{"fixed":"927cbb478adf917e0a142b94baa37f06279cc466"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49030.json"}}],"schema_version":"1.7.5"}