CVE-2025-40291

Source
https://cve.org/CVERecord?id=CVE-2025-40291
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40291.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40291
Downstream
Published
2025-12-08T00:46:14.601Z
Modified
2026-03-09T23:50:39.037387Z
Summary
io_uring: fix regbuf vector size truncation
Details

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

io_uring: fix regbuf vector size truncation

There is a report of ioestimatebvec_size() truncating the calculated number of segments that leads to corruption issues. Check it doesn't overflow "int"s used later. Rough but simple, can be improved on top.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40291.json"
}
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
9ef4cbbcb4ac3786a1a4164507511b76b2a572c5
Fixed
826ce37a842633efe1bb763e4b13045d74060d72
Fixed
146eb58629f45f8297e83d69e64d4eea4b28d972

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.17.8

Database specific

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