What’s Vulnerable › Vulnerabilities
CVE-2026-99503: ata: sata_fsl: Fix use-after-free of host_priv on probe() failure
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-19 · updated 2026-11-23
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.
Affected products
- Linux: from 5.10.84 before 5.10.275; from 5.15.7 before 5.15.226; from 4.4.294 before 4.5; from 4.9.292 before 4.10; from 4.14.257 before 4.15; from 4.19.220 before 4.20 — fixed in 5.10.275, 5.15.226, 4.5, 4.10, 4.15, 4.20
How to fix
Upgrade to a fixed version: Linux 5.10.275, 5.15.226, 4.5, 4.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1d90d6d679cefe20d223c2f196ffd9fea297be1f
- https://git.kernel.org/stable/c/3e00737e95485b2a35bf5f515f56a4c416d5971f
- https://git.kernel.org/stable/c/4ef0a14d952dd4475e2016475b1dda73f63c5dae
- https://git.kernel.org/stable/c/57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5
- https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c
- https://git.kernel.org/stable/c/6c69c0754f9052a9369c154530ca4855f9bcdca9
- https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3
- https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b
Get alerted when CVE-2026-99503 or the next vulnerability affects your stack