CVE-2026-143121
power: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable()
Description
In the Linux kernel, the following vulnerability has been resolved: power: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable() During device teardown or on the probe error path, a concurrent consumer access triggers a use-after-free in pwrseq_pcie_m2_vregs_enable() or pwrseq_pcie_m2_vregs_disable() due to a lifetime inversion between devm-managed device registration and manual resource cleanup. The driver exposes the power sequencer using devm_pwrseq_device_register(), meaning the device remains fully registered and accessible on the pwrseq_bus until the driver core schedules devm_pwrseq_device_unregister() to run after pwrseq_pcie_m2_remove() returns. However, the driver performs manual resource teardown within pwrseq_pcie_m2_remove() and the pwrseq_pcie_m2_probe() error path, prematurely destroying the backing regulator array. This creates a narrow vulnerability window where the globally visible power sequencer is backed by freed memory. If a concurrent consumer invokes pwrseq_enable() during this window, execution is routed to the sequencer callback and dereferences the destroyed ctx->regs array, resulting in a direct use-after-free and a kernel crash. Schedule a devres action for freeing the memory used for the regulator array to ensure it runs *after* the pwrseq provider was unregistered.
INFO
Published Date :
Dec. 3, 2026, 10:17 a.m.
Last Modified :
Dec. 3, 2026, 10:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Schedule devres action for freeing regulator array memory.
- Ensure memory freeing runs after device unregistration.
- Apply kernel patch to fix resource cleanup.
- Update the Linux kernel.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-143121.
| URL | Resource |
|---|---|
| https://git.kernel.org/stable/c/965765f5a9af841904e89f62e706ef5fc1eaa146 | |
| https://git.kernel.org/stable/c/cd5f26ed96604b18e4235052525abe6b4ba505d6 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-143121 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-143121
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-143121 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-143121 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 03, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: power: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable() During device teardown or on the probe error path, a concurrent consumer access triggers a use-after-free in pwrseq_pcie_m2_vregs_enable() or pwrseq_pcie_m2_vregs_disable() due to a lifetime inversion between devm-managed device registration and manual resource cleanup. The driver exposes the power sequencer using devm_pwrseq_device_register(), meaning the device remains fully registered and accessible on the pwrseq_bus until the driver core schedules devm_pwrseq_device_unregister() to run after pwrseq_pcie_m2_remove() returns. However, the driver performs manual resource teardown within pwrseq_pcie_m2_remove() and the pwrseq_pcie_m2_probe() error path, prematurely destroying the backing regulator array. This creates a narrow vulnerability window where the globally visible power sequencer is backed by freed memory. If a concurrent consumer invokes pwrseq_enable() during this window, execution is routed to the sequencer callback and dereferences the destroyed ctx->regs array, resulting in a direct use-after-free and a kernel crash. Schedule a devres action for freeing the memory used for the regulator array to ensure it runs *after* the pwrseq provider was unregistered. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/143xxx/CVE-2026-143121.json">CVE-2026-143121</a> Added Reference https://git.kernel.org/stable/c/965765f5a9af841904e89f62e706ef5fc1eaa146 Added Reference https://git.kernel.org/stable/c/cd5f26ed96604b18e4235052525abe6b4ba505d6