# CVE-2022-50851: vhost\_vdpa: fix the crash in unmap a large memory

> 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:15:27.765Z
- **Modified:** 2026-06-17T05:24:17.820Z

## Who should check

- Anyone running Linux \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 26b7400c89b81e2f6de4f224ba1fdf06f293de31; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< e794070af224ade46db368271896b2685ff4f96b
- Anyone running Linux 5.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

vhost\_vdpa: fix the crash in unmap a large memory

While testing in vIOMMU, sometimes Guest will unmap very large memory,
which will cause the crash. To fix this, add a new function
vhost\_vdpa\_general\_unmap(). This function will only unmap the memory
that saved in iotlb.

Call Trace:
\[  647.820144\] ------------\[ cut here \]------------
\[  647.820848\] kernel BUG at drivers/iommu/intel/iommu.c:1174!
\[  647.821486\] invalid opcode: 0000 \[\#1\] PREEMPT SMP PTI
\[  647.822082\] CPU: 10 PID: 1181 Comm: qemu-system-x86 Not tainted 6.0.0-rc1home\_lulu\_2452\_lulu7\_vhost+ \#62
\[  647.823139\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.15.0-29-g6a62e0cb0dfe-prebuilt.qem4
\[  647.824365\] RIP: 0010:domain\_unmap+0x48/0x110
\[  647.825424\] Code: 48 89 fb 8d 4c f6 1e 39 c1 0f 4f c8 83 e9 0c 83 f9 3f 7f 18 48 89 e8 48 d3 e8 48 85 c0 75 59
\[  647.828064\] RSP: 0018:ffffae5340c0bbf0 EFLAGS: 00010202
\[  647.828973\] RAX: 0000000000000001 RBX: ffff921793d10540 RCX: 000000000000001b
\[  647.830083\] RDX: 00000000080000ff RSI: 0000000000000001 RDI: ffff921793d10540
\[  647.831214\] RBP: 0000000007fc0100 R08: ffffae5340c0bcd0 R09: 0000000000000003
\[  647.832388\] R10: 0000007fc0100000 R11: 0000000000100000 R12: 00000000080000ff
\[  647.833668\] R13: ffffae5340c0bcd0 R14: ffff921793d10590 R15: 0000008000100000
\[  647.834782\] FS:  00007f772ec90640(0000) GS:ffff921ce7a80000(0000) knlGS:0000000000000000
\[  647.836004\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  647.836990\] CR2: 00007f02c27a3a20 CR3: 0000000101b0c006 CR4: 0000000000372ee0
\[  647.838107\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  647.839283\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  647.840666\] Call Trace:
\[  647.841437\]  \<TASK\>
\[  647.842107\]  intel\_iommu\_unmap\_pages+0x93/0x140
\[  647.843112\]  \_\_iommu\_unmap+0x91/0x1b0
\[  647.844003\]  iommu\_unmap+0x6a/0x95
\[  647.844885\]  vhost\_vdpa\_unmap+0x1de/0x1f0 \[vhost\_vdpa\]
\[  647.845985\]  vhost\_vdpa\_process\_iotlb\_msg+0xf0/0x90b \[vhost\_vdpa\]
\[  647.847235\]  ? \_raw\_spin\_unlock+0x15/0x30
\[  647.848181\]  ? \_copy\_from\_iter+0x8c/0x580
\[  647.849137\]  vhost\_chr\_write\_iter+0xb3/0x430 \[vhost\]
\[  647.850126\]  vfs\_write+0x1e4/0x3a0
\[  647.850897\]  ksys\_write+0x53/0xd0
\[  647.851688\]  do\_syscall\_64+0x3a/0x90
\[  647.852508\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  647.853457\] RIP: 0033:0x7f7734ef9f4f
\[  647.854408\] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 76 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c8
\[  647.857217\] RSP: 002b:00007f772ec8f040 EFLAGS: 00000293 ORIG\_RAX: 0000000000000001
\[  647.858486\] RAX: ffffffffffffffda RBX: 00000000fef00000 RCX: 00007f7734ef9f4f
\[  647.859713\] RDX: 0000000000000048 RSI: 00007f772ec8f090 RDI: 0000000000000010
\[  647.860942\] RBP: 00007f772ec8f1a0 R08: 0000000000000000 R09: 0000000000000000
\[  647.862206\] R10: 0000000000000001 R11: 0000000000000293 R12: 0000000000000010
\[  647.863446\] R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff01100000
\[  647.864692\]  \</TASK\>
\[  647.865458\] Modules linked in: rpcsec\_gss\_krb5 auth\_rpcgss nfsv4 dns\_resolver nfs lockd grace fscache netfs v\]
\[  647.874688\] ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 26b7400c89b81e2f6de4f224ba1fdf06f293de31; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< e794070af224ade46db368271896b2685ff4f96b (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-50851. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50851.md
Affected: Linux >= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, < 26b7400c89b81e2f6de4f224ba1fdf06f293de31; >= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, < 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d; >= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, < e794070af224ade46db368271896b2685ff4f96b; Linux 5.7
Fixed in: Linux 26b7400c89b81e2f6de4f224ba1fdf06f293de31, Linux 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d

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-50851 being exploited?

There is no confirmed exploitation: CVE-2022-50851 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-50851?

It has no CVSS score yet. Unknown.

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

Linux \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 26b7400c89b81e2f6de4f224ba1fdf06f293de31; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d; \>= 4c8cf31885f69e86be0b5b9e6677a26797365e1d, \< e794070af224ade46db368271896b2685ff4f96b; Linux 5.7.

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

Yes. Fixed in Linux 26b7400c89b81e2f6de4f224ba1fdf06f293de31, Linux 8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d. No fix listed yet: follow the vendor advisory.

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

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/26b7400c89b81e2f6de4f224ba1fdf06f293de31>
- other: <https://git.kernel.org/stable/c/8b258a31c2e8d4d4e42be70a7c6ca35a5afbff0d>
- other: <https://git.kernel.org/stable/c/e794070af224ade46db368271896b2685ff4f96b>

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

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