{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-40031","published":"2025-10-28T12:15:36.890000Z","last_modified":"2026-10-19T21:10:00.160000Z","status":"Deferred","cwes":[],"cpes":[],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux"],"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"none","priority_score":0,"links":{"html_es":"/es/cve/CVE-2025-40031/","html_en":"/en/cve/CVE-2025-40031/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40031","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40031"},"untrusted":{"vendor_name":"Linux","product_name":"Linux","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: fix register_shm_helper()\n\nIn register_shm_helper(), fix incorrect error handling for a call to\niov_iter_extract_pages(). A case is missing for when\niov_iter_extract_pages() only got some pages and return a number larger\nthan 0, but not the requested amount.\n\nThis fixes a possible NULL pointer dereference following a bad input from\nioctl(TEE_IOC_SHM_REGISTER) where parts of the buffer isn't mapped.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/6a7874ab814ce12003c46a92f7afc9b035c8e8e9","tags":[]},{"url":"https://git.kernel.org/stable/c/9338093db954918558677a468d32e77041c65167","tags":[]},{"url":"https://git.kernel.org/stable/c/d5cf5b37064b1699d946e8b7ab4ac7d7d101814c","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:10301-1","url":"https://www.suse.com/support/update/","published":"2026-03-07T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"kernel-devel-longterm-6.18.16-1.1 on GA media"}},{"source":"suse","id":"openSUSE-SU-2025:20172-1","url":"https://www.suse.com/support/update/","published":"2025-12-19T17:38:16+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}},{"source":"suse","id":"SUSE-SU-2026:20012-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202620012-1/","published":"2025-12-19T16:46:47+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}}]}