# CVE-2024-35831: io_uring: Fix release of pinned pages when __io_uaddr_map fails

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-17T13:41:23.171Z
- Modified: 2026-06-17T07:35:30.540Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

io_uring: Fix release of pinned pages when __io_uaddr_map fails

Looking at the error path of __io_uaddr_map, if we fail after pinning
the pages for any reasons, ret will be set to -EINVAL and the error
handler won't properly release the pinned pages.

I didn't manage to trigger it without forcing a failure, but it can
happen in real life when memory is heavily fragmented.

(As written by CVE List.)

## Affected

- Linux Linux: from 223ef474316466e9f61f6e0064f3a6fe4923a2c5 before 0b6f39c175ba5f0ef72bdb3b9d2a06ad78621d62; from 223ef474316466e9f61f6e0064f3a6fe4923a2c5 before 712e2c8415f55a4a4ddaa98a430b87f624109f69; from 223ef474316466e9f61f6e0064f3a6fe4923a2c5 before 4d376d7ad62b6a8e8dfff56b559d9d275e5b9b3a; from 223ef474316466e9f61f6e0064f3a6fe4923a2c5 before 67d1189d1095d471ed7fa426c7e384a7140a5dd7; 3f3164ce6396138747984ee9e61158e248246300; from 6.5.7 before 6.6; 6.6 (not affected: before 6.6; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.5.7 before 6.6; from 6.6.1 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2; 6.6

## References

- <https://git.kernel.org/stable/c/0b6f39c175ba5f0ef72bdb3b9d2a06ad78621d62> (patch)
- <https://git.kernel.org/stable/c/712e2c8415f55a4a4ddaa98a430b87f624109f69> (patch)
- <https://git.kernel.org/stable/c/4d376d7ad62b6a8e8dfff56b559d9d275e5b9b3a> (patch)
- <https://git.kernel.org/stable/c/67d1189d1095d471ed7fa426c7e384a7140a5dd7> (patch)

## Sources

- CVE List: [CVE-2024-35831](https://www.cve.org/CVERecord?id=CVE-2024-35831), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-35831](https://nvd.nist.gov/vuln/detail/CVE-2024-35831), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35831 · Whole record: https://cve.day/CVE-2024-35831.json · Rebuilt by cve.day 2026-11-25T22:58:40.531Z
