cbcvebase.
CVE-2025-40031
published 2025-10-28

CVE-2025-40031: 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…

PriorityP420high7.8
EPSS
0.20%
9.9th percentile
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.

Affected

14 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.17.6-1 (forky)linux 6.17.6-1 (forky)
linuxlinux
linuxlinux>= 7bdee41575919773818e525ea19e54eb817770af < 9338093db954918558677a468d32e77041c651679338093db954918558677a468d32e77041c65167
linuxlinux>= 7bdee41575919773818e525ea19e54eb817770af < 6a7874ab814ce12003c46a92f7afc9b035c8e8e96a7874ab814ce12003c46a92f7afc9b035c8e8e9
linuxlinux>= 7bdee41575919773818e525ea19e54eb817770af < d5cf5b37064b1699d946e8b7ab4ac7d7d101814cd5cf5b37064b1699d946e8b7ab4ac7d7d101814c
linuxlinux_kernel>= 0 < 6.12.57-16.12.57-1
linuxlinux_kernel>= 0 < 6.17.6-16.17.6-1
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 0 < 6.17.0-14.146.17.0-14.14
linuxlinux_kernel>= 6.13.0 < 6.17.36.17.3
linuxlinux_kernel>= 6.8.0 < 6.12.536.12.53
ubuntulinux-aws
ubuntulinux-oracle
ubuntulinux-xilinx

CVSS provenance

vendor_ubuntu7.8HIGH
osv3.2LOW
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.