CVE-2025-40031
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-40031, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

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-07-06
AI Q&A
2025-10-28
EPSS Evaluated
2026-07-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 Quick Actions

Instant insights powered by AI
Executive Summary

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).

Impact Analysis

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.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40031. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart