{"id":"CVE-2022-49030","aliases":["CVE-2022-49030"],"related":[],"kind":"vulnerability","state":"published","title":"libbpf: Handle size overflow for ringbuf mmap","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: libbpf: desbordamiento de tamaño del controlador para ringbuf mmap El tamaño máximo de ringbuf es de 2 GB en un host x86-64, por lo que 2 * max_entries desbordarán u32 al asignar la página del productor y las páginas de datos. Solo convertir max_entries a size_t no es suficiente, porque para la aplicación de 32 bits en un kernel de 64 bits, el tamaño de la región mmap de solo lectura también podría desbordar size_t. Entonces, arréglelo convirtiendo el tamaño de la región mmap de solo lectura en __u64 y verificando si habrá o no desbordamiento durante mmap.","source":"nvd"}],"published":"2024-10-21T20:06:34.571Z","modified":"2026-08-05T08:53:34.621Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"bf99c936f9478a05d51e9f101f90de70bee9a89c","fixed":"8a549ab6724520aa3c07f47e0eba820293551490","status":"affected"},{"type":"git","introduced":"bf99c936f9478a05d51e9f101f90de70bee9a89c","fixed":"0140e079a42064680394fff1199a7b5483688dec","status":"affected"},{"type":"git","introduced":"bf99c936f9478a05d51e9f101f90de70bee9a89c","fixed":"535a25ab4f9a45f74ba38ab71de95e97474922ed","status":"affected"},{"type":"git","introduced":"bf99c936f9478a05d51e9f101f90de70bee9a89c","fixed":"927cbb478adf917e0a142b94baa37f06279cc466","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.158","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.82","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.12","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.158"},{"status":"affected","introduced":"5.11","fixed":"5.15.82"},{"status":"affected","introduced":"5.16","fixed":"6.0.12"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8a549ab6724520aa3c07f47e0eba820293551490","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0140e079a42064680394fff1199a7b5483688dec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/535a25ab4f9a45f74ba38ab71de95e97474922ed","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/927cbb478adf917e0a142b94baa37f06279cc466","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:11:21.316Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49030","url":"https://www.cve.org/CVERecord?id=CVE-2022-49030","licence":"CVE Terms of Use","modified":"2026-08-05T08:53:34.621Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49030","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49030","licence":"Public domain","modified":"2026-08-04T10:17:32.040Z"}],"updatedAt":"2026-11-25T22:58:20.042Z","epss":{"score":0.00276,"percentile":0.21429,"date":"2026-12-02T12:00:21.000Z"}}