Skip to contentSkip to conversation

CVE-2026-89816: drm: Fix drm_crtc_commit leak if signaled when PAGE_FLIP_EVENT is used

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: Fix drm_crtc_commit leak if signaled when PAGE_FLIP_EVENT is used

Commit 1c6ceeee6ebb ("drm/atomic: Fix memleak on ERESTARTSYS during non-blocking commits") fixed a very similar issue when the event was allocated by drm_atomic_helper_setup_commit() itself.

However, if the event is allocated in prepare_signaling(), it will also be set to NULL in complete_signaling(), which prevents drm_crtc_commit from being put in __drm_atomic_helper_crtc_destroy_state().

Dropping the reference when the event is set to NULL at complete_signaling() fixes the leak.

The leak can be reproduced by sending a signal to the thread using DRM_MODE_PAGE_FLIP_EVENT and using a sw_sync fence to cause the atomic ioctl to block at drm_atomic_helper_wait_for_fences(). It happened both with amdgpu and vkms.

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

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

	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 5.10.270 with commit c5517b71101f61a45144e3cf77a19626355272de
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 5.15.221 with commit 866a04137dac7e82a3848851061ff7ed15c2847e
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 6.1.188 with commit 6a6a7aae4681a20cd32789fea9a487aaafa0e7a3
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 6.6.157 with commit e2f27b5ed9084feb7bae9ef2bc80de37c92280b1
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 6.12.110 with commit ff73f5f43d032c3da3c534c517f661e8dfeb358a
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 6.18.51 with commit 66b1b309886337745d395bbc158440ab196305ce
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 7.2.5 with commit e6195b941fdc8d81fc431c9f25539cf6c6234b51
	Issue introduced in 4.11 with commit 24835e442f289813aa568d142a755672a740503c and fixed in 7.3-rc2 with commit 4d4be202165e832d74849b4a68e289a2a377039c
	Issue introduced in 4.9.19 with commit c75fe7899538890109aad7bbf92b2f304389e825
	Issue introduced in 4.10.7 with commit 2a3241044b1c4ecc13f73b7158881881fb7534a1

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-89816

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_atomic_uapi.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/c5517b71101f61a45144e3cf77a19626355272de
	https://git.kernel.org/stable/c/866a04137dac7e82a3848851061ff7ed15c2847e
	https://git.kernel.org/stable/c/6a6a7aae4681a20cd32789fea9a487aaafa0e7a3
	https://git.kernel.org/stable/c/e2f27b5ed9084feb7bae9ef2bc80de37c92280b1
	https://git.kernel.org/stable/c/ff73f5f43d032c3da3c534c517f661e8dfeb358a
	https://git.kernel.org/stable/c/66b1b309886337745d395bbc158440ab196305ce
	https://git.kernel.org/stable/c/e6195b941fdc8d81fc431c9f25539cf6c6234b51
	https://git.kernel.org/stable/c/4d4be202165e832d74849b4a68e289a2a377039c