CVE-2025-40031: linux
Vulnerability summary
CVE-2025-40031 is a vulnerability in linux with no CVSS score yet. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 11% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 22 · Related 22Timeline
- 28-10-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: tee: fix register_shm_helper() In register_shm_helper(), fix incorrect error handling for a call to iov_iter_extract_pages(). A case is missing for when iov_iter_extract_pages() only got some pages and return a number larger than 0, but not the requested amount. This fixes a possible NULL pointer dereference following a bad input from ioctl(TEE_IOC_SHM_REGISTER) where parts of the buffer isn't mapped.
CVSS metrics
Risk metrics not yet published.
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
+0.01 pp
From 0.20% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Ubuntu127 products
- linux< 6.8.0-106.106 | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1050.53 | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linux< 6.12.57-1 | < 6.17.6-1
Linux1 product
- linux≥ 7bdee41575919773818e525ea19e54eb817770af, < 9338093db954918558677a468d32e77041c65167 | ≥ 7bdee41575919773818e525ea19e54eb817770af, < 6a7874ab814ce12003c46a92f7afc9b035c8e8e9 | ≥ 7bdee41575919773818e525ea19e54eb817770af, < d5cf5b37064b1699d946e8b7ab4ac7d7d101814c | 6.8
3 vendors · 129 products