{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3f736aecbdc8e4faf2ed82c981812a6bfc76ea98"
            },
            {
              "fixed": "965765f5a9af841904e89f62e706ef5fc1eaa146"
            },
            {
              "fixed": "cd5f26ed96604b18e4235052525abe6b4ba505d6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.1.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143121.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\npower: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable()\n\nDuring device teardown or on the probe error path, a concurrent consumer\naccess triggers a use-after-free in pwrseq_pcie_m2_vregs_enable() or\npwrseq_pcie_m2_vregs_disable() due to a lifetime inversion between\ndevm-managed device registration and manual resource cleanup.\n\nThe driver exposes the power sequencer using devm_pwrseq_device_register(),\nmeaning the device remains fully registered and accessible on the\npwrseq_bus until the driver core schedules devm_pwrseq_device_unregister()\nto run after pwrseq_pcie_m2_remove() returns. However, the driver performs\nmanual resource teardown within pwrseq_pcie_m2_remove() and the\npwrseq_pcie_m2_probe() error path, prematurely destroying the backing\nregulator array.\n\nThis creates a narrow vulnerability window where the globally visible power\nsequencer is backed by freed memory. If a concurrent consumer invokes\npwrseq_enable() during this window, execution is routed to the sequencer\ncallback and dereferences the destroyed ctx-\u003eregs array, resulting in a\ndirect use-after-free and a kernel crash.\n\nSchedule a devres action for freeing the memory used for the regulator\narray to ensure it runs *after* the pwrseq provider was unregistered.",
  "id": "CVE-2026-143121",
  "modified": "2026-12-03T10:46:08.028806406Z",
  "published": "2026-12-03T09:19:32.726Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/965765f5a9af841904e89f62e706ef5fc1eaa146"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cd5f26ed96604b18e4235052525abe6b4ba505d6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143121.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143121"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "power: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable()"
}