Menu

Star on GitHub · 3.2k

CVE-2022-48862

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: vhost: fix hung thread due to erroneous iotlb entries In vhost_iotlb_add_range_ctx(), range size can overflow to 0 when start i…

Published Jul 16, 2024CWE-835EPSS 0.21%

Overview

CVE-2022-48862 is a medium-severity vulnerability. It was published on July 16, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

vhost: fix hung thread due to erroneous iotlb entries

In vhost_iotlb_add_range_ctx(), range size can overflow to 0 when

start is 0 and last is ULONG_MAX. One instance where it can happen

is when userspace sends an IOTLB message with iova=size=uaddr=0

(vhost_process_iotlb_msg). So, an entry with size = 0, start = 0,

last = ULONG_MAX ends up in the iotlb. Next time a packet is sent,

iotlb_access_ok() loops indefinitely due to that erroneous entry.

Call Trace:

<TASK>

iotlb_access_ok+0x21b/0x3e0 drivers/vhost/vhost.c:1340

vq_meta_prefetch+0xbc/0x280 drivers/vhost/vhost.c:1366

vhost_transport_do_send_pkt+0xe0/0xfd0 drivers/vhost/vsock.c:104

vhost_worker+0x23d/0x3d0 drivers/vhost/vhost.c:372

kthread+0x2e9/0x3a0 kernel/kthread.c:377

ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

</TASK>

Reported by syzbot at:

https://syzkaller.appspot.com/bug?extid=0abd373e2e50d704db87

To fix this, do two things:

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-48862?

CVE-2022-48862 is a medium-severity vulnerability. It was published on July 16, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-48862?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-48862?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-48862?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-48862 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all