drm/vc4: Fix a memory leak in hang state error path
In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Fix a memory leak in hang state error path When vc4_save_hang_state() encounters an early return condition, it returns without freeing the previously allocated `kernel_state`, leaking memory. Add the missing kfree() calls by consolidating the early return paths into a single place.
02 / AFFECTED SOFTWARE
Affected packages
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Fix a memory leak in hang state error path When vc4_save_hang_state() encounters an early return condition, it returns without freeing the previously allocated `kernel_state`, leaking memory. Add the missing kfree() calls by consolidating the early return paths into a single place.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/259e2bba3fd7005c62cbd42365a48b3221b244e3
- https://git.kernel.org/stable/c/3eb7dd55021d0f4308fbea0bea21d2118984d8e7
- https://git.kernel.org/stable/c/9487daa18e627ac6b5ed5911be79f23362554b70
- https://git.kernel.org/stable/c/9525d169e5fd481538cf8c663cc5839e54f2e481
- https://git.kernel.org/stable/c/c197def3834cbee3fd824ce4c57d08cb24e18955
- https://git.kernel.org/stable/c/d8fdd6adc07b78ad3e9ee0004876d90cb59ca941
- https://git.kernel.org/stable/c/dd5c49787a32da96a2b154427eb17cbf12a83c28
- https://git.kernel.org/stable/c/e352e9adc9f6df54d63150ff832f71c04e30744b
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43104.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-43104