CVE-2026-143121

Source
https://cve.org/CVERecord?id=CVE-2026-143121
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143121.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143121
Downstream
Published
2026-12-03T09:19:32Z
Modified
2026-12-03T11:01:23Z
Summary
power: sequencing: pcie-m2: fix use-after-free in pwrseq_pcie_m2_vregs_enable()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143121.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3f736aecbdc8e4faf2ed82c981812a6bfc76ea98
Fixed
965765f5a9af841904e89f62e706ef5fc1eaa146
Fixed
cd5f26ed96604b18e4235052525abe6b4ba505d6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143121.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143121.json"