{"id":"CVE-2022-49030","published":"2024-10-21T20:06:34Z","modified":"2026-08-05T08:53:34Z","title":"libbpf: Handle size overflow for ringbuf mmap","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00276,"percentile":0.205,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490","tags":[]},{"url":"https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec","tags":[]},{"url":"https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed","tags":[]},{"url":"https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466","tags":[]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":4.1},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bf99c936f9478a05d51e9f101f90de70bee9a89c, < 8a549ab6724520aa3c07f47e0eba820293551490",">= bf99c936f9478a05d51e9f101f90de70bee9a89c, < 0140e079a42064680394fff1199a7b5483688dec",">= bf99c936f9478a05d51e9f101f90de70bee9a89c, < 535a25ab4f9a45f74ba38ab71de95e97474922ed",">= bf99c936f9478a05d51e9f101f90de70bee9a89c, < 927cbb478adf917e0a142b94baa37f06279cc466"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:11:21.316890Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53914","exploited":false,"provenance":"source"}}