{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1896b15eddb4ff7266bccf3efa981885ecf80ab1"
            },
            {
              "fixed": "6359fca8fdf9265e82cf740d4972ddd7dc775ee5"
            },
            {
              "fixed": "1f1f2ce4ea2b81955e6be8a36b161838c68643ef"
            },
            {
              "fixed": "9fd76c2410e86e8fe356a7c4a659cc8d09459587"
            },
            {
              "fixed": "62bc5f7c76b399b77ee2d94e6e20e044e76aef47"
            },
            {
              "fixed": "a53a677c1ddc38d8773587eb3897f44700dde03b"
            },
            {
              "fixed": "1b2d819c09f0bea5cff5c53ff7dcb4df47da6efd"
            },
            {
              "fixed": "1a27d5b8124ad852857d4080fa9271084f1d503e"
            },
            {
              "fixed": "d2f977008cbbae195df678ee1e70e5802f9bd0b8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.8.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139011.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata: Do not leave ata_host_stop() registered when activation fails\n\nata_host_start() registers ata_host_stop() as a devres action as soon as\nit has succeeded, which hands the release of the host resources over to\ndevres: -\u003eport_stop() and -\u003ehost_stop() are then called by the driver\ncore when probe() fails.\n\nata_host_activate() and ahci_host_activate_multi_irqs() can both fail\nafter ata_host_start() has succeeded, e.g. if devm_request_irq() or\nata_host_register() fails, and they return the error with the devres\naction still registered. A driver which releases the host resources in\nits probe() error path therefore releases them twice: once itself and\nonce through -\u003ehost_stop().\n\nAll ahci-platform drivers are in that situation, e.g. ahci_probe() calls\nahci_platform_disable_resources() while ahci_host_stop() does the same\nthrough devres. This gives refcount underflow warnings from the clk,\nregulator and phy cores and, for shared resources, can disable resources\nwhich are still in use by other devices.\n\nAdd ata_host_undo_start(), which stops the ports and drops the devres\naction without calling -\u003ehost_stop(), and call it from both activation\nhelpers when they fail. Releasing the host resources on failure is then\nalways left to the caller, which is what all callers having a probe()\nerror path already assume.\n\nThis changes the semantics for the drivers which implement -\u003ehost_stop()\nwhile also completely lacking error handling for the activate host call.\nAdd activate host error handling for sata_qstor and sata_fsl. For\nsata_fsl this also means that hcr_base and host_priv are now released\nwhen activating the host fails, which -\u003ehost_stop() did not do when\nata_host_start() itself failed.\n\nNote that ata_pci_sff_activate_host() is deliberately left as is: none of\nits callers releases the host resources in its probe() error path, they\nall rely on -\u003ehost_stop() being called by devres, including\nata_pci_init_one(), which releases the devres group of the host itself.",
  "id": "CVE-2026-139011",
  "modified": "2026-12-01T20:45:52.426945705Z",
  "published": "2026-11-30T13:27:02.826Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1a27d5b8124ad852857d4080fa9271084f1d503e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1b2d819c09f0bea5cff5c53ff7dcb4df47da6efd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f1f2ce4ea2b81955e6be8a36b161838c68643ef"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/62bc5f7c76b399b77ee2d94e6e20e044e76aef47"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6359fca8fdf9265e82cf740d4972ddd7dc775ee5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9fd76c2410e86e8fe356a7c4a659cc8d09459587"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a53a677c1ddc38d8773587eb3897f44700dde03b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d2f977008cbbae195df678ee1e70e5802f9bd0b8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139011.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139011"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ata: libata: Do not leave ata_host_stop() registered when activation fails"
}