drm/plane: Move range check for format_count earlier
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e6fc3b68558e4c6d8d160b5daf2511b99afa8814 · < ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/plane: Move range check for format_count earlier
While the check for format_count > 64 in __drm_universal_plane_init() shouldn't be hit (it's a WARN_ON), in its current position it will then leak the plane->format_types array and fail to call drm_mode_object_unregister() leaking the modeset identifier. Move it to the start of the function to avoid allocating those resources in the first place.
From the CVE record · Linux
The Linux kernel DRM plane initialization function can leak a format array and a modeset identifier if format_count exceeds 64. The input does not identify an attacker action or specify whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.