CVE-2025-40031
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-28

Last updated on: 2025-10-30

Assigner: kernel.org

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-28
Last Modified
2025-10-30
Generated
2026-05-07
AI Q&A
2025-10-28
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart