# CVE-2021-47175: net/sched: fq\_pie: fix OOB access in the traffic path

> 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-03-25T09:16:25.995Z
- **Modified:** 2026-08-05T08:46:29.396Z

## Who should check

- Anyone running Linux \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e6294c06e7c62ffdd5bf3df696d3a4fcbb753d3c; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 7a1bdec12e43e29cc34a4394590337069d8812ce; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e70f7a11876a1a788ceadf75e9e5f7af2c868680
- Anyone running Linux 5.6

## Description

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

net/sched: fq\_pie: fix OOB access in the traffic path

the following script:

  \# tc qdisc add dev eth0 handle 0x1 root fq\_pie flows 2
  \# tc qdisc add dev eth0 clsact
  \# tc filter add dev eth0 egress matchall action skbedit priority 0x10002
  \# ping 192.0.2.2 -I eth0 -c2 -w1 -q

produces the following splat:

 BUG: KASAN: slab-out-of-bounds in fq\_pie\_qdisc\_enqueue+0x1314/0x19d0 \[sch\_fq\_pie\]
 Read of size 4 at addr ffff888171306924 by task ping/942

 CPU: 3 PID: 942 Comm: ping Not tainted 5.12.0+ \#441
 Hardware name: Red Hat KVM, BIOS 1.11.1-4.module+el8.1.0+4066+0f1aadab 04/01/2014
 Call Trace:
  dump\_stack+0x92/0xc1
  print\_address\_description.constprop.7+0x1a/0x150
  kasan\_report.cold.13+0x7f/0x111
  fq\_pie\_qdisc\_enqueue+0x1314/0x19d0 \[sch\_fq\_pie\]
  \_\_dev\_queue\_xmit+0x1034/0x2b10
  ip\_finish\_output2+0xc62/0x2120
  \_\_ip\_finish\_output+0x553/0xea0
  ip\_output+0x1ca/0x4d0
  ip\_send\_skb+0x37/0xa0
  raw\_sendmsg+0x1c4b/0x2d00
  sock\_sendmsg+0xdb/0x110
  \_\_sys\_sendto+0x1d7/0x2b0
  \_\_x64\_sys\_sendto+0xdd/0x1b0
  do\_syscall\_64+0x3c/0x80
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
 RIP: 0033:0x7fe69735c3eb
 Code: 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f3 0f 1e fa 48 8d 05 75 42 2c 00 41 89 ca 8b 00 85 c0 75 14 b8 2c 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 75 c3 0f 1f 40 00 41 57 4d 89 c7 41 56 41 89
 RSP: 002b:00007fff06d7fb38 EFLAGS: 00000246 ORIG\_RAX: 000000000000002c
 RAX: ffffffffffffffda RBX: 000055e961413700 RCX: 00007fe69735c3eb
 RDX: 0000000000000040 RSI: 000055e961413700 RDI: 0000000000000003
 RBP: 0000000000000040 R08: 000055e961410500 R09: 0000000000000010
 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff06d81260
 R13: 00007fff06d7fb40 R14: 00007fff06d7fc30 R15: 000055e96140f0a0

 Allocated by task 917:
  kasan\_save\_stack+0x19/0x40
  \_\_kasan\_kmalloc+0x7f/0xa0
  \_\_kmalloc\_node+0x139/0x280
  fq\_pie\_init+0x555/0x8e8 \[sch\_fq\_pie\]
  qdisc\_create+0x407/0x11b0
  tc\_modify\_qdisc+0x3c2/0x17e0
  rtnetlink\_rcv\_msg+0x346/0x8e0
  netlink\_rcv\_skb+0x120/0x380
  netlink\_unicast+0x439/0x630
  netlink\_sendmsg+0x719/0xbf0
  sock\_sendmsg+0xe2/0x110
  \_\_\_\_sys\_sendmsg+0x5ba/0x890
  \_\_\_sys\_sendmsg+0xe9/0x160
  \_\_sys\_sendmsg+0xd3/0x170
  do\_syscall\_64+0x3c/0x80
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

 The buggy address belongs to the object at ffff888171306800
  which belongs to the cache kmalloc-256 of size 256
 The buggy address is located 36 bytes to the right of
  256-byte region \[ffff888171306800, ffff888171306900)
 The buggy address belongs to the page:
 page:00000000bcfb624e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x171306
 head:00000000bcfb624e order:1 compound\_mapcount:0
 flags: 0x17ffffc0010200(slab\|head\|node=0\|zone=2\|lastcpupid=0x1fffff)
 raw: 0017ffffc0010200 dead000000000100 dead000000000122 ffff888100042b40
 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
 page dumped because: kasan: bad access detected

 Memory state around the buggy address:
  ffff888171306800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ffff888171306880: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc
 \>ffff888171306900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                ^
  ffff888171306980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
  ffff888171306a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb

fix fq\_pie traffic path to avoid selecting 'q-\>flows + q-\>flows\_cnt' as a
valid flow: it's an address beyond the allocated memory.

## Affected and fixed versions

- Linux: \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e6294c06e7c62ffdd5bf3df696d3a4fcbb753d3c; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 7a1bdec12e43e29cc34a4394590337069d8812ce; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e70f7a11876a1a788ceadf75e9e5f7af2c868680 (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-47175. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47175.md
Affected: Linux >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < e6294c06e7c62ffdd5bf3df696d3a4fcbb753d3c; >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < 7a1bdec12e43e29cc34a4394590337069d8812ce; >= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, < e70f7a11876a1a788ceadf75e9e5f7af2c868680; Linux 5.6
Fixed in: Linux 7a1bdec12e43e29cc34a4394590337069d8812ce

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

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

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

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

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

Linux \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e6294c06e7c62ffdd5bf3df696d3a4fcbb753d3c; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< 7a1bdec12e43e29cc34a4394590337069d8812ce; \>= ec97ecf1ebe485a17cd8395a5f35e6b80b57665a, \< e70f7a11876a1a788ceadf75e9e5f7af2c868680; Linux 5.6.

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

Yes. Fixed in Linux 7a1bdec12e43e29cc34a4394590337069d8812ce. No fix listed yet: follow the vendor advisory.

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

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/e6294c06e7c62ffdd5bf3df696d3a4fcbb753d3c>
- patch: <https://git.kernel.org/stable/c/7a1bdec12e43e29cc34a4394590337069d8812ce>
- patch: <https://git.kernel.org/stable/c/e70f7a11876a1a788ceadf75e9e5f7af2c868680>

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

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