drm/vkms: Fix use after free and double free on init error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 · < 1f68f1cf09d06061eb549726ff8339e064eddebd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/vkms: Fix use after free and double free on init error
If the driver initialization fails, the vkms_exit() function might access an uninitialized or freed default_config pointer and it might double free it.
Fix both possible errors by initializing default_config only when the driver initialization succeeded.
From the CVE record · Linux
The Linux kernel’s drm/vkms driver can access an uninitialized or freed pointer, or free it twice, if driver initialization fails. The input does not establish how an attacker could trigger the failure or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel with the drm/vkms driver should check their versions; affected versions are not specified.