# CVE-2021-47014: net/sched: act\_ct: fix wild memory access when clearing fragments

> 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-754
- **Published:** 2024-02-28T08:13:31.513Z
- **Modified:** 2026-08-05T08:45:35.578Z

## Who should check

- Anyone running Linux \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< 0648941f4c8bbf8b4b6c0b270889ae7aa769b921; \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< f77bd544a6bbe69aa50d9ed09f13494cf36ff806; fbff97eb6f4a94a3f15f685bed604c9adc29ac3e; \>= 5.7.12, \< 5.8
- Anyone running Linux 5.8

## Description

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

net/sched: act\_ct: fix wild memory access when clearing fragments

while testing re-assembly/re-fragmentation using act\_ct, it's possible to
observe a crash like the following one:

 KASAN: maybe wild-memory-access in range \[0x0001000000000448-0x000100000000044f\]
 CPU: 50 PID: 0 Comm: swapper/50 Tainted: G S                5.12.0-rc7+ \#424
 Hardware name: Dell Inc. PowerEdge R730/072T6D, BIOS 2.4.3 01/17/2017
 RIP: 0010:inet\_frag\_rbtree\_purge+0x50/0xc0
 Code: 00 fc ff df 48 89 c3 31 ed 48 89 df e8 a9 7a 38 ff 4c 89 fe 48 89 df 49 89 c6 e8 5b 3a 38 ff 48 8d 7b 40 48 89 f8 48 c1 e8 03 \<42\> 80 3c 20 00 75 59 48 8d bb d0 00 00 00 4c 8b 6b 40 48 89 f8 48
 RSP: 0018:ffff888c31449db8 EFLAGS: 00010203
 RAX: 0000200000000089 RBX: 000100000000040e RCX: ffffffff989eb960
 RDX: 0000000000000140 RSI: ffffffff97cfb977 RDI: 000100000000044e
 RBP: 0000000000000900 R08: 0000000000000000 R09: ffffed1186289350
 R10: 0000000000000003 R11: ffffed1186289350 R12: dffffc0000000000
 R13: 000100000000040e R14: 0000000000000000 R15: ffff888155e02160
 FS:  0000000000000000(0000) GS:ffff888c31440000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00005600cb70a5b8 CR3: 0000000a2c014005 CR4: 00000000003706e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  \<IRQ\>
  inet\_frag\_destroy+0xa9/0x150
  call\_timer\_fn+0x2d/0x180
  run\_timer\_softirq+0x4fe/0xe70
  \_\_do\_softirq+0x197/0x5a0
  irq\_exit\_rcu+0x1de/0x200
  sysvec\_apic\_timer\_interrupt+0x6b/0x80
  \</IRQ\>

when act\_ct temporarily stores an IP fragment, restoring the skb qdisc cb
results in putting random data in FRAG\_CB(), and this causes those "wild"
memory accesses later, when the rbtree is purged. Never overwrite the skb
cb in case tcf\_ct\_handle\_fragments() returns -EINPROGRESS.

## Affected and fixed versions

- Linux: \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< 0648941f4c8bbf8b4b6c0b270889ae7aa769b921; \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< f77bd544a6bbe69aa50d9ed09f13494cf36ff806; fbff97eb6f4a94a3f15f685bed604c9adc29ac3e; \>= 5.7.12, \< 5.8 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 5.8 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-47014. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47014.md
Affected: Linux >= ae372cb1750f6c95370f92fe5f5620e0954663ba, < 0648941f4c8bbf8b4b6c0b270889ae7aa769b921; >= ae372cb1750f6c95370f92fe5f5620e0954663ba, < f77bd544a6bbe69aa50d9ed09f13494cf36ff806; fbff97eb6f4a94a3f15f685bed604c9adc29ac3e; >= 5.7.12, < 5.8; Linux 5.8
Fixed in: Linux 0648941f4c8bbf8b4b6c0b270889ae7aa769b921, Linux 5.8

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

There is no confirmed exploitation: CVE-2021-47014 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-47014?

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

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

Linux \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< 0648941f4c8bbf8b4b6c0b270889ae7aa769b921; \>= ae372cb1750f6c95370f92fe5f5620e0954663ba, \< f77bd544a6bbe69aa50d9ed09f13494cf36ff806; fbff97eb6f4a94a3f15f685bed604c9adc29ac3e; \>= 5.7.12, \< 5.8; Linux 5.8.

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

Yes. Fixed in Linux 0648941f4c8bbf8b4b6c0b270889ae7aa769b921, Linux 5.8. Upgrade Linux to 5.8 or later.

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

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/0648941f4c8bbf8b4b6c0b270889ae7aa769b921>
- patch: <https://git.kernel.org/stable/c/f77bd544a6bbe69aa50d9ed09f13494cf36ff806>

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

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