CVEBrief

Home / Linux / Linux / CVE-2021-47465

CVE-2021-47465: is it exploited, and which versions of Linux are affected and fixed?

CVE-2021-47465 is an uncontrolled recursion vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: Linux from 5.2 until the fixed versions (CVE record by Linux). Fixed in 5.4.156, 5.10.76, 5.14.15 and 5.15 (CVE record by Linux). Severity: High (7.1, CVSS 3.1, from Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 28, 2026, 20:00 UTC and NVD November 19, 2026, 07:29 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 10:38 UTC
Affected
Linux from 5.2 until the fixed versions
CVE record by Linux
Fixed in
5.4.156, 5.10.76, 5.14.15 and 5.15
CVE record by Linux
Severity
High 7.1
CVSS 3.1 from Linux
Exploit odds (EPSS)
0.22% in 30 days
higher than 14% of CVEs; FIRST, December 2, 2026

What is CVE-2021-47465?

In the Linux kernel, the following vulnerability has been resolved: KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest() In commit 10d91611f426 ("powerpc/64s: Reimplement book3s idle code in C") kvm_start_guest() became idle_kvm_start_guest(). The old code allocated a stack frame on the emergency stack, but didn't use the frame to store anything, and also didn't store anything in its caller's frame. idle_kvm_start_guest() on the other hand is written more like a normal C function, it creates a frame on entry, and also stores CR/LR into its callers frame (per the ABI). The problem is that there is no caller frame on the emergency stack. The emergency stack for a given CPU is allocated with: paca_ptrs[i]->emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; So emergency_sp actually points to the first address above the emergency stack allocation for a given CPU, we must not store above it without first decrementing it to create a frame. This is different to the regular kernel stack, paca->kstack, which is initialised to point at an initial frame that is ready to use. idle_kvm_start_guest() stores the backchain, CR and LR all of which write outside the allocation for the emergency stack. It then creates a stack frame and saves the non-volatile registers. Unfortunately the frame it creates is not large enough to fit the non-volatiles, and so the saving of the non-volatile registers also writes outside the emergency stack allocation. The end result is that we corrupt whatever is at 0-24 bytes, and 112-248 bytes above the emergency stack allocation. In practice this has gone unnoticed because the memory immediately above the emergency stack happens to be used for other stack allocations, either another CPUs mc_emergency_sp or an IRQ stack. See the order of calls to irqstack_early_init() and emergency_stack_init(). The low addresses of another stack are the top of that stack, and so are only used if that stack is under extreme pressue, which essentially never happens in practice - and if it did there's a high likelyhood we'd crash due to that stack overflowing. Still, we shouldn't be corrupting someone else's stack, and it is purely luck that we aren't corrupting something else. To fix it we save CR/LR into the caller's frame using the existing r1 on entry, we then create a SWITCH_FRAME_SIZE frame (which has space for pt_regs) on the emergency stack with the backchain pointing to the existing stack, and then finally we switch to the new frame on the emergency stack.

From the CVE record by Linux, last updated August 5, 2026, 08:47 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 5.2 until the fixed versions5.4.156, 5.10.76, 5.14.15, 5.15

As the CVE record by Linux states it, last updated August 5, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
linuxlinux kernelfrom 5.2 before 5.4.156operating system
linuxlinux kernelfrom 5.5 before 5.10.76operating system
linuxlinux kernelfrom 5.11 before 5.14.15operating system
linuxlinux kernel5.15operating system

NVD analysis (status Analyzed), last modified June 17, 2026, 04:17 UTC.

How severe is CVE-2021-47465?

ScoreVersionVectorSource
High 7.1CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HLinux
High 7.1CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HCISA-ADP
Medium 5.5CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-47465 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, May 29, 2024)
EPSS
0.22% probability of exploitation activity in the next 30 days, percentile 13.9 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
May 22, 2024
Published
May 22, 2024, 06:23 UTC
CVE record updated
August 5, 2026, 08:47 UTC by Linux
NVD
Analyzed, last modified June 17, 2026, 04:17 UTC
Last checked
CVE list November 28, 2026, 20:00 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2021-47465

Is CVE-2021-47465 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.22% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Linux are affected by CVE-2021-47465?

Linux from 5.2 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2021-47465?

5.4.156, 5.10.76, 5.14.15 and 5.15, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-47465?

High (7.1, CVSS 3.1, from Linux). The severity table above shows each score with its source.

Where is the official record of CVE-2021-47465?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.