In the Linux kernel, the following vulnerability has been resolved: tee: shm: fix shm leak in register_shm_helper() register_shm_helper() allocates… (CVE-2026-53210)
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.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2026-53210 involves a memory leak in the TEE subsystem's register_shm_helper() function. Specifically, the function allocates shared memory before calling iov_iter_npages(), which returns the number of pages for the memory operation. If iov_iter_npages() returns zero (indicating zero length), the function erroneously jumps to an error handling label err_ctx_put without freeing the allocated shared memory, causing a leak. This can be triggered by the TEE_IOC_SHM_REGISTER ioctl when the length field in tee_ioctl_shm_register_data is zero. The correct behavior is to jump to err_free_shm to free the allocated memory, which has been fixed in the kernel.
Potential Impact
The vulnerability results in a shared memory leak within the Linux kernel's TEE subsystem when processing zero-length shared memory registration requests. While it does not affect confidentiality or integrity, it impacts availability by potentially exhausting kernel memory resources over time. There are no known exploits in the wild. The CVSS 3.1 vector rates the impact as no confidentiality or integrity impact but high availability impact (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or vendor advisories are provided, users should monitor official Linux kernel security advisories for updates addressing this issue. Avoid sending zero-length shared memory registration requests to the TEE subsystem as a temporary mitigation if feasible.
In the Linux kernel, the following vulnerability has been resolved: tee: shm: fix shm leak in register_shm_helper() register_shm_helper() allocates… (CVE-2026-53210)
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 v3.1
Score 5.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2026-53210 involves a memory leak in the TEE subsystem's register_shm_helper() function. Specifically, the function allocates shared memory before calling iov_iter_npages(), which returns the number of pages for the memory operation. If iov_iter_npages() returns zero (indicating zero length), the function erroneously jumps to an error handling label err_ctx_put without freeing the allocated shared memory, causing a leak. This can be triggered by the TEE_IOC_SHM_REGISTER ioctl when the length field in tee_ioctl_shm_register_data is zero. The correct behavior is to jump to err_free_shm to free the allocated memory, which has been fixed in the kernel.
Potential Impact
The vulnerability results in a shared memory leak within the Linux kernel's TEE subsystem when processing zero-length shared memory registration requests. While it does not affect confidentiality or integrity, it impacts availability by potentially exhausting kernel memory resources over time. There are no known exploits in the wild. The CVSS 3.1 vector rates the impact as no confidentiality or integrity impact but high availability impact (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or vendor advisories are provided, users should monitor official Linux kernel security advisories for updates addressing this issue. Avoid sending zero-length shared memory registration requests to the TEE subsystem as a temporary mitigation if feasible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wfx4-v2wf-4gmp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53210"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a46eca927e9c7971943a6be
Added to database: 07/02/2026, 22:56:41 UTC
Last enriched: 07/02/2026, 23:02:16 UTC
Last updated: 07/31/2026, 19:24:50 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.