CVE-2025-40031
BaseFortify
Publication date: 2025-10-28
Last updated on: 2025-10-30
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is in the Linux kernel's TEE (Trusted Execution Environment) subsystem, specifically in the register_shm_helper() function. The issue is due to incorrect error handling when calling iov_iter_extract_pages(). The function did not properly handle the case where iov_iter_extract_pages() returns a positive number that is less than the requested amount of pages, which can lead to a NULL pointer dereference if parts of the buffer are not mapped correctly after a bad input from ioctl(TEE_IOC_SHM_REGISTER).
How can this vulnerability impact me? :
The vulnerability can cause a NULL pointer dereference in the Linux kernel, which may lead to a kernel crash or system instability. This could potentially be exploited to cause denial of service or other unintended behavior in systems using the affected TEE subsystem.