CVE-2026-98411: power: sequencing: fix NULL-pointer dereference in pwrseq_device_register()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
power: sequencing: fix NULL-pointer dereference in pwrseq_device_register()
If dev_set_name() fails in pwrseq_device_register(), we jump to the err_put_pwrseq label before initializing pwrseq->targets. pwrseq_release() will try to iterate over targets unconditionally and subsequently dereference an invalid pointer. Move the call to dev_set_name() after the list head is initialized.
The Linux kernel CVE team has assigned CVE-2026-98411 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 249ebf3f65f8530beb2cbfb91bff1d83ba88d23c and fixed in 6.12.112 with commit a2fb51ec8920279e9e908010f37b448775f42eff Issue introduced in 6.11 with commit 249ebf3f65f8530beb2cbfb91bff1d83ba88d23c and fixed in 6.18.54 with commit a2890c1eb96d1dd0bec1cce5fbc4ed5af1dfd55d Issue introduced in 6.11 with commit 249ebf3f65f8530beb2cbfb91bff1d83ba88d23c and fixed in 7.2.8 with commit efe21a5c5bfe23bd30a8e4ba4e2b04ae265348bb Issue introduced in 6.11 with commit 249ebf3f65f8530beb2cbfb91bff1d83ba88d23c and fixed in 7.3-rc4 with commit 242da4318d97380741516b595af3920207b2f0f1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98411
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/power/sequencing/core.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a2fb51ec8920279e9e908010f37b448775f42eff https://git.kernel.org/stable/c/a2890c1eb96d1dd0bec1cce5fbc4ed5af1dfd55d https://git.kernel.org/stable/c/efe21a5c5bfe23bd30a8e4ba4e2b04ae265348bb https://git.kernel.org/stable/c/242da4318d97380741516b595af3920207b2f0f1