Skip to contentSkip to conversation

CVE-2026-53378: drm/colorop: Fix blob property reference tracking in state lifecycle

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/colorop: Fix blob property reference tracking in state lifecycle

The colorop state blob property handling had memory leaks during state duplication, destruction, and reset operations. The implementation failed to follow the established pattern from drm_crtc's handling of DEGAMMA/GAMMA blob properties.

Issues fixed:
- drm_colorop_atomic_destroy_state() was freeing state memory without releasing the blob reference, causing a leak
- drm_colorop_reset() was directly freeing old state with kfree() instead of properly destroying it, leaking blob references
- drm_colorop_cleanup() had duplicate blob cleanup code

Changes:
- Add __drm_atomic_helper_colorop_destroy_state() helper to properly release blob references before freeing state memory
- Update drm_colorop_atomic_destroy_state() to call the helper
- Fix drm_colorop_reset() to use drm_colorop_atomic_destroy_state() for proper cleanup of old state
- Simplify drm_colorop_cleanup() to use the common destruction path

This matches the well-tested pattern used by drm_crtc since 2016 and ensures proper reference counting throughout the state lifecycle.

Co-developed by Claude Sonnet 4.5.

The Linux kernel CVE team has assigned CVE-2026-53378 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit cfc27680ee208cdf7a61cda817b4158c4142595f and fixed in 7.0.9 with commit 271059f1d9020e9ac967524e319fbbaa22d0475b
	Issue introduced in 6.19 with commit cfc27680ee208cdf7a61cda817b4158c4142595f and fixed in 7.1 with commit 235b333e2878d791cee09e1e72f44611a9400114

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53378

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/drm_colorop.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/271059f1d9020e9ac967524e319fbbaa22d0475b
	https://git.kernel.org/stable/c/235b333e2878d791cee09e1e72f44611a9400114