{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b"
            },
            {
              "fixed": "177ee901aa2bab02e7f1f8edbb814fd5e386ed62"
            },
            {
              "fixed": "a80c33488e0bbe642ed803b13a4ac8078a70b507"
            },
            {
              "fixed": "f620c40ea6862feed84deb105568b21ec53a7830"
            },
            {
              "fixed": "894f98e73983f37354214a89a3a7fd35bf9e3072"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "f92b16b815efe8207090a9b5a767618fd89542ca"
            },
            {
              "last_affected": "d2bbfac82b7942afc5d8e564d7087835280df495"
            },
            {
              "last_affected": "a88e13d9a092fbb772d380944b44eb549ef131fe"
            },
            {
              "last_affected": "dd807a784fd36f4136516d5858efb6473dda422c"
            },
            {
              "last_affected": "47cb14192bcbba3f15b1c3561e05e084e56fdef6"
            },
            {
              "last_affected": "6b1c41a0f7183702abb7a104c6c7e196ad69a6b3"
            },
            {
              "last_affected": "9037306163a6ba5587e4b5ca511ac7be4fb7295b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3.16.60"
            },
            {
              "fixed": "3.17"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3.18.108"
            },
            {
              "fixed": "3.19"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.1.52"
            },
            {
              "fixed": "4.2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.4.131"
            },
            {
              "fixed": "4.5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.9.98"
            },
            {
              "fixed": "4.10"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.14.39"
            },
            {
              "fixed": "4.15"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.16.7"
            },
            {
              "fixed": "4.17"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.17.0"
            },
            {
              "fixed": "6.12.111"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.53"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97995.json"
  },
  "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 \u0026portdev-\u003ecpkt 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.",
  "id": "CVE-2026-97995",
  "modified": "2026-09-27T03:30:51.069858384Z",
  "published": "2026-09-25T10:23:26.307Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/177ee901aa2bab02e7f1f8edbb814fd5e386ed62"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/894f98e73983f37354214a89a3a7fd35bf9e3072"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a80c33488e0bbe642ed803b13a4ac8078a70b507"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f620c40ea6862feed84deb105568b21ec53a7830"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97995.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97995"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "virtio_console: do not free control-out buffers on remove"
}