FKIE_CVE-2026-99503

Vulnerability from fkie_nvd - Published: 2026-11-19 15:18 - Updated: 2026-11-23 08:17
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: ata: sata_fsl: Fix use-after-free of host_priv on probe() failure sata_fsl_host_stop() releases hcr_base and host_priv: static void sata_fsl_host_stop(struct ata_host *host) { struct sata_fsl_host_priv *host_priv = host->private_data; iounmap(host_priv->hcr_base); kfree(host_priv); } ->host_stop() is called by the driver core through the ata_host_stop() devres action which ata_host_start() registers, so it is called both when the device is unbound and when probe() fails after the host has been started. The error_exit_with_cleanup label of sata_fsl_probe() releases hcr_base and host_priv as well, and it is reachable from the two device_create_file() calls which are done after the host has been activated. In that case sata_fsl_host_stop() runs on an already freed host_priv, resulting in a use-after-free and a double iounmap()/kfree(). Add a separate error label for the failures happening after the host has been activated, which only detaches the host and leaves hcr_base and host_priv to sata_fsl_host_stop(). Note that ata_host_detach() is dropped from error_exit_with_cleanup, as that label is now only reachable while host is still NULL.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/ata/sata_fsl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1d90d6d679cefe20d223c2f196ffd9fea297be1f",
              "status": "affected",
              "version": "4a46b2f5dce02539e88a300800812bd24a45e097",
              "versionType": "git"
            },
            {
              "lessThan": "4ef0a14d952dd4475e2016475b1dda73f63c5dae",
              "status": "affected",
              "version": "adf098e2a8a1e1fc075d6a5ba2edd13cf7189082",
              "versionType": "git"
            },
            {
              "lessThan": "6c69c0754f9052a9369c154530ca4855f9bcdca9",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "lessThan": "57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "lessThan": "3e00737e95485b2a35bf5f515f56a4c416d5971f",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "lessThan": "59eac6863eede5957bfd8872633608431ac42d3c",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "lessThan": "9d9d62dfef3609f664c60f6fe61528a2e876a64b",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "lessThan": "70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3",
              "status": "affected",
              "version": "6c8ad7e8cf29eb55836e7a0215f967746ab2b504",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "cdcd80292106df5cda325426e96495503e41f947",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "91ba94d3f7afca195b224f77a72044fbde1389ce",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "0769449b0a5eabc3545337217ae690e46673e73a",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "77393806c76b6b44f1c44bd957788c8bd9152c45",
              "versionType": "git"
            },
            {
              "lessThan": "5.10.275",
              "status": "affected",
              "version": "5.10.84",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.226",
              "status": "affected",
              "version": "5.15.7",
              "versionType": "semver"
            },
            {
              "lessThan": "4.5",
              "status": "affected",
              "version": "4.4.294",
              "versionType": "semver"
            },
            {
              "lessThan": "4.10",
              "status": "affected",
              "version": "4.9.292",
              "versionType": "semver"
            },
            {
              "lessThan": "4.15",
              "status": "affected",
              "version": "4.14.257",
              "versionType": "semver"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.220",
              "versionType": "semver"
            },
            {
              "lessThan": "5.5",
              "status": "affected",
              "version": "5.4.164",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/ata/sata_fsl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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-\u003eprivate_data;\n\n\t\tiounmap(host_priv-\u003ehcr_base);\n\t\tkfree(host_priv);\n\t}\n\n-\u003ehost_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."
    }
  ],
  "id": "CVE-2026-99503",
  "lastModified": "2026-11-23T08:17:52.727",
  "metrics": {},
  "published": "2026-11-19T15:18:05.460",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/1d90d6d679cefe20d223c2f196ffd9fea297be1f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/3e00737e95485b2a35bf5f515f56a4c416d5971f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/4ef0a14d952dd4475e2016475b1dda73f63c5dae"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/6c69c0754f9052a9369c154530ca4855f9bcdca9"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…