Description
In the Linux kernel, the following vulnerability has been resolved: drm/radeon: fix memory leak in radeon_ring_restore() on lock failure radeon_ring_restore() takes ownership of the data buffer allocated by radeon_ring_backup(). The caller (radeon_gpu_reset()) only frees it in the non-restore branch; in the restore branch it relies on radeon_ring_restore() to free it. If radeon_ring_lock() fails, the function returned early without calling kvfree(data), leaking the ring backup buffer on every GPU reset that fails at the lock stage. During repeated GPU resets this causes cumulative kernel memory exhaustion. Free data before returning the error.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
55d7c22192becd0ec827a6901899ff56fa985658 to < 63912418f1fbb6456ea04bbcdf8f4d5090d23350affected55d7c22192becd0ec827a6901899ff56fa985658 to < 919e3e398bf301c6418dffdcd5e5c4fd9be39cf7affected55d7c22192becd0ec827a6901899ff56fa985658 to < 07c213f3499dd72e2922c1c73fe9ffea24874befaffected55d7c22192becd0ec827a6901899ff56fa985658 to < 1c9ba32308c02c198c378fcdf06be9ffc3111147affected55d7c22192becd0ec827a6901899ff56fa985658 to < eecfb76129ebef7e3aa41e18a4668cd91dfc6267affected55d7c22192becd0ec827a6901899ff56fa985658 to < 06dc892561f5a08b2493c34c8ec2cb94dea33159affected55d7c22192becd0ec827a6901899ff56fa985658 to < ccc42187fc2d0720947a63ce1b9e399d2c068ff4affected55d7c22192becd0ec827a6901899ff56fa985658 to < 82f1d6042611d45b8b9de423bbcb4e0ced9ec62baffected
Linux Linux
Default version status: affected
3.6affected0 to < 3.6unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/63912418f1fbb6456ea04bbcdf8f4d5090d23350 ↗
- https://git.kernel.org/stable/c/919e3e398bf301c6418dffdcd5e5c4fd9be39cf7 ↗
- https://git.kernel.org/stable/c/07c213f3499dd72e2922c1c73fe9ffea24874bef ↗
- https://git.kernel.org/stable/c/1c9ba32308c02c198c378fcdf06be9ffc3111147 ↗
- https://git.kernel.org/stable/c/eecfb76129ebef7e3aa41e18a4668cd91dfc6267 ↗
- https://git.kernel.org/stable/c/06dc892561f5a08b2493c34c8ec2cb94dea33159 ↗
- https://git.kernel.org/stable/c/ccc42187fc2d0720947a63ce1b9e399d2c068ff4 ↗
- https://git.kernel.org/stable/c/82f1d6042611d45b8b9de423bbcb4e0ced9ec62b ↗