{"id":"CVE-2024-35831","summary":"io_uring: Fix release of pinned pages when __io_uaddr_map fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: Fix release of pinned pages when __io_uaddr_map fails\n\nLooking at the error path of __io_uaddr_map, if we fail after pinning\nthe pages for any reasons, ret will be set to -EINVAL and the error\nhandler won't properly release the pinned pages.\n\nI didn't manage to trigger it without forcing a failure, but it can\nhappen in real life when memory is heavily fragmented.","modified":"2026-03-20T12:36:39.708917Z","published":"2024-05-17T13:41:23.171Z","related":["SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35831.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0b6f39c175ba5f0ef72bdb3b9d2a06ad78621d62"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d376d7ad62b6a8e8dfff56b559d9d275e5b9b3a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67d1189d1095d471ed7fa426c7e384a7140a5dd7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/712e2c8415f55a4a4ddaa98a430b87f624109f69"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35831.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35831"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"223ef474316466e9f61f6e0064f3a6fe4923a2c5"},{"fixed":"0b6f39c175ba5f0ef72bdb3b9d2a06ad78621d62"},{"fixed":"712e2c8415f55a4a4ddaa98a430b87f624109f69"},{"fixed":"4d376d7ad62b6a8e8dfff56b559d9d275e5b9b3a"},{"fixed":"67d1189d1095d471ed7fa426c7e384a7140a5dd7"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"3f3164ce6396138747984ee9e61158e248246300"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35831.json"}}],"schema_version":"1.7.5"}