{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-97995",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-97995"
  ],
  "published": "2026-09-25T10:24:31Z",
  "summary": "virtio_console: do not free control-out buffers on remove",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_console: do not free control-out buffers on remove\n\n__send_control_msg() publishes &portdev->cpkt as the control-out\nvirtqueue cookie. remove_vqs() walks every virtqueue and passes leftover\ncookies to free_buf(), which treats them as struct port_buffer and\nreads sgpages.\n\nIf a control message is still on c_ovq when the device is unbound,\nfree_buf() reads past the ports_device object.\n\nKASAN reported slab-out-of-bounds in free_buf():\n\n\tfree_buf\n\tremove_vqs\n\tvirtcons_remove\n\tunbind_store\n\nThe object was the ports_device allocated in virtcons_probe().\n\nDrain c_ovq without freeing. The packet lives in portdev and is released\nwith it.",
  "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.189",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-97995"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b1f39c2a676698cc64c8e105e08b25111a112ec6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e03522a990cd2e0f1a736eaa349a9df9ab8541c3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8f6cfc3eca79b8e108d0823756101e2f4f9d811f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2e40c69b9c3448b9c6609cd02013da593b2e123b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-03T11:04:09Z"
  }
}
