Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-47454

kernel: powerpc/smp: do not decrement idle task preempt count in CPU offline

Overview

Published
22 May 2024
Modified
17 Jun 2026
Medium CVE
0 Registry packages
118 OS packages
9 Linux distributions
Yes Fix available

Description

In the Linux kernel, the following vulnerability has been resolved:

powerpc/smp: do not decrement idle task preempt count in CPU offline

With PREEMPT_COUNT=y, when a CPU is offlined and then onlined again, we
get:

BUG: scheduling while atomic: swapper/1/0/0x00000000
no locks held by swapper/1/0.
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-rc2+ #100
Call Trace:
 dump_stack_lvl+0xac/0x108
 __schedule_bug+0xac/0xe0
 __schedule+0xcf8/0x10d0
 schedule_idle+0x3c/0x70
 do_idle+0x2d8/0x4a0
 cpu_startup_entry+0x38/0x40
 start_secondary+0x2ec/0x3a0
 start_secondary_prolog+0x10/0x14

This is because powerpc's arch_cpu_idle_dead() decrements the idle task's
preempt count, for reasons explained in commit a7c2bb8279d2 ("powerpc:
Re-enable preemption before cpu_die()"), specifically "start_secondary()
expects a preempt_count() of 0."

However, since commit 2c669ef6979c ("powerpc/preempt: Don't touch the idle
task's preempt_count during hotplug") and commit f1a0a376ca0c ("sched/core:
Initialize the idle task with preemption disabled"), that justification no
longer holds.

The idle task isn't supposed to re-enable preemption, so remove the
vestigial preempt_enable() from the CPU offline path.

Tested with pseries and powernv in qemu, and pseries on PowerVM.

Source: OX vulnerability database

Severity

5.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 39 fixes

Oracle Linux 1 release · 2 packages

fixed 2
kernel bpftool
Oracle Linux fixes for CVE-2021-47454
ReleasePackageFixed in
9 kernel +28 5.14.0-503.11.1.el9_5
9 bpftool 7.4.0-503.11.1.el9_5

Photon OS 1 release · 1 package

fixed 1
bpftool
Photon OS fixes for CVE-2021-47454
ReleasePackageFixed in
4.0 bpftool +9 5.10.46-2.ph4

Red Hat 2 releases · 3 packages

eol 1 affected 1 fixed 2
bpftool kernel-rt kernel
Red Hat fixes for CVE-2021-47454
ReleasePackageFixed inAdvisory
7 bpftool +25 eol —
9 kernel-rt +20 affected —
9 kernel +61 0:5.14.0-503.11.1.el9_5 RHSA-2024:9315
9 bpftool 0:7.4.0-503.11.1.el9_5 RHSA-2024:9315

SUSE Linux Enterprise 2 releases · 7 packages

fixed 9
kernel-livepatch-5-14-21-150400-24-122-default kernel-devel cluster-md-kmp-default kernel-default-base kernel-livepatch-5-14-21-150500-13-58-rt kernel-livepatch-5-14-21-150500-55-68-default +1
SUSE Linux Enterprise fixes for CVE-2021-47454
ReleasePackageFixed inAdvisory
15.4 kernel-livepatch-5-14-21-150400-24-122-default 1-150400.9.3.2 SUSE-SU-2024:2189-1
15.4 kernel-devel +3 5.14.21-150400.24.122.1 SUSE-SU-2024:2189-1
15.4 cluster-md-kmp-default +13 5.14.21-150400.24.122.2 SUSE-SU-2024:2189-1
15.4 kernel-default-base 5.14.21-150400.24.122.2.150400.24.58.2 SUSE-SU-2024:2189-1
15.5 kernel-livepatch-5-14-21-150500-13-58-rt 1-150500.11.3.1 SUSE-SU-2024:2008-1
15.5 kernel-livepatch-5-14-21-150500-55-68-default 1-150500.11.3.1 SUSE-SU-2024:2190-1

3 more rows

SUSE Linux Enterprise Micro 3 releases · 3 packages

fixed 9
kernel-rt kernel-default kernel-default-base
SUSE Linux Enterprise Micro fixes for CVE-2021-47454
ReleasePackageFixed inAdvisory
5.3 kernel-rt +1 5.14.21-150400.15.82.1 SUSE-SU-2024:2011-1
5.3 kernel-default 5.14.21-150400.24.122.2 SUSE-SU-2024:2189-1
5.3 kernel-default-base 5.14.21-150400.24.122.2.150400.24.58.2 SUSE-SU-2024:2189-1
5.4 kernel-rt +1 5.14.21-150400.15.82.1 SUSE-SU-2024:2011-1
5.4 kernel-default 5.14.21-150400.24.122.2 SUSE-SU-2024:2189-1
5.4 kernel-default-base 5.14.21-150400.24.122.2.150400.24.58.2 SUSE-SU-2024:2189-1

3 more rows

debian 4 releases · 1 package

fixed 4
linux
debian fixes for CVE-2021-47454
ReleasePackageFixed in
11 linux 5.10.84-1
12 linux 5.14.16-1
13 linux 5.14.16-1
14 linux 5.14.16-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2021-47454
ReleasePackageFixed in
linux 5.14.16-1

openSUSE Leap Micro 2 releases · 3 packages

fixed 6
kernel-rt kernel-default kernel-default-base
openSUSE Leap Micro fixes for CVE-2021-47454
ReleasePackageFixed inAdvisory
5.3 kernel-rt 5.14.21-150400.15.82.1 SUSE-SU-2024:2011-1
5.3 kernel-default 5.14.21-150400.24.122.2 SUSE-SU-2024:2189-1
5.3 kernel-default-base 5.14.21-150400.24.122.2.150400.24.58.2 SUSE-SU-2024:2189-1
5.4 kernel-rt 5.14.21-150400.15.82.1 SUSE-SU-2024:2011-1
5.4 kernel-default 5.14.21-150400.24.122.2 SUSE-SU-2024:2189-1
5.4 kernel-default-base 5.14.21-150400.24.122.2.150400.24.58.2 SUSE-SU-2024:2189-1

root.io debian 3 releases · 1 package

fixed 3
rootio-linux
root.io debian fixes for CVE-2021-47454
ReleasePackageFixed in
11 rootio-linux 5.10.84-1
12 rootio-linux 5.14.16-1
13 rootio-linux 5.14.16-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.