CVE-2026-53210
Received Received - Intake
TEE SHM Memory Leak in Linux Kernel

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: tee: shm: fix shm leak in register_shm_helper() register_shm_helper() allocates shm before calling iov_iter_npages(). If iov_iter_npages() returns 0, the function jumps to err_ctx_put and leaks shm. This can be triggered by TEE_IOC_SHM_REGISTER with struct tee_ioctl_shm_register_data where length is 0. Jump to err_free_shm instead.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
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 exists in the Linux kernel's TEE (Trusted Execution Environment) subsystem, specifically in the shared memory (shm) handling code. The function register_shm_helper() allocates shared memory before calling iov_iter_npages(). If iov_iter_npages() returns 0, the function incorrectly jumps to an error handling path (err_ctx_put) that causes the allocated shared memory to be leaked instead of properly freed. This issue can be triggered by the TEE_IOC_SHM_REGISTER ioctl call when the length parameter in struct tee_ioctl_shm_register_data is set to 0.

Impact Analysis

The vulnerability leads to a memory leak in the kernel's shared memory management within the TEE subsystem. Over time, repeated triggering of this flaw could cause increased memory consumption, potentially degrading system performance or leading to resource exhaustion. This could affect system stability or availability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53210. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart