CVE-2023-5158: Possible dos from guest to host invringh_kiov_advance in vhost driver at drivers/vhost/vringh.c

Published Sep 25, 2023
·
Updated

A flaw was found in vringhkiovadvance in drivers/vhost/vringh.c in the host side of a virtio ring in the Linux Kernel. This issue may result in a denial of service from guest to host via zero length descriptor.

Other sources

A possible DOS from guest to host via zero length descriptor. This is because currently the vringhkiovadvance() did something like this:

while (len && iov->i < iov->used) { ... if (!iov->iov[iov->i].iovlen) { ... iov->i++; } }

When the length of the descriptor is zero, we miss the chance to advance iov->i.

The fix is to revert b8c06ad4d67db56ed6bdfb685c134da74e92a2c7 ("vringh: implement vringhkiovadvance()").

— Red Hat

Affected Software

3 affected componentsFixes available
redhat/kernel<5.13
5.13
Linux Linux kernel<=5.12.19
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Sep 25, 2023
Data Sourced
via Red Hat·09:20 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·03:55 PM
Data Sourced
via MITRE·03:55 PM
DescriptionSeverityWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:28 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·02:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2023-5158?

CVE-2023-5158 is a vulnerability that affects the vringh_kiov_advance function in the host side of a virtio ring in the Linux Kernel.

2

How severe is CVE-2023-5158?

CVE-2023-5158 has a severity rating of 6.5, which is considered medium.

3

What is the affected software of CVE-2023-5158?

The affected software of CVE-2023-5158 is the Linux Kernel version up to but excluding 5.13.

4

What is the impact of CVE-2023-5158?

CVE-2023-5158 may result in a denial of service from guest to host via zero length descriptor.

5

How can the CVE-2023-5158 vulnerability be fixed?

To fix the CVE-2023-5158 vulnerability, update the Linux Kernel to version 5.13 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203