{"id":"CVE-2026-143121","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:44.713","lastModified":"2026-12-03T10:17:44.713","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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->regs 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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/power/sequencing/pwrseq-pcie-m2.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3f736aecbdc8e4faf2ed82c981812a6bfc76ea98","lessThan":"965765f5a9af841904e89f62e706ef5fc1eaa146","versionType":"git","status":"affected"},{"version":"3f736aecbdc8e4faf2ed82c981812a6bfc76ea98","lessThan":"cd5f26ed96604b18e4235052525abe6b4ba505d6","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/power/sequencing/pwrseq-pcie-m2.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.1","status":"affected"},{"version":"0","lessThan":"7.1","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/965765f5a9af841904e89f62e706ef5fc1eaa146","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cd5f26ed96604b18e4235052525abe6b4ba505d6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}