CVE-2026-53210

tee: shm: fix shm leak in register_shm_helper()

Published Jun 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel has a flaw in the register_shm_helper routine where shared memory is allocated before checking the number of pages. When the I/O vector page count returns zero, the code jumps to a cleanup path that fails to release the allocated memory, resulting in a memory leak. This deficiency can lead to gradual exhaustion of kernel memory, eventually causing system instability or a denial of service. The weakness is characterized by unchecked allocation without proper deallocation, aligning with CWE‑401 Memory Leak and CWE‑772 Unreleased Resource.

Affected Systems

The vulnerability affects all Linux kernel builds that include the register_shm_helper implementation without the recent git patch, regardless of specific distribution or version. Users of the TEE driver on any Linux kernel not yet updated to incorporate this fix are potentially impacted. No explicit version range is provided, so any kernel installation predating the commit is considered at risk.

Risk and Exploitability

An attacker can trigger the bug by issuing the TEE_IOC_SHM_REGISTER ioctl with a zero‑length request to the TEE driver, a capability typically limited to privileged or authenticated users. Repeated exploitation would progressively consume kernel memory, degrading performance and potentially leading to a crash or reboot. The vulnerability is not listed in the CISA KEV catalog, and the EPSS score is < 1 %. With a CVSS score of 5.5, the flaw presents a moderate risk of exploitation on affected systems. Applying the kernel update that corrects the memory handling is the most effective countermeasure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a revision that includes the register_shm_helper memory‑leak fix
  • Configure or audit the TEE driver so that it rejects or ignores register requests with a length of zero
  • Ensure that privileged users or processes are strictly limited to necessary TEE operations to reduce the opportunity for exploitation

Generated by OpenCVE AI on June 26, 2026 at 13:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8903-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8904-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8905-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8906-1 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8903-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8905-2 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-9002-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
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.
Title tee: shm: fix shm leak in register_shm_helper()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 25, 2026, 8:39 AM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jun 25, 2026, 9:16 AM
Modified
Jul 2, 2026, 8:54 PM
Severity
Low
Public date
Jun 25, 2026, 12:00 AM