drm/gma500/oaktrail_lvds: fix hang on init failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a57ebfc0b4da16a3f36bfebb158198aab3e340f8 · < 657a091ab6d01d0091b77660c75cfed573c9a53e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/gma500/oaktrail_lvds: fix hang on init failure
The LVDS init code looks up an I2C adapter using i2c_get_adapter() and tries to read the EDID before falling back to allocating and registering its own adapter.
The error handling does not separate these cases so on a late init failure it will try to deregister and free also an adapter that had previously been registered. Since i2c_get_adapter() takes another reference to the adapter, deregistration hangs indefinitely while waiting for the reference to be released.
Fix this by only destroying adapters allocated during LVDS init on errors.
From the CVE record · Linux
The Linux kernel’s Oaktrail LVDS initialization code can hang if initialization fails late after it has obtained an existing I2C adapter. On that error path, it tries to deregister the adapter while still holding a reference to it. The input does not describe an attacker trigger, access requirements, or user interaction.
Engineers running Linux kernels with drm/gma500/oaktrail_lvds should check whether their kernels include the fix; affected versions are not specified.