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

drm/msm: RCU-free the scheduler-containing ring and VM objects

Both struct msm_ringbuffer and struct msm_gem_vm embed a struct
drm_gpu_scheduler. msm_ringbuffer_destroy() and the VM free callback
msm_gem_vm_free() call drm_sched_fini() on the embedded scheduler and then
free the containing object with plain kfree().

drm_sched_fence_get_timeline_name() returns fence->sched->name, and the
scheduler fence keeps a .release callback so it is not ops-detached on
signalling. A finished fence exported to userspace (the submit out-fence, or
a VM_BIND fence, via sync_file / drm_syncobj) keeps pointing at the embedded
scheduler after the ring/VM is freed, so a later get_timeline_name() --
reachable unprivileged through SYNC_IOC_FILE_INFO -- dereferences freed slab
memory (KASAN slab-use-after-free read).

Per the dma-fence lifetime contract the exporter must keep the data backing a
signalled fence alive for an RCU grace period. Free the scheduler-containing
objects with kfree_rcu() instead of kfree().

Patchwork: https://patchwork.freedesktop.org/patch/750234/
Published: 2026-10-06
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation
Action: Apply Patch
AI Analysis

Impact

The Linux kernel contains a use‑after‑free vulnerability in the msm DRM driver. The driver frees scheduler‑containing ring buffers or VM objects with a plain kfree() instead of kfree_rcu(). When a fence that references the embedded scheduler is still in use, a later call to drm_sched_fence_get_timeline_name() dereferences freed slab memory, allowing an attacker to read or corrupt sensitive kernel data.

Affected Systems

All systems running a Linux kernel that includes the drm/msm component are affected. No specific kernel version range is listed, but the problem is fixed in recent releases by replacing kfree() with kfree_rcu() in msm_ringbuffer_destroy() and msm_gem_vm_free().

Risk and Exploitability

The attacker only needs local unprivileged access and can trigger the flaw by sending a SYNC_IOC_FILE_INFO ioctl with a fence exported via sync_file or drm_syncobj. The EPSS score is less than 1%, and the vulnerability is not in CISA KEV, but the CVSS score of 7.1 and the possibility of kernel memory corruption suggest a high risk of privilege escalation or denial of service if exploited.

Generated by OpenCVE AI on October 9, 2026 at 04:52 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the kfree_rcu patch for msm_ringbuffer_destroy() and msm_gem_vm_free(); for example, install updates that include commit 01c8d1f or later.
  • If the required update is not available in your distribution, backport the kfree_rcu change from the referenced commit into your kernel source tree and rebuild the kernel.
  • Apply device permission restrictions or udev rules to limit unprivileged access to DRM sync objects, reducing the likelihood of an attacker invoking the vulnerable SYNC_IOC_FILE_INFO ioctl.

Generated by OpenCVE AI on October 9, 2026 at 04:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 09 Oct 2026 00:15:00 +0000


Wed, 07 Oct 2026 11:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 07 Oct 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 07 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H'}


Wed, 07 Oct 2026 05:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/msm: RCU-free the scheduler-containing ring and VM objects Both struct msm_ringbuffer and struct msm_gem_vm embed a struct drm_gpu_scheduler. msm_ringbuffer_destroy() and the VM free callback msm_gem_vm_free() call drm_sched_fini() on the embedded scheduler and then free the containing object with plain kfree(). drm_sched_fence_get_timeline_name() returns fence->sched->name, and the scheduler fence keeps a .release callback so it is not ops-detached on signalling. A finished fence exported to userspace (the submit out-fence, or a VM_BIND fence, via sync_file / drm_syncobj) keeps pointing at the embedded scheduler after the ring/VM is freed, so a later get_timeline_name() -- reachable unprivileged through SYNC_IOC_FILE_INFO -- dereferences freed slab memory (KASAN slab-use-after-free read). Per the dma-fence lifetime contract the exporter must keep the data backing a signalled fence alive for an RCU grace period. Free the scheduler-containing objects with kfree_rcu() instead of kfree(). Patchwork: https://patchwork.freedesktop.org/patch/750234/
Title drm/msm: RCU-free the scheduler-containing ring and VM objects
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:15:11.540Z

Reserved: 2026-09-25T10:25:14.322Z

Link: CVE-2026-98180

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:01.617

Modified: 2026-10-19T10:18:18.327

Link: CVE-2026-98180

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98180 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T05:00:14Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference