{"id":"CVE-2026-99503","state":"PUBLISHED","title":"ata: sata_fsl: Fix use-after-free of host_priv on probe() failure","description":"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.","publishedAt":"2026-11-19T14:43:52.787Z","updatedAt":"2026-11-19T14:43:52.787Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"3e00737e95485b2a35bf5f515f56a4c416d5971f","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"59eac6863eede5957bfd8872633608431ac42d3c","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"9d9d62dfef3609f664c60f6fe61528a2e876a64b","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3","versionType":"git"},{"version":"cdcd80292106df5cda325426e96495503e41f947","status":"affected","versionType":"git"},{"version":"91ba94d3f7afca195b224f77a72044fbde1389ce","status":"affected","versionType":"git"},{"version":"325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1","status":"affected","versionType":"git"},{"version":"0769449b0a5eabc3545337217ae690e46673e73a","status":"affected","versionType":"git"},{"version":"77393806c76b6b44f1c44bd957788c8bd9152c45","status":"affected","versionType":"git"},{"version":"4a46b2f5dce02539e88a300800812bd24a45e097","status":"affected","versionType":"git"},{"version":"adf098e2a8a1e1fc075d6a5ba2edd13cf7189082","status":"affected","versionType":"git"},{"version":"4.4.294","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.292","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.257","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.220","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.164","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.84","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.7","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ata/sata_fsl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ata/sata_fsl.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99503.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99503","state":"PUBLISHED","datePublished":"2026-11-19T14:43:52.787Z","dateUpdated":"2026-11-19T14:43:52.787Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.419Z"},"containers":{"cna":{"title":"ata: sata_fsl: Fix use-after-free of host_priv on probe() failure","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->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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"3e00737e95485b2a35bf5f515f56a4c416d5971f","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"59eac6863eede5957bfd8872633608431ac42d3c","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"9d9d62dfef3609f664c60f6fe61528a2e876a64b","versionType":"git"},{"version":"6c8ad7e8cf29eb55836e7a0215f967746ab2b504","status":"affected","lessThan":"70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3","versionType":"git"},{"version":"cdcd80292106df5cda325426e96495503e41f947","status":"affected","versionType":"git"},{"version":"91ba94d3f7afca195b224f77a72044fbde1389ce","status":"affected","versionType":"git"},{"version":"325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1","status":"affected","versionType":"git"},{"version":"0769449b0a5eabc3545337217ae690e46673e73a","status":"affected","versionType":"git"},{"version":"77393806c76b6b44f1c44bd957788c8bd9152c45","status":"affected","versionType":"git"},{"version":"4a46b2f5dce02539e88a300800812bd24a45e097","status":"affected","versionType":"git"},{"version":"adf098e2a8a1e1fc075d6a5ba2edd13cf7189082","status":"affected","versionType":"git"},{"version":"4.4.294","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.292","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.14.257","status":"affected","lessThan":"4.15","versionType":"semver"},{"version":"4.19.220","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.164","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.10.84","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.7","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ata/sata_fsl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ata/sata_fsl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3e00737e95485b2a35bf5f515f56a4c416d5971f"},{"url":"https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c"},{"url":"https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b"},{"url":"https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:43:52.787Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.294"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.292"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.257"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.220"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.84"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}