Shellfeed logo Shellfeed

CVE-2026-89816 · UNKNOWN

Summary: drm: Fix drm_crtc_commit leak if signaled when PAGE_FLIP_EVENT is used

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 12.2).

Details

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.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [24835e442f289813aa568d142a755672a740503c – c5517b71101f61a45144e3cf77a19626355272de] [4.9.19 – 4.10] [4.10.7 – 4.11] [c75fe7899538890109aad7bbf92b2f304389e825 – ?] [2a3241044b1c4ecc13f73b7158881881fb7534a1 – ?]
  • Linux Kernel [4.11.0 – 5.10.270] [5.11.0 – 5.15.221] [5.16.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.110] [6.13.0 – 6.18.51] [6.19.0 – 7.2.5]

References