drm/vc4: Fix a memory leak in hang state error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 214613656b5179f0daab6e0a080814b5100d45f0 · < e352e9adc9f6df54d63150ff832f71c04e30744b| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's drm/vc4 hang-state error path can leak memory when vc4_save_hang_state() returns early without freeing an allocation. The input does not establish whether an attacker can trigger this condition or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with drm/vc4 should check their versions; affected versions were not provided.