CVE-2025-40031
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
28/10/2025
Last modified:
30/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
tee: fix register_shm_helper()<br />
<br />
In register_shm_helper(), fix incorrect error handling for a call to<br />
iov_iter_extract_pages(). A case is missing for when<br />
iov_iter_extract_pages() only got some pages and return a number larger<br />
than 0, but not the requested amount.<br />
<br />
This fixes a possible NULL pointer dereference following a bad input from<br />
ioctl(TEE_IOC_SHM_REGISTER) where parts of the buffer isn&#39;t mapped.



