# CVE-2026-53210: tee: shm: fix shm leak in register_shm_helper()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:15.569Z
- Modified: 2026-07-02T20:54:05.763Z
- Weaknesses: CWE-401
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7bdee41575919773818e525ea19e54eb817770af before 4277759906b44d923a38c8f59f5576501b187b0d; from 7bdee41575919773818e525ea19e54eb817770af before c10c9c48b2903f41ed4c532043b0576e86228236; from 7bdee41575919773818e525ea19e54eb817770af before dbf779db927414f5b37c1f666013e9b48a88cfde; from 7bdee41575919773818e525ea19e54eb817770af before 26682f5efc276e3ad96d102019472bfbf03833b2; 6.8 (not affected: before 6.8; from 6.12.94 up to 6.12.*; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.8 before 6.12.94; from 6.13 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/4277759906b44d923a38c8f59f5576501b187b0d> (patch)
- <https://git.kernel.org/stable/c/c10c9c48b2903f41ed4c532043b0576e86228236> (patch)
- <https://git.kernel.org/stable/c/dbf779db927414f5b37c1f666013e9b48a88cfde> (patch)
- <https://git.kernel.org/stable/c/26682f5efc276e3ad96d102019472bfbf03833b2> (patch)

## Sources

- CVE List: [CVE-2026-53210](https://www.cve.org/CVERecord?id=CVE-2026-53210), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-53210](https://nvd.nist.gov/vuln/detail/CVE-2026-53210), Public domain, modified 2026-07-02

---

Page: https://cve.day/CVE-2026-53210 · Whole record: https://cve.day/CVE-2026-53210.json · Rebuilt by cve.day 2026-11-25T22:59:26.314Z
