Linux kernel drm_gem_shmem: PMD huge-page fault can map past the VMA end and trip VM_BUG_ON
Impact
The ->huge_fault handler in the DRM shared-memory GEM helper installed a PMD-sized mapping without checking that the huge page fits inside the VMA, so a local user who mmaps a shmem-backed GEM buffer at the right size and offset can create a mapping that extends past the end of the VMA. The record describes the consequence as a VM_BUG_ON_VMA() firing in copy_pmd_range(), i.e. a kernel BUG on the next fork of that address space - an oops or panic on the node rather than a controlled escape. NVD scores it 7.8 with confidentiality and integrity impact as well, but nothing in the record backs a read or write primitive beyond the out-of-bounds mapping itself. Reachability is narrow: this helper is used by shmem-backed DRM drivers such as virtio-gpu, not by the TTM-based amdgpu path or the out-of-tree NVIDIA driver, so on most bare-metal GPU hosts the exposed surface is a guest running virtio-gpu, not the accelerator itself.
Who can reach it
Local user who can open a DRM device node backed by drm_gem_shmem and mmap a GEM buffer - typically any tenant inside a VM with virtio-gpu, or any local user with render-node access. No authentication beyond device permissions, no remote path. Not reachable at all on hosts that load no shmem-backed DRM driver.
What to do
Pick up a stable kernel containing the two linked commits; there is no runtime mitigation short of denying DRM device access to untrusted local users. Applying it means rebooting each node into the new kernel, so schedule it with normal GPU-node drain-and-reboot maintenance rather than treating it as urgent - the described impact is a local crash, and on hosts with no shmem-backed DRM driver loaded the code is never entered.
References
Related entries
- NVIDIA GPU Display Driver - kernel mode layer (Windows nvlddmkm.sys and Linux nvidia.ko): An out-of-bounds readCVE-2022-28183 · NVIDIA GPU Display Driver - kernel mode layer (Windows nvlddmkm.sys and Linux nvidia.ko)High
- DGX servers BMC: Improper access control on BMCCVE-2022-42275 · DGX servers BMCHigh
- KAI Scheduler: Missing authentication on API endpointsCVE-2026-24177 · KAI SchedulerHigh
- DGX H100 BMC (IPMI): Credential exposureCVE-2023-25531 · DGX H100 BMC (IPMI)High
- NVIDIA License System - Delegated Licensing Service (DLS): An unauthorised action against the DLS reaches partialCVE-2024-0122 · NVIDIA License System - Delegated Licensing Service (DLS)High
- Container Toolkit / GPU Operator: Container escape to host root (insufficient input validation)CVE-2024-0135 · Container Toolkit / GPU OperatorHigh
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.