Linux kernel (drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535): Nouveau's GSP RPC layer frees the caller's message
Impact
Nouveau's GSP RPC layer frees the caller's message container after sending the first fragment of a multi-fragment RPC, then keeps using it to send the rest. Every remaining fragment is a write through freed kernel memory on the control channel between the driver and GPU firmware - the path that carries object allocation and mapping requests on Turing-and-later NVIDIA GPUs.
Who can reach it
Reached indirectly by a tenant holding /dev/dri/renderD* on a nouveau-driven NVIDIA GPU: userspace ioctls that allocate objects or set up mappings generate GSP RPCs, and any request whose payload exceeds a single fragment takes the buggy path. Conditional on the open nouveau driver with GSP firmware (not the proprietary NVIDIA module).
What to do
Update to a kernel carrying the fix commits below. Interim: on nodes using the proprietary NVIDIA driver, ensure nouveau is blacklisted so the vulnerable path is not loaded at all; otherwise restrict /dev/dri access.
References
Related entries
- Linux kernel amdgpu display core (DC/DM) (drm/amd/display): A NULL pointer dereference in the amdgpu display coreCVE-2025-38361 · Linux kernel amdgpu display core (DC/DM) (drm/amd/display)High
- Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdgpu): A use-after-free in the amdkfd (KFD compute driverCVE-2025-38598 · Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdgpu)High
- habanalabs kernel driver (dma-buf export path): A use-after-free in the habanalabs dma-buf export path: the driverCVE-2025-38722 · habanalabs kernel driver (dma-buf export path)High
- Linux kernel amdgpu display core (DC/DM) (drm/amd/display): A NULL pointer dereference in the amdgpu display coreCVE-2025-39906 · Linux kernel amdgpu display core (DC/DM) (drm/amd/display)High
- drm/xe: exec queue destroy after GuC stop leaks GuC IDs and warns on VRAM manager teardownCVE-2025-40166 · Linux kernel drm/xe GuC submission (exec queue deregistration after GuC stop)High
- accel/qaic: zero-length DMA transfer request from userspace causes a general protection faultCVE-2025-40172 · Linux kernel accel/qaic (find_and_map_user_pages zero-length DMA transfer)High
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.