# CVE-2026-99503: ata: sata_fsl: Fix use-after-free of host_priv on probe() failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2026-11-19T14:43:52.787Z
- Modified: 2026-11-23T08:17:52.727Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4a46b2f5dce02539e88a300800812bd24a45e097 before 1d90d6d679cefe20d223c2f196ffd9fea297be1f; from adf098e2a8a1e1fc075d6a5ba2edd13cf7189082 before 4ef0a14d952dd4475e2016475b1dda73f63c5dae; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 6c69c0754f9052a9369c154530ca4855f9bcdca9; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 3e00737e95485b2a35bf5f515f56a4c416d5971f; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 59eac6863eede5957bfd8872633608431ac42d3c; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 9d9d62dfef3609f664c60f6fe61528a2e876a64b; from 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 before 70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3; cdcd80292106df5cda325426e96495503e41f947; 91ba94d3f7afca195b224f77a72044fbde1389ce; 325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1; 0769449b0a5eabc3545337217ae690e46673e73a; and 9 more (not affected: before 5.16; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/1d90d6d679cefe20d223c2f196ffd9fea297be1f>
- <https://git.kernel.org/stable/c/4ef0a14d952dd4475e2016475b1dda73f63c5dae>
- <https://git.kernel.org/stable/c/6c69c0754f9052a9369c154530ca4855f9bcdca9>
- <https://git.kernel.org/stable/c/57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5>
- <https://git.kernel.org/stable/c/3e00737e95485b2a35bf5f515f56a4c416d5971f>
- <https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c>
- <https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b>
- <https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3>

## Sources

- CVE List: [CVE-2026-99503](https://www.cve.org/CVERecord?id=CVE-2026-99503), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99503](https://nvd.nist.gov/vuln/detail/CVE-2026-99503), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99503 · Whole record: https://cve.day/CVE-2026-99503.json · Rebuilt by cve.day 2026-11-25T22:59:52.095Z
