drm/xe/configfs: Free ctx_restore_mid_bb in release
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.176.19.77.0In the Linux kernel, the following vulnerability has been resolved:
drm/xe/configfs: Free ctx_restore_mid_bb in release
ctx_restore_mid_bb memory is allocated in wa_bb_store(), but xe_config_device_release() only frees ctx_restore_post_bb.
Free ctx_restore_mid_bb[0].cs as well to avoid leaking the allocation when the configfs device is removed.
(cherry picked from commit a235e7d0098337c3f2d1e8f3610c719a589e115f)
From the CVE record · Linux
The Linux kernel’s drm/xe/configfs release path fails to free an allocation when a configfs device is removed, causing a memory leak. The input does not establish how an attacker could trigger removal or specify authentication or user-interaction requirements.
Operators running the Linux kernel with drm/xe/configfs should check their installations; affected versions are not specified.