# CVE-2021-47557: net/sched: sch\_ets: don't peek at classes beyond 'nbands'

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-24T15:09:58.655Z
- **Modified:** 2026-06-17T04:17:45.800Z

## Who should check

- Anyone running Linux \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< ae2659d2c670252759ee9c823c4e039c0e05a6f2; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< e25bdbc7e951ae5728fee1f4c09485df113d013c; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< de6d25924c2a8c2988c6a385990cafbe742061bf
- Anyone running Linux 5.6

## Description

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

net/sched: sch\_ets: don't peek at classes beyond 'nbands'

when the number of DRR classes decreases, the round-robin active list can
contain elements that have already been freed in ets\_qdisc\_change(). As a
consequence, it's possible to see a NULL dereference crash, caused by the
attempt to call cl-\>qdisc-\>ops-\>peek(cl-\>qdisc) when cl-\>qdisc is NULL:

 BUG: kernel NULL pointer dereference, address: 0000000000000018
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
 CPU: 1 PID: 910 Comm: mausezahn Not tainted 5.16.0-rc1+ \#475
 Hardware name: Red Hat KVM, BIOS 1.11.1-4.module+el8.1.0+4066+0f1aadab 04/01/2014
 RIP: 0010:ets\_qdisc\_dequeue+0x129/0x2c0 \[sch\_ets\]
 Code: c5 01 41 39 ad e4 02 00 00 0f 87 18 ff ff ff 49 8b 85 c0 02 00 00 49 39 c4 0f 84 ba 00 00 00 49 8b ad c0 02 00 00 48 8b 7d 10 \<48\> 8b 47 18 48 8b 40 38 0f ae e8 ff d0 48 89 c3 48 85 c0 0f 84 9d
 RSP: 0000:ffffbb36c0b5fdd8 EFLAGS: 00010287
 RAX: ffff956678efed30 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: 0000000000000002 RSI: ffffffff9b938dc9 RDI: 0000000000000000
 RBP: ffff956678efed30 R08: e2f3207fe360129c R09: 0000000000000000
 R10: 0000000000000001 R11: 0000000000000001 R12: ffff956678efeac0
 R13: ffff956678efe800 R14: ffff956611545000 R15: ffff95667ac8f100
 FS:  00007f2aa9120740(0000) GS:ffff95667b800000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000018 CR3: 000000011070c000 CR4: 0000000000350ee0
 Call Trace:
  \<TASK\>
  qdisc\_peek\_dequeued+0x29/0x70 \[sch\_ets\]
  tbf\_dequeue+0x22/0x260 \[sch\_tbf\]
  \_\_qdisc\_run+0x7f/0x630
  net\_tx\_action+0x290/0x4c0
  \_\_do\_softirq+0xee/0x4f8
  irq\_exit\_rcu+0xf4/0x130
  sysvec\_apic\_timer\_interrupt+0x52/0xc0
  asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20
 RIP: 0033:0x7f2aa7fc9ad4
 Code: b9 ff ff 48 8b 54 24 18 48 83 c4 08 48 89 ee 48 89 df 5b 5d e9 ed fc ff ff 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa \<53\> 48 83 ec 10 48 8b 05 10 64 33 00 48 8b 00 48 85 c0 0f 85 84 00
 RSP: 002b:00007ffe5d33fab8 EFLAGS: 00000202
 RAX: 0000000000000002 RBX: 0000561f72c31460 RCX: 0000561f72c31720
 RDX: 0000000000000002 RSI: 0000561f72c31722 RDI: 0000561f72c31720
 RBP: 000000000000002a R08: 00007ffe5d33fa40 R09: 0000000000000014
 R10: 0000000000000000 R11: 0000000000000246 R12: 0000561f7187e380
 R13: 0000000000000000 R14: 0000000000000000 R15: 0000561f72c31460
  \</TASK\>
 Modules linked in: sch\_ets sch\_tbf dummy rfkill iTCO\_wdt intel\_rapl\_msr iTCO\_vendor\_support intel\_rapl\_common joydev virtio\_balloon lpc\_ich i2c\_i801 i2c\_smbus pcspkr ip\_tables xfs libcrc32c crct10dif\_pclmul crc32\_pclmul crc32c\_intel ahci libahci ghash\_clmulni\_intel serio\_raw libata virtio\_blk virtio\_console virtio\_net net\_failover failover sunrpc dm\_mirror dm\_region\_hash dm\_log dm\_mod
 CR2: 0000000000000018

Ensuring that 'alist' was never zeroed \[1\] was not sufficient, we need to
remove from the active list those elements that are no more SP nor DRR.

\[1\] https://lore.kernel.org/netdev/60d274838bf09777f0371253416e8af71360bc08.1633609148.git.dcaratti@redhat.com/

v3: fix race between ets\_qdisc\_change() and ets\_qdisc\_dequeue() delisting
    DRR classes beyond 'nbands' in ets\_qdisc\_change() with the qdisc lock
    acquired, thanks to Cong Wang.

v2: when a NULL qdisc is found in the DRR active list, try to dequeue skb
    from the next list item.

## Affected and fixed versions

- Linux: \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< ae2659d2c670252759ee9c823c4e039c0e05a6f2; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< e25bdbc7e951ae5728fee1f4c09485df113d013c; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< de6d25924c2a8c2988c6a385990cafbe742061bf (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47557.md
Affected: Linux >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < ae2659d2c670252759ee9c823c4e039c0e05a6f2; >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < e25bdbc7e951ae5728fee1f4c09485df113d013c; >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < de6d25924c2a8c2988c6a385990cafbe742061bf; Linux 5.6
Fixed in: no fixed version listed yet

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-47557 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< ae2659d2c670252759ee9c823c4e039c0e05a6f2; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< e25bdbc7e951ae5728fee1f4c09485df113d013c; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< de6d25924c2a8c2988c6a385990cafbe742061bf; Linux 5.6.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/ae2659d2c670252759ee9c823c4e039c0e05a6f2>
- patch: <https://git.kernel.org/stable/c/e25bdbc7e951ae5728fee1f4c09485df113d013c>
- patch: <https://git.kernel.org/stable/c/de6d25924c2a8c2988c6a385990cafbe742061bf>

## 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-47557>

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