CVE-2024-35831

Source
https://cve.org/CVERecord?id=CVE-2024-35831
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35831.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35831
Downstream
Related
Published
2024-05-17T13:41:23.171Z
Modified
2026-05-07T04:18:21.890050Z
Summary
io_uring: Fix release of pinned pages when __io_uaddr_map fails
Details

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

io_uring: Fix release of pinned pages when __iouaddrmap fails

Looking at the error path of __iouaddrmap, 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35831.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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 Unknown introduced commit / All previous commits are affected
Last affected
3f3164ce6396138747984ee9e61158e248246300

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35831.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.23
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.11
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35831.json"