{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99503",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99503"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "ata: sata_fsl: Fix use-after-free of host_priv on probe() failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nata: sata_fsl: Fix use-after-free of host_priv on probe() failure\n\nsata_fsl_host_stop() releases hcr_base and host_priv:\n\n\tstatic void sata_fsl_host_stop(struct ata_host *host)\n\t{\n\t\tstruct sata_fsl_host_priv *host_priv = host->private_data;\n\n\t\tiounmap(host_priv->hcr_base);\n\t\tkfree(host_priv);\n\t}\n\n->host_stop() is called by the driver core through the ata_host_stop()\ndevres action which ata_host_start() registers, so it is called both when\nthe device is unbound and when probe() fails after the host has been\nstarted.\n\nThe error_exit_with_cleanup label of sata_fsl_probe() releases hcr_base\nand host_priv as well, and it is reachable from the two\ndevice_create_file() calls which are done after the host has been\nactivated. In that case sata_fsl_host_stop() runs on an already freed\nhost_priv, resulting in a use-after-free and a double iounmap()/kfree().\n\nAdd a separate error label for the failures happening after the host has\nbeen activated, which only detaches the host and leaves hcr_base and\nhost_priv to sata_fsl_host_stop().\n\nNote that ata_host_detach() is dropped from error_exit_with_cleanup, as\nthat label is now only reachable while host is still NULL.",
  "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-99503"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1d90d6d679cefe20d223c2f196ffd9fea297be1f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4ef0a14d952dd4475e2016475b1dda73f63c5dae"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6c69c0754f9052a9369c154530ca4855f9bcdca9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3e00737e95485b2a35bf5f515f56a4c416d5971f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z"
  }
}
