{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142801","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.330Z","datePublished":"2026-12-03T03:11:31.007Z","dateUpdated":"2026-12-04T03:25:04.955Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:25:04.955Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Fix vm_bo use-after-free in with_vm_locks()\n\nThe unwind loop drops the vm_bo reference taken while locking before\nadvancing to the next entry.  drm_gpuvm_bo_put() may drop the last\nreference, removing and freeing the vm_bo, after which the plain list\niterator dereferences freed memory to advance.\n\nUse the safe iterator, which saves the next entry before the body runs.\n\nPatchwork: https://patchwork.freedesktop.org/patch/754331/"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - with_vm_locks() is only called from purge() and evict() out of msm_gem_shrinker_scan(), the shrinker scan_objects hook run by reclaim. A local render-node client gets there with DRM_IOCTL_MSM_GEM_NEW, DRM_IOCTL_MSM_GEM_MADVISE(MSM_MADV_DONTNEED), and GEM_SUBMIT or MSM_VM_BIND linking a drm_gpuvm_bo whose VM dma_resv is not obj->resv. No network message carries the faulting state.\nAC:H - drm_gpuvm_bo_put() kfree's the vm_bo only on the last kref, and list_for_each_entry reads list.entry.gem.next only when that entry is not last_locked (the loop breaks after the last locked vm_bo). drm_gem_lru_scan() holds obj->resv across the callback, and drm_gpuva_unlink() in msm_gem_vma_close() requires that same lock, so a concurrent VM_BIND unmap or GEM close cannot drop the VA ref inside the window.\nPR:L - DRM_IOCTL_MSM_GEM_NEW, DRM_IOCTL_MSM_GEM_MADVISE, DRM_IOCTL_MSM_GEM_SUBMIT and DRM_IOCTL_MSM_VM_BIND are DRM_RENDER_ALLOW, so a render-node client without CAP_SYS_ADMIN or DRM master can create the BO, mark it DONTNEED and map it into a VM. Reclaim then enters msm_gem_shrinker_scan() as kswapd or that client's direct reclaim.\nUI:N - The same client performs GEM_NEW, MADVISE and the map, and can drive reclaim by allocating memory. with_vm_locks() does not wait on another task to mount media, open a file, or approve a prompt.\nS:U - The use-after-free targets a kernel struct drm_gpuvm_bo while msm_gem_shrinker_scan() runs in host kernel context. Impact stays inside that kernel security authority.\nC:H - If the unlock put is the last reference, drm_gpuvm_bo_destroy() kfree's the drm_gpuvm_bo and the unsafe iterator loads list.entry.gem.next from that freed slab object. A reused slot supplies vm_bo->vm and the list pointers that drm_gpuvm_resv(), dma_resv_unlock() and drm_gpuvm_bo_put() then follow.\nI:H - After the free, the unwind loop still calls dma_resv_unlock() on drm_gpuvm_resv(vm_bo->vm) and drm_gpuvm_bo_put(), and destroy list_del's list.entry.gem. Attacker-controlled bytes in the reclaimed drm_gpuvm_bo make that list_del an arbitrary kernel write.\nA:H - drm_gpuvm_bo_destroy() list_del's the entry, poisoning list.entry.gem.next, then kfree's it. The next iterator step in with_vm_locks() dereferences that poison or a dangling pointer while kswapd or direct reclaim holds fs_reclaim, so the kernel oopses."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/msm_gem_shrinker.c"],"versions":[{"version":"fe4952b5f27cca5d143d3de249562d4cc984c1d6","lessThan":"3bcce6db59400fb643348179cd1f2a22a274b0e5","status":"affected","versionType":"git"},{"version":"fe4952b5f27cca5d143d3de249562d4cc984c1d6","lessThan":"a1fe31028ad6ddad4fa0ee086317fc1b00fbada1","status":"affected","versionType":"git"},{"version":"fe4952b5f27cca5d143d3de249562d4cc984c1d6","lessThan":"81878aa1a2f551f51a3d3aef2a9509503ec34d8b","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/msm_gem_shrinker.c"],"versions":[{"version":"6.17","status":"affected"},{"version":"0","lessThan":"6.17","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3bcce6db59400fb643348179cd1f2a22a274b0e5"},{"url":"https://git.kernel.org/stable/c/a1fe31028ad6ddad4fa0ee086317fc1b00fbada1"},{"url":"https://git.kernel.org/stable/c/81878aa1a2f551f51a3d3aef2a9509503ec34d8b"}],"title":"drm/msm: Fix vm_bo use-after-free in with_vm_locks()","x_generator":{"engine":"bippy-1.2.0"}}}}