CVE-2024-42101Published Jul 30, 2024 · Jul 30Updated Oct 28
drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6ee738610f41b59733f63718f0bdbcba7d3a3f12 · < 744b229f09134ccd091427a6f9ea6d97302cfdd9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes
In nouveau_connector_get_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(). Add a check to avoid npd.
From the CVE record · Linux
The Linux kernel’s nouveau_connector_get_modes() can dereference a NULL pointer if drm_mode_duplicate() fails. The input does not describe how an attacker could trigger the failure or specify access or user-interaction requirements.
Engineers running Linux kernels with the nouveau driver should check their vendor’s advisory for affected versions.