drm/hisilicon/hibmc: fix the hibmc loaded failed bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b3df5e65cc03696b0624a877d03a3ddf3ef43f52 · < 93a08f856fcc5aaeeecad01f71bef3088588216a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/hisilicon/hibmc: fix the hibmc loaded failed bug
When hibmc loaded failed, the driver use hibmc_unload to free the resource, but the mutexes in mode.config are not init, which will access an NULL pointer. Just change goto statement to return, because hibnc_hw_init() doesn't need to free anything.
From the CVE record · Linux
The Linux kernel's hibmc driver can access a NULL pointer when driver loading fails and cleanup tries to use uninitialized mutexes. The input does not describe an attacker path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the drm/hisilicon/hibmc driver should check their versions; affected versions are not specified.