{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99216",
  "modified": "2026-11-01T05:30:01Z",
  "upstream": [
    "CVE-2026-99216"
  ],
  "published": "2026-10-28T11:36:32Z",
  "summary": "Drivers: hv: Don't reset VMBus connection state on error/exit paths",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nDrivers: hv: Don't reset VMBus connection state on error/exit paths\n\nIn two places, current code forces vmbus_connection.conn_state to\nDISCONNECTED prior to calling vmbus_disconnect(). But vmbus_disconnect()\ncalls vmbus_initiate_unload(), which unloads the VMBus connection\nonly if the conn_state is CONNECTED. Consequently, the connection\nremains and the Hyper-V host might continue to send messages or post\nVMBus interrupts.\n\nThe problem was introduced in commit 74347a99e73ae (\"x86/Hyper-V:\nUnload vmbus channel in hv panic callback\"), in that\nvmbus_initiate_unload() started checking the current connection\nstate before doing the unload. This commit removed some occurrences\nwhere conn_state was forced to DISCONNECTED, but these two remained,\napparently due to an oversight at the time.\n\nFix this by not forcing conn_state to DISCONNECTED during VMBus exit,\nor if a failure occurs when establishing the connection in the first\nplace. Whatever value conn_state has at the time is then read by\nvmbus_initiate_unload() to determine if there is a connection to\nbe unloaded.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.191",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99216"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2939215d57bc8e4189290544fca78f3809ac3ef8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a0ae955ba9a5067a157ebb8defb4a0a9cb1fc304"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/deef3ab5129ae4c45662c957cdab3739eb047fb1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2e5ffbf1e41abbf6e02ce28115107938f55ff646"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2732210132f92aca0622b5134027990a809279d5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f47ce27af80b87cc684d5c12b65506af498ac7e5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3195546a377c2d8d176d837e8baad5ce15d11195"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ec31dc39e835ccde0930daccece8c492d28282fc"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-31T12:58:00Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.4,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The attacker-controlled CHANNELMSG_VERSION_RESPONSE reaches vmbus_connect() through sysvec_hyperv_callback, vmbus_isr(), vmbus_on_msg_dpc(), and vmbus_onversion_response(); this is local Hyper-V IPC, not a network or physical protocol.\nAC:L - A backend can reject versions through 5.2, accept 5.1 in an isolation guest, then post rescind messages while the patched vmbus_connect() cleanup destroys its queues. The same backend controls both the state setup and racing messages.\nPR:N - vmbus_onversion_response() accepts the Hyper-V parent's VERSION_RESPONSE from the SynIC message page without guest credentials, capabilities, or authentication; the backend needs no privilege inside the guest.\nUI:N - hv_acpi_init() automatically calls vmbus_bus_init(), vmbus_alloc_synic_and_connect(), and vmbus_connect() during driver initialization; the backend supplies the responses without any victim action.\nS:U - The stale rescind_work_queue/work_queue accesses and resulting corruption occur within the same guest kernel that contains the vulnerable VMBus driver; no guest-to-host escape or IOMMU boundary bypass is produced.\nC:H - Without CHANNELMSG_UNLOAD, __vmbus_on_msg_dpc() can queue a rescind through a workqueue already RCU-freed by vmbus_disconnect(); this kernel heap use-after-free permits object reuse and guest-kernel memory disclosure.\nI:H - queue_work() dereferences the freed workqueue's cpu_pwq and updates pool counters and work-list state, so reuse of that storage can turn continued host messages into kernel heap writes and control-flow corruption.\nA:H - Continued rescind or offer messages can make __queue_work() access a destroyed or freed workqueue before hv_synic_cleanup() disables the SynIC, causing a warning, invalid-pointer fault, kernel oops, or panic."
    }
  }
}
