drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6ee738610f41b59733f63718f0bdbcba7d3a3f12 · < 7ece609b0ce7a7ea8acdf512a77d1fee26621637| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes
In nv17_tv_get_hd_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). The same applies to drm_cvt_mode(). Add a check to avoid null pointer dereference.
From the CVE record · Linux
The Linux kernel's nv17_tv_get_hd_modes() can dereference a NULL pointer if drm_mode_duplicate() or drm_cvt_mode() fails. This could cause a kernel fault; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with the affected nouveau display code should check their kernel versions; affected versions are not specified.