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.
References (4)
Core 4
Core References
Scores
CVSS v3
5.5
EPSS
0.0013
EPSS Percentile
2.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-401
Status
published
Products (15)
linux/Kernel
6.13.0 - 6.18.36linux
linux/Kernel
6.19.0 - 7.0.13linux
linux/Kernel
6.8.0 - 6.12.94linux
Linux/Linux
< 6.8
Linux/Linux
6.12.94 - 6.12.*
Linux/Linux
6.18.36 - 6.18.*
Linux/Linux
6.8
Linux/Linux
7.0.13 - 7.0.*
Linux/Linux
7.1
Linux/Linux
7bdee41575919773818e525ea19e54eb817770af - 26682f5efc276e3ad96d102019472bfbf03833b2
... and 5 more
Published
Jun 25, 2026
Tracked Since
Jun 25, 2026