drm/radeon: fix a possible null pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 771fe6b912fca54f03e8a72eb63058b582775362 · < 7b7fba107b2c4ec7673d0f45bdbb9d1af697d9b9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: fix a possible null pointer dereference
In radeon_fp_native_mode(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
The failure status of drm_cvt_mode() on the other path is checked too.
From the CVE record · Linux
The Linux kernel's radeon_fp_native_mode() can dereference a null pointer if drm_mode_duplicate() fails. The input does not establish whether an attacker can trigger the failure or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with the drm/radeon component should check their versions; affected versions are not specified.