Bug 1224698 (CVE-2024-35831) - VUL-0: CVE-2024-35831: kernel: io_uring: Fix release of pinned pages when __io_uaddr_map fails
Summary: VUL-0: CVE-2024-35831: kernel: io_uring: Fix release of pinned pages when __i...
Status: CONFIRMED
Alias: CVE-2024-35831
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406380/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35831:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-20 16:07 UTC by SMASH SMASH
Modified: 2024-07-08 14:57 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-20 16:07:06 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35831
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-35831.mbox
https://git.kernel.org/stable/c/0b6f39c175ba5f0ef72bdb3b9d2a06ad78621d62
https://git.kernel.org/stable/c/712e2c8415f55a4a4ddaa98a430b87f624109f69
https://git.kernel.org/stable/c/4d376d7ad62b6a8e8dfff56b559d9d275e5b9b3a
https://git.kernel.org/stable/c/67d1189d1095d471ed7fa426c7e384a7140a5dd7
https://www.cve.org/CVERecord?id=CVE-2024-35831
https://bugzilla.redhat.com/show_bug.cgi?id=2281173