CVE-2026-99686 (GCVE-0-2026-99686)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:50 – Updated: 2026-11-22 11:09
VLAI
Title
vhost: fix used ring index wrap in vhost_add_used_n_in_order
Summary
In the Linux kernel, the following vulnerability has been resolved: vhost: fix used ring index wrap in vhost_add_used_n_in_order vhost_add_used_n_in_order() advances start by nheads[i] but wraps it with a single subtraction. If start + nheads[i] >= 2 * vq->num, start can remain outside the ring. With used-ring logging enabled, start > vq->num makes (vq->num - start) underflow. log_write() then sets bits beyond the dirty-log bitmap, potentially corrupting adjacent userspace memory. This is reachable on the vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach VHOST_NET_BATCH (64), triggering the issue with a 32-entry ring. Wrap start with a mask to keep it within the ring. VHOST_SET_VRING_NUM enforces a nonzero power-of-two ring size, allowing start to be wrapped using & (vq->num - 1).
Impacted products
Vendor Product Version
Linux Linux Affected: 67a873df0c410915275f735fedb401b9637d6faf , < ebdc350cfb1740b6411420482e58a35cc4761628 (git)
Affected: 67a873df0c410915275f735fedb401b9637d6faf , < 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 (git)
Affected: 67a873df0c410915275f735fedb401b9637d6faf , < e244725e86be02cd85cb878b3ed8570eba2e4be1 (git)
Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.18.64 , ≤ 6.18.* (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/vhost/vhost.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ebdc350cfb1740b6411420482e58a35cc4761628",
              "status": "affected",
              "version": "67a873df0c410915275f735fedb401b9637d6faf",
              "versionType": "git"
            },
            {
              "lessThan": "308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0",
              "status": "affected",
              "version": "67a873df0c410915275f735fedb401b9637d6faf",
              "versionType": "git"
            },
            {
              "lessThan": "e244725e86be02cd85cb878b3ed8570eba2e4be1",
              "status": "affected",
              "version": "67a873df0c410915275f735fedb401b9637d6faf",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/vhost/vhost.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.64",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: fix used ring index wrap in vhost_add_used_n_in_order\n\nvhost_add_used_n_in_order() advances start by nheads[i] but wraps it\nwith a single subtraction.  If start + nheads[i] \u003e= 2 * vq-\u003enum, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start \u003e vq-\u003enum makes (vq-\u003enum - start)\nunderflow.  log_write() then sets bits beyond the dirty-log bitmap,\npotentially corrupting adjacent userspace memory.  This is reachable on\nthe vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach\nVHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.\n\nWrap start with a mask to keep it within the ring.  VHOST_SET_VRING_NUM\nenforces a nonzero power-of-two ring size, allowing start to be wrapped\nusing \u0026 (vq-\u003enum - 1)."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Guest TX descriptors reach vhost_add_used_n_in_order through handle_tx_kick, handle_tx_copy, and vhost_tx_batch, which stores done_idx in vq-\u003enheads[0] and calls vhost_net_signal_used with count 1. That batch count is what wraps start; a remote peer never supplies nheads or the used-ring index.\nAC:H - The guest can accept VIRTIO_F_IN_ORDER, select a 32-entry queue that QEMU programs with VHOST_SET_VRING_NUM, and kick a 64-buffer TX batch so one subtraction leaves start above vq-\u003enum. log_write runs only if vq-\u003elog_used is set, and only host userspace sets VHOST_VRING_F_LOG on VHOST_SET_VRING_ADDR; the guest cannot.\nPR:L - The guest does not pass vhost_dev_check_owner or open /dev/vhost-net. QEMU owns the device and issues the ioctls; the guest only publishes the TX avail ring and kicks it. That is control of a tenant VM\u0027s virtio-net queue, not host root in the init namespace.\nUI:N - The guest posts the TX buffers and fires the kick eventfd that wakes handle_tx_kick. No host user has to mount media or open an attacker-supplied file; used-ring logging is host state, not a victim action on attacker data.\nS:C - vhost_put_used writes one in-range used element before start advances, so the guest used ring is not the overflow. With vq-\u003elog_used, log_used feeds the underflow length to log_write and set_bit_to_user, which sets bits past the host dirty-log bitmap in the QEMU process.\nC:H - For num=32 and start left at 35, (vq-\u003enum - start) is an unsigned underflow and log_write is called with length 34359738344. set_bit_to_user then walks vq-\u003elog_base past the bitmap, a VMM heap smash that can disclose host memory held by QEMU rather than a few used-ring bytes.\nI:H - The same log_write loop is an out-of-bounds write: set_bit_to_user sets every bit from the used-ring log page onward until pin_user_pages_fast fails, turning adjacent QEMU heap bytes into 0xFF. That is host-process corruption, not an in-bounds used-ring update.\nA:H - The multi-gigabyte log_write loop runs inside the vhost worker on the TX kick path and ignores log_used\u0027s error, so it both stalls the virtqueue and smashes the QEMU address space that owns the vhost mm until the VMM crashes and the VM is gone."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:09:44.198Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628"
        },
        {
          "url": "https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"
        },
        {
          "url": "https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1"
        }
      ],
      "title": "vhost: fix used ring index wrap in vhost_add_used_n_in_order",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99686",
    "datePublished": "2026-11-20T05:50:31.888Z",
    "dateReserved": "2026-09-25T10:25:14.429Z",
    "dateUpdated": "2026-11-22T11:09:44.198Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99686",
      "date": "2026-11-24",
      "epss": "0.00152",
      "percentile": "0.04284"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-24T01:37:15.000Z",
      "cve": "CVE-2026-99686",
      "id": "msrc_CVE-2026-99686",
      "initial_release_date": "2026-11-20T18:10:42.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "vhost: fix used ring index wrap in vhost_add_used_n_in_order",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99686.json",
      "version": "3"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/vhost/vhost.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "ebdc350cfb1740b6411420482e58a35cc4761628",
                    "status": "affected",
                    "version": "67a873df0c410915275f735fedb401b9637d6faf",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0",
                    "status": "affected",
                    "version": "67a873df0c410915275f735fedb401b9637d6faf",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e244725e86be02cd85cb878b3ed8570eba2e4be1",
                    "status": "affected",
                    "version": "67a873df0c410915275f735fedb401b9637d6faf",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/vhost/vhost.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.17"
                  },
                  {
                    "lessThan": "6.17",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.64",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: fix used ring index wrap in vhost_add_used_n_in_order\n\nvhost_add_used_n_in_order() advances start by nheads[i] but wraps it\nwith a single subtraction.  If start + nheads[i] \u003e= 2 * vq-\u003enum, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start \u003e vq-\u003enum makes (vq-\u003enum - start)\nunderflow.  log_write() then sets bits beyond the dirty-log bitmap,\npotentially corrupting adjacent userspace memory.  This is reachable on\nthe vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach\nVHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.\n\nWrap start with a mask to keep it within the ring.  VHOST_SET_VRING_NUM\nenforces a nonzero power-of-two ring size, allowing start to be wrapped\nusing \u0026 (vq-\u003enum - 1)."
          }
        ],
        "id": "CVE-2026-99686",
        "lastModified": "2026-11-22T11:17:06.663",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.1,
              "impactScore": 6.0,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T06:18:03.620",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-23T15:51:07+00:00",
      "cve": "CVE-2026-99686",
      "id": "CVE-2026-99686",
      "initial_release_date": "2026-11-20T05:50:31.888000+00:00",
      "product_status:known_affected": "14",
      "product_status:known_not_affected": "266",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: vhost: memory corruption via improper ring index calculation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99686.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…