CVE-2025-39793

Source
https://cve.org/CVERecord?id=CVE-2025-39793
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39793.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-39793
Downstream
Published
2025-09-12T15:59:30.388Z
Modified
2026-08-12T03:51:35.199125283Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
io_uring/memmap: cast nr_pages to size_t before shifting
Details

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

iouring/memmap: cast nrpages to size_t before shifting

If the allocated size exceeds UINTMAX, then it's necessary to cast the mr->nrpages value to sizet 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 lockedvm 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39793.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
087f997870a948820ec366701d178f402c6a23a3
Fixed
c6a2706e08b8a1b2d3740161c0977d38e596c1ee
Fixed
a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a
Fixed
33503c083fda048c77903460ac0429e1e2c0e341

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39793.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.15.11
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.16.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39793.json"