Skip to content
Heist/ feed
High

virtio-fs: avoid double-free on failed queue setup

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtio_fs_setup_vqs() allocates fs->vqs and fs->mq_map before calling virtio_find_vqs(). If virtio_find_vqs() fails, the error path frees both pointers and returns an error to virtio_fs_probe(). virtio_fs_probe() then drops the last kobject reference, and virtio_fs_ktype_release() frees fs->vqs and fs->mq_map again. This leaves dangling pointers in struct virtio_fs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() error path so that the later kobject release sees an uninitialized state and kfree(NULL) becomes harmless. This can be reproduced when a broken virtio-fs device advertises more request queues than the transport actually provides. In that case virtio_find_vqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup sequence.

Announced Group revision 1
Original source ↗

CVE-2026-93827

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-93827

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "a8f62f50b4e4ea92a938fca2ec1bd108d7f210e9",
        "lessThan": "3fbc5ee776fefbc6ea34d2518f1f5f90aa2e1dad",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a8f62f50b4e4ea92a938fca2ec1bd108d7f210e9",
        "lessThan": "20ef4739b329bb09cff11dd2458795a50674658e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a8f62f50b4e4ea92a938fca2ec1bd108d7f210e9",
        "lessThan": "6af3330ec5d5fb8c06c04eb520a71cf73ea5a765",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/fuse/virtio_fs.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.111",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/fuse/virtio_fs.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-93827

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#2036 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement