{"id":"CVE-2025-39793","aliases":["CVE-2025-39793"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring/memmap: cast nr_pages to size_t before shifting","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/memmap: cast nr_pages to size_t before shifting\n\nIf the allocated size exceeds UINT_MAX, then it's necessary to cast\nthe mr->nr_pages value to size_t to prevent it from overflowing. In\npractice this isn't much of a concern as the required memory size will\nhave been validated upfront, and accounted to the user. And > 4GB sizes\nwill be necessary to make the lack of a cast a problem, which greatly\nexceeds normal user locked_vm settings that are generally in the kb to\nmb range. However, if root is used, then accounting isn't done, and\nthen it's possible to hit this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/memmap: cast nr_pages to size_t before shifting\n\nIf the allocated size exceeds UINT_MAX, then it's necessary to cast\nthe mr->nr_pages value to size_t to prevent it from overflowing. In\npractice this isn't much of a concern as the required memory size will\nhave been validated upfront, and accounted to the user. And > 4GB sizes\nwill be necessary to make the lack of a cast a problem, which greatly\nexceeds normal user locked_vm settings that are generally in the kb to\nmb range. However, if root is used, then accounting isn't done, and\nthen it's possible to hit this issue.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nio_uring/memmap: convertir nr_pages a size_t antes de desplazar\n\nSi el tamaño asignado excede UINT_MAX, entonces es necesario convertir el valor mr->nr_pages a size_t para evitar que desborde. En la práctica, esto no es motivo de gran preocupación, ya que el tamaño de memoria requerido habrá sido validado previamente y contabilizado al usuario. Y tamaños > 4GB serán necesarios para que la falta de una conversión sea un problema, lo que excede en gran medida la configuración normal de locked_vm del usuario, que generalmente está en el rango de kb a mb. Sin embargo, si se usa root, entonces la contabilidad no se realiza, y entonces es posible encontrarse con este problema.","source":"nvd"}],"published":"2025-09-12T15:59:30.388Z","modified":"2026-10-19T21:10:00.160Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"087f997870a948820ec366701d178f402c6a23a3","fixed":"c6a2706e08b8a1b2d3740161c0977d38e596c1ee","status":"affected"},{"type":"git","introduced":"087f997870a948820ec366701d178f402c6a23a3","fixed":"a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a","status":"affected"},{"type":"git","introduced":"087f997870a948820ec366701d178f402c6a23a3","fixed":"33503c083fda048c77903460ac0429e1e2c0e341","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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":"6.14","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c6a2706e08b8a1b2d3740161c0977d38e596c1ee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33503c083fda048c77903460ac0429e1e2c0e341","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39793","url":"https://www.cve.org/CVERecord?id=CVE-2025-39793","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:14.029Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39793","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39793","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.602Z","epss":{"score":0.00161,"percentile":0.05484,"date":"2026-12-01T12:00:22.000Z"}}