{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-93049",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-93049"
  ],
  "published": "2026-09-17T16:10:40Z",
  "summary": "mtd: mtdswap: Avoid freeing registered blktrans device twice",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: mtdswap: Avoid freeing registered blktrans device twice\n\nIn mtdswap_add_mtd(), debugfs setup failure after successful blktrans\nregistration can free mbd_dev twice.\n\nadd_mtd_blktrans_dev() initializes the blktrans device reference and\npublishes the disk. Once that succeeds, del_mtd_blktrans_dev() tears the\ndisk down and drops the blktrans reference; when that reference reaches\nzero, blktrans_dev_release() frees the mtd_blktrans_dev.\n\nThe debugfs failure path called del_mtd_blktrans_dev(mbd_dev), then fell\nthrough the common cleanup label and called kfree(mbd_dev) again. Clear\nthe local pointer after deregistration so the common cleanup can still\nrelease the mtdswap state without freeing the blktrans object twice.\n\nThis issue was found by a static analysis checker and confirmed by\nmanual source review.",
  "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.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-93049"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ecadb9137aeaa0615183f8d23eabea2b45c862f1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/eec130fc9ffbbd08a5d5432683122b79aca2a726"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d5086911d532b82ca070d944aa08ddde00baefe4"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0ce48c6ddea1a8e675a2eb0221b62a9950788f3c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a82d93fcfdfd26af17049c34319dfdd079cd1901"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/5c349c533e72af2313c3be0f80a24d7407fa4777"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/37be7bc2c2d09c18e939da20224405864a0090b9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/779aa4c66a96bf43d2d62982ea1a9096a9128d87"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-17T16:10:40Z"
  }
}
