# CVE-2021-47512: net/sched: fq\_pie: prevent dismantle issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **Published:** 2024-05-24T15:09:27.356Z
- **Modified:** 2026-08-05T08:48:11.315Z

## Who should check

- Anyone running Linux \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 2a51edaf5cc563574878b93d7ef3d5955dda7030; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< d86216dfda7c98375f809e26a30bfdaaba21d46e; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 61c2402665f1e10c5742033fce18392e369931d7
- Anyone running Linux 5.6

## Description

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

net/sched: fq\_pie: prevent dismantle issue

For some reason, fq\_pie\_destroy() did not copy
working code from pie\_destroy() and other qdiscs,
thus causing elusive bug.

Before calling del\_timer\_sync(&q-\>adapt\_timer),
we need to ensure timer will not rearm itself.

rcu: INFO: rcu\_preempt self-detected stall on CPU
rcu:    0-....: (4416 ticks this GP) idle=60d/1/0x4000000000000000 softirq=10433/10434 fqs=2579
        (t=10501 jiffies g=13085 q=3989)
NMI backtrace for cpu 0
CPU: 0 PID: 13 Comm: ksoftirqd/0 Not tainted 5.16.0-rc4-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 \<IRQ\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 nmi\_cpu\_backtrace.cold+0x47/0x144 lib/nmi\_backtrace.c:111
 nmi\_trigger\_cpumask\_backtrace+0x1b3/0x230 lib/nmi\_backtrace.c:62
 trigger\_single\_cpu\_backtrace include/linux/nmi.h:164 \[inline\]
 rcu\_dump\_cpu\_stacks+0x25e/0x3f0 kernel/rcu/tree\_stall.h:343
 print\_cpu\_stall kernel/rcu/tree\_stall.h:627 \[inline\]
 check\_cpu\_stall kernel/rcu/tree\_stall.h:711 \[inline\]
 rcu\_pending kernel/rcu/tree.c:3878 \[inline\]
 rcu\_sched\_clock\_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2597
 update\_process\_times+0x16d/0x200 kernel/time/timer.c:1785
 tick\_sched\_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick\_sched\_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1428
 \_\_run\_hrtimer kernel/time/hrtimer.c:1685 \[inline\]
 \_\_hrtimer\_run\_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer\_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local\_apic\_timer\_interrupt arch/x86/kernel/apic/apic.c:1086 \[inline\]
 \_\_sysvec\_apic\_timer\_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec\_apic\_timer\_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 \</IRQ\>
 \<TASK\>
 asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:write\_comp\_data kernel/kcov.c:221 \[inline\]
RIP: 0010:\_\_sanitizer\_cov\_trace\_const\_cmp1+0x1d/0x80 kernel/kcov.c:273
Code: 54 c8 20 48 89 10 c3 66 0f 1f 44 00 00 53 41 89 fb 41 89 f1 bf 03 00 00 00 65 48 8b 0c 25 40 70 02 00 48 89 ce 4c 8b 54 24 08 \<e8\> 4e f7 ff ff 84 c0 74 51 48 8b 81 88 15 00 00 44 8b 81 84 15 00
RSP: 0018:ffffc90000d27b28 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff888064bf1bf0 RCX: ffff888011928000
RDX: ffff888011928000 RSI: ffff888011928000 RDI: 0000000000000003
RBP: ffff888064bf1c28 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff875d8295 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880783dd300 R14: 0000000000000000 R15: 0000000000000000
 pie\_calculate\_probability+0x405/0x7c0 net/sched/sch\_pie.c:418
 fq\_pie\_timer+0x170/0x2a0 net/sched/sch\_fq\_pie.c:383
 call\_timer\_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
 expire\_timers kernel/time/timer.c:1466 \[inline\]
 \_\_run\_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734
 \_\_run\_timers kernel/time/timer.c:1715 \[inline\]
 run\_timer\_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
 \_\_do\_softirq+0x29b/0x9c2 kernel/softirq.c:558
 run\_ksoftirqd kernel/softirq.c:921 \[inline\]
 run\_ksoftirqd+0x2d/0x60 kernel/softirq.c:913
 smpboot\_thread\_fn+0x645/0x9c0 kernel/smpboot.c:164
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:295
 \</TASK\>

## Affected and fixed versions

- Linux: \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 2a51edaf5cc563574878b93d7ef3d5955dda7030; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< d86216dfda7c98375f809e26a30bfdaaba21d46e; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 61c2402665f1e10c5742033fce18392e369931d7 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 61c2402665f1e10c5742033fce18392e369931d7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47512. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47512.md
Affected: Linux >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < 2a51edaf5cc563574878b93d7ef3d5955dda7030; >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < d86216dfda7c98375f809e26a30bfdaaba21d46e; >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < 61c2402665f1e10c5742033fce18392e369931d7; Linux 5.6
Fixed in: Linux 2a51edaf5cc563574878b93d7ef3d5955dda7030, Linux 61c2402665f1e10c5742033fce18392e369931d7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47512 being exploited?

There is no confirmed exploitation: CVE-2021-47512 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47512?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47512?

Linux \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 2a51edaf5cc563574878b93d7ef3d5955dda7030; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< d86216dfda7c98375f809e26a30bfdaaba21d46e; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 61c2402665f1e10c5742033fce18392e369931d7; Linux 5.6.

### Is there a fix for CVE-2021-47512?

Yes. Fixed in Linux 2a51edaf5cc563574878b93d7ef3d5955dda7030, Linux 61c2402665f1e10c5742033fce18392e369931d7. Upgrade Linux to 61c2402665f1e10c5742033fce18392e369931d7 or later.

### How do I check if I'm affected by CVE-2021-47512?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2a51edaf5cc563574878b93d7ef3d5955dda7030>
- patch: <https://git.kernel.org/stable/c/d86216dfda7c98375f809e26a30bfdaaba21d46e>
- patch: <https://git.kernel.org/stable/c/61c2402665f1e10c5742033fce18392e369931d7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47512>

HTML: <https://flawdb.com/CVE-2021-47512> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47512>
