{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99521",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99521"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "rapidio: mport_cdev: fix use-after-free in mport_mm_close()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: mport_cdev: fix use-after-free in mport_mm_close()\n\nA use-after-free vulnerability was identified in mport_mm_close() in\ndrivers/rapidio/devices/rio_mport_cdev.c, identical to the pattern\npreviously addressed in dma_req_free().\n\nThis is observable from userspace when an application creates an mmap\nmapping via the RapidIO character device and subsequently unmaps it (or\nterminates, triggering exit_mmap()).  During munmap, mport_mm_close() is\ninvoked and drops the mapping reference via kref_put().\n\nIf kref_put() drops the last reference, mport_release_mapping() is called,\nwhich frees the underlying rio_mport_mapping structure.  The subsequent\nmutex_unlock() then dereferences map->md to unlock buf_mutex, leading to a\nuse-after-free:\n\n   mport_mm_close()\n     -> mutex_lock(&map->md->buf_mutex);\n     ...\n     -> kref_put(&map->ref, mport_release_mapping); /* map is freed */\n     -> mutex_unlock(&map->md->buf_mutex);          /* UAF: map used */\n\nFix this by caching map->md before kref_put() and using the cached pointer\nfor mutex unlocking, ensuring that freed memory is not accessed.",
  "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.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99521"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4fd7df6e7040fad99fee8989783748afefcee6ce"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1c66d8e8fc67f2471675e361b16200d419e40ef3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/40f37f710ef220286600bae75456977f3629629f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3dc409ad1865d68f884611f7503c409071499067"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/df3008607f2c3343f7ad34001af656a185c123ee"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z"
  }
}
