CVE-2023-5158
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-5158 is a vulnerability discovered in the Linux Kernel's virtio ring implementation, specifically in the vringh_kiov_advance function within drivers/vhost/vringh.c. The flaw was found in the host side of a virtio ring and was publicly disclosed on September 25, 2023. This vulnerability affects Linux Kernel versions up to 5.12.19 (NVD).

Technical details

The vulnerability stems from improper handling of iov buffers in the vringh_kiov_advance() function. The issue occurs when processing zero-length descriptors, where the code fails to properly advance the iov->i counter in certain conditions. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H by NIST, while Red Hat assessed it with a score of 6.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H (NVD).

Impact

The vulnerability can result in a denial of service condition, allowing a guest virtual machine to crash the host system through the exploitation of zero-length descriptors. This poses a significant risk in virtualized environments where guest isolation is crucial (Ubuntu Security).

Mitigation and workarounds

A fix has been developed and merged upstream in the Linux kernel. The solution involves modifying the vringh_iov_xfer() function rather than completely reverting the original implementation. The patch has been merged into the mainline kernel and backported to stable branches (Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt-addons
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-core
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • linux-ibm-5.15
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management