CVE-2022-50842 drm/virtio: Check whether transferred 2D BO is shmem
A local attacker can cause a kernel crash by passing a VRAM buffer object instead of a shared memory object to the virtio DRM driver.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50842?
CVE-2022-50842 is a vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/virtio: Check whether transferred 2D BO is shmem
Transferred 2D BO always must be a shmem BO. Add check for that to prevent NULL dereference if userspace passes a VRAM BO.
Which versions are affected by CVE-2022-50842?
How do I fix CVE-2022-50842?
Apply the vendor's patch.
Is CVE-2022-50842 being exploited?
There is no known exploitation of CVE-2022-50842 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50842, GHSA-rf45-2mvj-wwc3, UBUNTU-CVE-2022-50842.