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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:11:00.439Z
- **Modified:** 2026-06-17T05:24:16.870Z

## Who should check

- Anyone running Linux \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f134f261d76ae3d5ecf68db642eaa746ceb84cfb; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f122bcb34f1a4b02ef3d95058d8fd1316ea03785; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 989164305b933af06d69bb91044dafbd01025371; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 36e133af33ea54193378b190cf92c47c12a43d34; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< e473216b42aa1fd9fc6b94b608b42c210c655908
- Anyone running Linux 5.7

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

## Affected and fixed versions

- Linux: \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f134f261d76ae3d5ecf68db642eaa746ceb84cfb; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f122bcb34f1a4b02ef3d95058d8fd1316ea03785; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 989164305b933af06d69bb91044dafbd01025371; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 36e133af33ea54193378b190cf92c47c12a43d34; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< e473216b42aa1fd9fc6b94b608b42c210c655908 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50842.md
Affected: Linux >= f651c8b055423057d9f41525dfdc37b4796015d1, < f134f261d76ae3d5ecf68db642eaa746ceb84cfb; >= f651c8b055423057d9f41525dfdc37b4796015d1, < f122bcb34f1a4b02ef3d95058d8fd1316ea03785; >= f651c8b055423057d9f41525dfdc37b4796015d1, < 989164305b933af06d69bb91044dafbd01025371; >= f651c8b055423057d9f4152…
Fixed in: Linux 989164305b933af06d69bb91044dafbd01025371, Linux 36e133af33ea54193378b190cf92c47c12a43d34

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50842 being exploited?

There is no confirmed exploitation: CVE-2022-50842 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50842?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50842?

Linux \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f134f261d76ae3d5ecf68db642eaa746ceb84cfb; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< f122bcb34f1a4b02ef3d95058d8fd1316ea03785; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 989164305b933af06d69bb91044dafbd01025371; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< 36e133af33ea54193378b190cf92c47c12a43d34; \>= f651c8b055423057d9f41525dfdc37b4796015d1, \< e473216b42aa1fd9fc6b94b608b42c210c655908; Linux 5.7.

### Is there a fix for CVE-2022-50842?

Yes. Fixed in Linux 989164305b933af06d69bb91044dafbd01025371, Linux 36e133af33ea54193378b190cf92c47c12a43d34. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50842?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50842>

HTML: <https://flawdb.com/CVE-2022-50842> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50842>
