# CVE-2022-50842: drm/virtio: Check whether transferred 2D BO is shmem

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-30T12:11:00.439Z
- Modified: 2026-06-17T05:24:16.870Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f651c8b055423057d9f41525dfdc37b4796015d1 before f134f261d76ae3d5ecf68db642eaa746ceb84cfb; from f651c8b055423057d9f41525dfdc37b4796015d1 before f122bcb34f1a4b02ef3d95058d8fd1316ea03785; from f651c8b055423057d9f41525dfdc37b4796015d1 before 989164305b933af06d69bb91044dafbd01025371; from f651c8b055423057d9f41525dfdc37b4796015d1 before 36e133af33ea54193378b190cf92c47c12a43d34; from f651c8b055423057d9f41525dfdc37b4796015d1 before e473216b42aa1fd9fc6b94b608b42c210c655908; 5.7 (not affected: before 5.7; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/f134f261d76ae3d5ecf68db642eaa746ceb84cfb>
- <https://git.kernel.org/stable/c/f122bcb34f1a4b02ef3d95058d8fd1316ea03785>
- <https://git.kernel.org/stable/c/989164305b933af06d69bb91044dafbd01025371>
- <https://git.kernel.org/stable/c/36e133af33ea54193378b190cf92c47c12a43d34>
- <https://git.kernel.org/stable/c/e473216b42aa1fd9fc6b94b608b42c210c655908>

## Sources

- CVE List: [CVE-2022-50842](https://www.cve.org/CVERecord?id=CVE-2022-50842), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50842](https://nvd.nist.gov/vuln/detail/CVE-2022-50842), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50842 · Whole record: https://cve.day/CVE-2022-50842.json · Rebuilt by cve.day 2026-11-25T22:58:21.376Z
