ata: sata_fsl: Fix use-after-free of host_priv on probe() failure (Linux Linux)

CVE-2026-99503
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.22 % · centile 13 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Produits affectés
Linux · Linux
Statut NVD
Received

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
Linux · Linux
affectée : ≥ 4a46b2f5dce02539e88a300800812bd24a45e097 < 1d90d6d679cefe20d223c2f196ffd9fea297be1f
affectée : ≥ adf098e2a8a1e1fc075d6a5ba2edd13cf7189082 < 4ef0a14d952dd4475e2016475b1dda73f63c5dae
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 6c69c0754f9052a9369c154530ca4855f9bcdca9
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 57f0d1fcfd1eb4c05f8edb883ed34914a77a02d5
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 3e00737e95485b2a35bf5f515f56a4c416d5971f
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 59eac6863eede5957bfd8872633608431ac42d3c
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 9d9d62dfef3609f664c60f6fe61528a2e876a64b
affectée : ≥ 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 < 70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3
affectée : cdcd80292106df5cda325426e96495503e41f947
affectée : 91ba94d3f7afca195b224f77a72044fbde1389ce
affectée : 325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1
affectée : 0769449b0a5eabc3545337217ae690e46673e73a
affectée : 77393806c76b6b44f1c44bd957788c8bd9152c45
affectée : ≥ 5.10.84 < 5.10.275
affectée : ≥ 5.15.7 < 5.15.226
affectée : ≥ 4.4.294 < 4.5
affectée : ≥ 4.9.292 < 4.10
affectée : ≥ 4.14.257 < 4.15
affectée : ≥ 4.19.220 < 4.20
affectée : ≥ 5.4.164 < 5.5
Autres versions : non affectée
Linux · Linux
affectée : 5.16
non affectée : ≥ 0 < 5.16
non affectée : ≥ 5.10.275 ≤ 5.10.*
non affectée : ≥ 5.15.226 ≤ 5.15.*
non affectée : ≥ 6.1.193 ≤ 6.1.*
non affectée : ≥ 6.6.163 ≤ 6.6.*
non affectée : ≥ 6.12.117 ≤ 6.12.*
non affectée : ≥ 6.18.61 ≤ 6.18.*
non affectée : ≥ 7.3.2 ≤ 7.3.*
non affectée : ≥ 7.4-rc1 ≤ *
Autres versions : affectée

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD