power: sequencing: fix NULL-pointer dereference in pwrseq_unit_new()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
power: sequencing: fix NULL-pointer dereference in pwrseq_unit_new()
If memory allocation fails in pwrseq_unit_setup_deps(), pwrseq_unit_put() is called to release the partially initialized unit. However, we've never initialized unit->list and pwrseq_unit_release() will unconditionally call list_del() on it. Initialize unit->list right after allocating the unit struct.
From the CVE record · Linux
The Linux kernel power sequencing code can dereference a NULL pointer while releasing a partially initialized unit if memory allocation fails during dependency setup. This can cause a crash; the input does not establish whether an attacker can trigger it or what access or interaction would be required.
Engineers running the Linux kernel should check their versions; affected versions were not provided.