drm/gma500: Fix null dereference in hdmi teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1b082ccf5901108d3acd860a73d8c0442556c0bb · < f800f7054d2cf28b51296c7c575da27c29e3859b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/gma500: Fix null dereference in hdmi teardown
pci_set_drvdata sets the value of pdev->driver_data to NULL, after which the driver_data obtained from the same dev is dereferenced in oaktrail_hdmi_i2c_exit, and the i2c_dev is extracted from it. To prevent this, swap these calls.
Found by Linux Verification Center (linuxtesting.org) with Svacer.
From the CVE record · Linux
The Linux kernel's drm/gma500 HDMI teardown can dereference driver data after it has been set to NULL. This can trigger a null pointer dereference when oaktrail_hdmi_i2c_exit runs; the input does not specify how an attacker could reach this path or whether authentication or user interaction is required.
Engineers running Linux kernels with the drm/gma500 driver should check whether their kernel includes the fix; affected versions are not specified.