CVE-2026-139011
publishedata: libata: Do not leave ata_host_stop() registered when activation fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 6359fca8fdf9265e82cf740d4972ddd7dc775ee5 · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1f1f2ce4ea2b81955e6be8a36b161838c68643ef · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 9fd76c2410e86e8fe356a7c4a659cc8d09459587 · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 62bc5f7c76b399b77ee2d94e6e20e044e76aef47 · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < a53a677c1ddc38d8773587eb3897f44700dde03b · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1b2d819c09f0bea5cff5c53ff7dcb4df47da6efd · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1a27d5b8124ad852857d4080fa9271084f1d503e · 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < d2f977008cbbae195df678ee1e70e5802f9bd0b8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ata: libata: Do not leave ata_host_stop() registered when activation fails ata_host_start() registers ata_host_stop() as a devres action as soon as it has succeeded, which hands the release of the host resources over to devres: ->port_stop() and ->host_stop() are then called by the driver core when probe() fails. ata_host_activate() and ahci_host_activate_multi_irqs() can both fail after ata_host_start() has succeeded, e.g. if devm_request_irq() or ata_host_register() fails, and they return the error with the devres action still registered. A driver which releases the host resources in its probe() error path therefore releases them twice: once itself and once through ->host_stop(). All ahci-platform drivers are in that situation, e.g. ahci_probe() calls ahci_platform_disable_resources() while ahci_host_stop() does the same through devres. This gives refcount underflow warnings from the clk, regulator and phy cores and, for shared resources, can disable resources which are still in use by other devices. Add ata_host_undo_start(), which stops the ports and drops the devres action without calling ->host_stop(), and call it from both activation helpers when they fail. Releasing the host resources on failure is then always left to the caller, which is what all callers having a probe() error path already assume. This changes the semantics for the drivers which implement ->host_stop() while also completely lacking error handling for the activate host call. Add activate host error handling for sata_qstor and sata_fsl. For sata_fsl this also means that hcr_base and host_priv are now released when activating the host fails, which ->host_stop() did not do when ata_host_start() itself failed. Note that ata_pci_sff_activate_host() is deliberately left as is: none of its callers releases the host resources in its probe() error path, they all rely on ->host_stop() being called by devres, including ata_pci_init_one(), which releases the devres group of the host itself.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 6359fca8fdf9265e82cf740d4972ddd7dc775ee5 (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1f1f2ce4ea2b81955e6be8a36b161838c68643ef (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 9fd76c2410e86e8fe356a7c4a659cc8d09459587 (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 62bc5f7c76b399b77ee2d94e6e20e044e76aef47 (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < a53a677c1ddc38d8773587eb3897f44700dde03b (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1b2d819c09f0bea5cff5c53ff7dcb4df47da6efd (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < 1a27d5b8124ad852857d4080fa9271084f1d503e (affected · git)1896b15eddb4ff7266bccf3efa981885ecf80ab1 to < d2f977008cbbae195df678ee1e70e5802f9bd0b8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/1a27d5b8124ad852857d4080fa9271084f1d503e
- https://git.kernel.org/stable/c/1b2d819c09f0bea5cff5c53ff7dcb4df47da6efd
- https://git.kernel.org/stable/c/1f1f2ce4ea2b81955e6be8a36b161838c68643ef
- https://git.kernel.org/stable/c/62bc5f7c76b399b77ee2d94e6e20e044e76aef47
- https://git.kernel.org/stable/c/6359fca8fdf9265e82cf740d4972ddd7dc775ee5
- https://git.kernel.org/stable/c/9fd76c2410e86e8fe356a7c4a659cc8d09459587
- https://git.kernel.org/stable/c/a53a677c1ddc38d8773587eb3897f44700dde03b
- https://git.kernel.org/stable/c/d2f977008cbbae195df678ee1e70e5802f9bd0b8
Provider assertions
1Linux · cna
ata: libata: Do not leave ata_host_stop() registered when activation fails
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8cb81d6b24fad58539a89636d0083f047514b5d89b2d628e12adf51cb8d645d6
- Ingested
- 30 Nov 2026, 13:36:40 UTC
- Source record
- Official CVE record