Bug 2348202 (CVE-2021-47659) - CVE-2021-47659 kernel: drm/plane: Move range check for format_count earlier
Summary: CVE-2021-47659 kernel: drm/plane: Move range check for format_count earlier
Keywords:
Status: NEW
Alias: CVE-2021-47659
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:21 UTC by OSIDB Bzimport
Modified: 2025-02-26 18:26 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:21:10 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 14:26:53 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022652-CVE-2021-47659-ba18@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 18:25:33 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022652-CVE-2021-47659-ba18@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.