CVE-2025-68189: drm/msm: Fix GEM free for imported dma-bufs

Published Dec 16, 2025
·
Updated

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

drm/msm: Fix GEM free for imported dma-bufs

Imported dma-bufs also have obj->resv != &obj->resv. So we should check both this condition in addition to flags for handling the NOSHARE case.

Fixes this splat that was reported with IRIS video playback:

------------[ cut here ]------------ WARNING: CPU: 3 PID: 2040 at drivers/gpu/drm/msm/msmgem.c:1127 msmgemfreeobject+0x1f8/0x264 [msm] CPU: 3 UID: 1000 PID: 2040 Comm: .gnome-shell-wr Not tainted 6.17.0-rc7 #1 PREEMPT pstate: 81400005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : msmgemfreeobject+0x1f8/0x264 [msm] lr : msmgemfreeobject+0x138/0x264 [msm] sp : ffff800092a1bb30 x29: ffff800092a1bb80 x28: ffff800092a1bce8 x27: ffffbc702dbdbe08 x26: 0000000000000008 x25: 0000000000000009 x24: 00000000000000a6 x23: ffff00083c72f850 x22: ffff00083c72f868 x21: ffff00087e69f200 x20: ffff00087e69f330 x19: ffff00084d157ae0 x18: 0000000000000000 x17: 0000000000000000 x16: ffffbc704bd46b80 x15: 0000ffffd0959540 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 x11: ffffbc702e6cdb48 x10: 0000000000000000 x9 : 000000000000003f x8 : ffff800092a1ba90 x7 : 0000000000000000 x6 : 0000000000000020 x5 : ffffbc704bd46c40 x4 : fffffdffe102cf60 x3 : 0000000000400032 x2 : 0000000000020000 x1 : ffff00087e6978e8 x0 : ffff00087e6977e8 Call trace: msmgemfreeobject+0x1f8/0x264 [msm] (P) drmgemobjectfree+0x1c/0x30 [drm] drmgemobjecthandleputunlocked+0x138/0x150 [drm] drmgemobjectreleasehandle+0x5c/0xcc [drm] drmgemhandledelete+0x68/0xbc [drm] drmgemcloseioctl+0x34/0x40 [drm] drmioctlkernel+0xc0/0x130 [drm] drmioctl+0x360/0x4e0 [drm] arm64sysioctl+0xac/0x104 invokesyscall+0x48/0x104 el0svccommon.constprop.0+0x40/0xe0 doel0svc+0x1c/0x28 el0svc+0x34/0xec el0t64synchandler+0xa0/0xe4 el0t64sync+0x198/0x19c ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------

Patchwork: https://patchwork.freedesktop.org/patch/676273/

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 676273
  2. Configuration

    Apply the patchwork change “drm/msm: Fix GEM free for imported dma-bufs” so the GEM free path also checks the imported dma-bufs condition (“obj->resv != &obj->_resv”) for the _NO_SHARE case, along with the existing flags/handling logic around msm_gem_free_object.

    Linux kernel DRM MSM (msm_gem_free_object / GEM free path for imported dma-bufs) Fix GEM free for imported dma-bufs (_NO_SHARE case) by checking imported dma-bufs condition (obj->resv != &obj->_resv) in addition to flags for handling the drm/msm close/delete path = Apply the code fix described for “drm/msm: Fix GEM free for imported dma-bufs”

Event History

Dec 16, 2025
CVE Published
via MITRE·01:43 PM
Data Sourced
via MITRE·01:43 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-68189?

CVE-2025-68189 has been classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-68189?

To fix CVE-2025-68189, update your Linux kernel to version 6.17.0-rc8 or later.

3

What systems are affected by CVE-2025-68189?

CVE-2025-68189 affects the Linux Kernel versions up to 6.17.0-rc7.

4

What is the root cause of CVE-2025-68189?

The vulnerability in CVE-2025-68189 is caused by improper handling of imported dma-bufs in the DRM (Direct Rendering Manager) subsystem.

5

Is CVE-2025-68189 exploitable remotely?

CVE-2025-68189 is not considered remotely exploitable as it requires local access to the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203