padata: Put CPU offline callback in ONLINE section to allow failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 894c9ef9780c5cf2f143415e867ee39a33ecb75d · < c8c4a2972f83c8b68ff03b43cecdb898939ff851| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
padata: Put CPU offline callback in ONLINE section to allow failure
syzbot reported the following warning:
DEAD callback error for CPU1 WARNING: kernel/cpu.c:1463 at _cpu_down+0x759/0x1020 kernel/cpu.c:1463, CPU#0: syz.0.1960/14614
at commit 4ae12d8bd9a8 ("Merge tag 'kbuild-fixes-7.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux") which tglx traced to padata_cpu_dead() given it's the only sub-CPUHP_TEARDOWN_CPU callback that returns an error.
Failure isn't allowed in hotplug states before CPUHP_TEARDOWN_CPU so move the CPU offline callback to the ONLINE section where failure is possible.
From the CVE record · Linux
The Linux kernel’s padata CPU offline callback can return an error at a hotplug stage where failure is not allowed, triggering a kernel warning during CPU shutdown. The input does not establish an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected padata callback should check their versions; affected versions are not specified.