# CVE-2025-39793: io_uring/memmap: cast nr_pages to size_t before shifting

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-12T15:59:30.388Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring/memmap: cast nr_pages to size_t before shifting

If the allocated size exceeds UINT_MAX, then it's necessary to cast
the mr->nr_pages value to size_t to prevent it from overflowing. In
practice this isn't much of a concern as the required memory size will
have been validated upfront, and accounted to the user. And > 4GB sizes
will be necessary to make the lack of a cast a problem, which greatly
exceeds normal user locked_vm settings that are generally in the kb to
mb range. However, if root is used, then accounting isn't done, and
then it's possible to hit this issue.

(As written by CVE List.)

## Affected

- Linux Linux: from 087f997870a948820ec366701d178f402c6a23a3 before c6a2706e08b8a1b2d3740161c0977d38e596c1ee; from 087f997870a948820ec366701d178f402c6a23a3 before a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a; from 087f997870a948820ec366701d178f402c6a23a3 before 33503c083fda048c77903460ac0429e1e2c0e341; 6.14 (not affected: before 6.14; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.14 before 6.15.11; from 6.16 before 6.16.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c6a2706e08b8a1b2d3740161c0977d38e596c1ee> (patch)
- <https://git.kernel.org/stable/c/a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a> (patch)
- <https://git.kernel.org/stable/c/33503c083fda048c77903460ac0429e1e2c0e341> (patch)

## Sources

- CVE List: [CVE-2025-39793](https://www.cve.org/CVERecord?id=CVE-2025-39793), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39793](https://nvd.nist.gov/vuln/detail/CVE-2025-39793), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39793 · Whole record: https://cve.day/CVE-2025-39793.json · Rebuilt by cve.day 2026-11-25T22:59:04.602Z
