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

vhost: fix vhost_get_avail_idx for a non empty ring

vhost_get_avail_idx is supposed to report whether it has updated
vq->avail_idx. Instead, it returns whether all entries have been
consumed, which is usually the same. But not always - in
drivers/vhost/net.c and when mergeable buffers have been enabled, the
driver checks whether the combined entries are big enough to store an
incoming packet. If not, the driver re-enables notifications with
available entries still in the ring. The incorrect return value from
vhost_get_avail_idx propagates through vhost_enable_notify and causes
the host to livelock if the guest is not making progress, as vhost will
immediately disable notifications and retry using the available entries.

This goes back to commit d3bb267bbdcb ("vhost: cache avail index in
vhost_enable_notify()") which changed vhost_enable_notify() to compare
the freshly read avail index against vq->last_avail_idx instead of the
previously cached vq->avail_idx. Commit 7ad472397667 ("vhost: move
smp_rmb() into vhost_get_avail_idx()") then carried over the same
comparison when refactoring vhost_enable_notify() to call the unified
vhost_get_avail_idx().

The obvious fix is to make vhost_get_avail_idx do what the comment
says it does and report whether new entries have been added.
Published: 2026-08-15
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel vhost subsystem contains a logic flaw where the function vhost_get_avail_idx reports whether all ring entries have been consumed instead of indicating that new entries have been added. This is a failure to properly verify assignment or comparison, identified as CWE-253. This incorrect return value propagates to vhost_enable_notify and causes the host to repeatedly disable and re‑enable notifications when a guest VM is idle or unable to progress, resulting in a livelock that stalls packet processing for all virtual machines sharing that vhost instance.

Affected Systems

Any Linux host running a kernel prior to the inclusion of commit d3bb267b in the vhost/net driver is affected. Systems enabling mergeable buffers for vhost_net are particularly vulnerable, as the flaw is triggered when the driver cannot store an incoming packet in the combined ring entries.

Risk and Exploitability

The most likely attack vector is a guest virtual machine communicating over a vhost_net interface or being intentionally idled to trigger the host to immediately disable notifications. The underlying flaw is a CWE-253 misverified comparison. Based on the description, an attacker can manipulate guest traffic or idle the guest to induce the livelock, causing a local denial of service that impacts all VMs on the host. The CVSS score of 7.4 indicates high severity, while an EPSS score of < 1% indicates a very low but nonzero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, suggesting no widespread exploitation has been observed.

Generated by OpenCVE AI on August 22, 2026 at 03:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes commit d3bb267b or later to fix the vhost_get_avail_idx logic
  • Reboot the host system after updating the kernel to load the patched version
  • Disable mergeable buffers in vhost_net configuration (for example, set mergeable_buffers=0) as a temporary measure to avoid the livelock scenario
  • Monitor kernel releases for additional fixes and apply them promptly
  • Apply a patch that specifically addresses the CWE-253 flaw in vhost_get_avail_idx logic

Generated by OpenCVE AI on August 22, 2026 at 03:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 01:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Wed, 19 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-253
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Mon, 17 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-730

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H'}


Sat, 15 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-730

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vhost: fix vhost_get_avail_idx for a non empty ring vhost_get_avail_idx is supposed to report whether it has updated vq->avail_idx. Instead, it returns whether all entries have been consumed, which is usually the same. But not always - in drivers/vhost/net.c and when mergeable buffers have been enabled, the driver checks whether the combined entries are big enough to store an incoming packet. If not, the driver re-enables notifications with available entries still in the ring. The incorrect return value from vhost_get_avail_idx propagates through vhost_enable_notify and causes the host to livelock if the guest is not making progress, as vhost will immediately disable notifications and retry using the available entries. This goes back to commit d3bb267bbdcb ("vhost: cache avail index in vhost_enable_notify()") which changed vhost_enable_notify() to compare the freshly read avail index against vq->last_avail_idx instead of the previously cached vq->avail_idx. Commit 7ad472397667 ("vhost: move smp_rmb() into vhost_get_avail_idx()") then carried over the same comparison when refactoring vhost_enable_notify() to call the unified vhost_get_avail_idx(). The obvious fix is to make vhost_get_avail_idx do what the comment says it does and report whether new entries have been added.
Title vhost: fix vhost_get_avail_idx for a non empty ring
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:46:17.196Z

Reserved: 2026-08-15T05:44:03.887Z

Link: CVE-2026-74356

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:37.007

Modified: 2026-08-17T06:19:30.287

Link: CVE-2026-74356

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74356 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T03:30:16Z

Weaknesses
  • CWE-253

    Incorrect Check of Function Return Value