drm/msm/dsi: Fix VM leak in dsi_tx_buf_alloc_6g()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dsi: Fix VM leak in dsi_tx_buf_alloc_6g()
dsi_tx_buf_alloc_6g() takes a reference to the kms VM with drm_gpuvm_get() and stores it in msm_host->vm. If msm_gem_kernel_new() fails, the function returns early without dropping that reference. Since msm_host->tx_gem_obj is cleared on the error path, msm_dsi_tx_buf_free() will never see a non-NULL tx_gem_obj and thus never calls drm_gpuvm_put(), leaking the VM reference.
Drop the VM reference and clear msm_host->vm on the error path.
Patchwork: https://patchwork.freedesktop.org/patch/754332/
| Product | Versions |
|---|---|
| Linux Linux | 96c3a1830434e20212b01784f22486eb031377f0 to before 7c162b45a19c3cc1e633c8be7167acd65ed3b91d Affected0d3ec0a19f3abdb9504331c1f136bdc7410b8a64 to before 1da57667eb8421dfff4ad307cb2cc2436aaaf448 Affected5e05be78264594634860087953649487f486ffcc to before 5758338c8c762410f0b8042bc03a4a485e4e8e55 Affected5e05be78264594634860087953649487f486ffcc to before c4a692585615f76c8ac421015285cfd13a2f0969 Affected5e05be78264594634860087953649487f486ffcc to before 419c7a3d1dcbfb9fee0c9c0ad5b9cff281e0b470 Affected5e05be78264594634860087953649487f486ffcc to before ab91ba61871a896ca2ecc6e048d80a152136da44 Affected57a90fb6ab1169ab285a1d1e224630a69fda2d01 Affected6.1.63 to before 6.1.193 Affected6.6.2 to before 6.6.163 Affected6.5.12 to before 6.6 Affected |
| Linux Linux | 6.7 Affectedbefore 6.7 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/7c162b45a19c3cc1e633c8be7167acd65ed3b91d
- https://git.kernel.org/stable/c/1da57667eb8421dfff4ad307cb2cc2436aaaf448
- https://git.kernel.org/stable/c/5758338c8c762410f0b8042bc03a4a485e4e8e55
- https://git.kernel.org/stable/c/c4a692585615f76c8ac421015285cfd13a2f0969
- https://git.kernel.org/stable/c/419c7a3d1dcbfb9fee0c9c0ad5b9cff281e0b470
- https://git.kernel.org/stable/c/ab91ba61871a896ca2ecc6e048d80a152136da44
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.