# CVE-2021-47136: net: zero-initialize tc skb extension on allocation

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

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.54% (percentile 39, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-03-25T09:07:36.064Z
- **Modified:** 2026-08-05T08:46:16.463Z

## Who should check

- Anyone running Linux \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< ac493452e937b8939eaf2d24cac51a4804b6c20e; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 86ab133b695ed7ba1f8786b12f4ca43137ad8c18; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 9453d45ecb6c2199d72e73c993e9d98677a2801b; 7154bda4cfc1f41b339121475d2b0234141f3492; \>= 5.7.15, \< 5.8
- Anyone running Linux 5.9

## Description

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

net: zero-initialize tc skb extension on allocation

Function skb\_ext\_add() doesn't initialize created skb extension with any
value and leaves it up to the user. However, since extension of type
TC\_SKB\_EXT originally contained only single value tc\_skb\_ext-\>chain its
users used to just assign the chain value without setting whole extension
memory to zero first. This assumption changed when TC\_SKB\_EXT extension was
extended with additional fields but not all users were updated to
initialize the new fields which leads to use of uninitialized memory
afterwards. UBSAN log:

\[  778.299821\] UBSAN: invalid-load in net/openvswitch/flow.c:899:28
\[  778.301495\] load of value 107 is not a valid value for type '\_Bool'
\[  778.303215\] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.12.0-rc7+ \#2
\[  778.304933\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
\[  778.307901\] Call Trace:
\[  778.308680\]  \<IRQ\>
\[  778.309358\]  dump\_stack+0xbb/0x107
\[  778.310307\]  ubsan\_epilogue+0x5/0x40
\[  778.311167\]  \_\_ubsan\_handle\_load\_invalid\_value.cold+0x43/0x48
\[  778.312454\]  ? memset+0x20/0x40
\[  778.313230\]  ovs\_flow\_key\_extract.cold+0xf/0x14 \[openvswitch\]
\[  778.314532\]  ovs\_vport\_receive+0x19e/0x2e0 \[openvswitch\]
\[  778.315749\]  ? ovs\_vport\_find\_upcall\_portid+0x330/0x330 \[openvswitch\]
\[  778.317188\]  ? create\_prof\_cpu\_mask+0x20/0x20
\[  778.318220\]  ? arch\_stack\_walk+0x82/0xf0
\[  778.319153\]  ? secondary\_startup\_64\_no\_verify+0xb0/0xbb
\[  778.320399\]  ? stack\_trace\_save+0x91/0xc0
\[  778.321362\]  ? stack\_trace\_consume\_entry+0x160/0x160
\[  778.322517\]  ? lock\_release+0x52e/0x760
\[  778.323444\]  netdev\_frame\_hook+0x323/0x610 \[openvswitch\]
\[  778.324668\]  ? ovs\_netdev\_get\_vport+0xe0/0xe0 \[openvswitch\]
\[  778.325950\]  \_\_netif\_receive\_skb\_core+0x771/0x2db0
\[  778.327067\]  ? lock\_downgrade+0x6e0/0x6f0
\[  778.328021\]  ? lock\_acquire+0x565/0x720
\[  778.328940\]  ? generic\_xdp\_tx+0x4f0/0x4f0
\[  778.329902\]  ? inet\_gro\_receive+0x2a7/0x10a0
\[  778.330914\]  ? lock\_downgrade+0x6f0/0x6f0
\[  778.331867\]  ? udp4\_gro\_receive+0x4c4/0x13e0
\[  778.332876\]  ? lock\_release+0x52e/0x760
\[  778.333808\]  ? dev\_gro\_receive+0xcc8/0x2380
\[  778.334810\]  ? lock\_downgrade+0x6f0/0x6f0
\[  778.335769\]  \_\_netif\_receive\_skb\_list\_core+0x295/0x820
\[  778.336955\]  ? process\_backlog+0x780/0x780
\[  778.337941\]  ? mlx5e\_rep\_tc\_netdevice\_event\_unregister+0x20/0x20 \[mlx5\_core\]
\[  778.339613\]  ? seqcount\_lockdep\_reader\_access.constprop.0+0xa7/0xc0
\[  778.341033\]  ? kvm\_clock\_get\_cycles+0x14/0x20
\[  778.342072\]  netif\_receive\_skb\_list\_internal+0x5f5/0xcb0
\[  778.343288\]  ? \_\_kasan\_kmalloc+0x7a/0x90
\[  778.344234\]  ? mlx5e\_handle\_rx\_cqe\_mpwrq+0x9e0/0x9e0 \[mlx5\_core\]
\[  778.345676\]  ? mlx5e\_xmit\_xdp\_frame\_mpwqe+0x14d0/0x14d0 \[mlx5\_core\]
\[  778.347140\]  ? \_\_netif\_receive\_skb\_list\_core+0x820/0x820
\[  778.348351\]  ? mlx5e\_post\_rx\_mpwqes+0xa6/0x25d0 \[mlx5\_core\]
\[  778.349688\]  ? napi\_gro\_flush+0x26c/0x3c0
\[  778.350641\]  napi\_complete\_done+0x188/0x6b0
\[  778.351627\]  mlx5e\_napi\_poll+0x373/0x1b80 \[mlx5\_core\]
\[  778.352853\]  \_\_napi\_poll+0x9f/0x510
\[  778.353704\]  ? mlx5\_flow\_namespace\_set\_mode+0x260/0x260 \[mlx5\_core\]
\[  778.355158\]  net\_rx\_action+0x34c/0xa40
\[  778.356060\]  ? napi\_threaded\_poll+0x3d0/0x3d0
\[  778.357083\]  ? sched\_clock\_cpu+0x18/0x190
\[  778.358041\]  ? \_\_common\_interrupt+0x8e/0x1a0
\[  778.359045\]  \_\_do\_softirq+0x1ce/0x984
\[  778.359938\]  \_\_irq\_exit\_rcu+0x137/0x1d0
\[  778.360865\]  irq\_exit\_rcu+0xa/0x20
\[  778.361708\]  common\_interrupt+0x80/0xa0
\[  778.362640\]  \</IRQ\>
\[  778.363212\]  asm\_common\_interrupt+0x1e/0x40
\[  778.364204\] RIP: 0010:native\_safe\_halt+0xe/0x10
\[  778.365273\] Code: 4f ff ff ff 4c 89 e7 e8 50 3f 40 fe e9 dc fe ff ff 48 89 df e8 43 3f 40 fe eb 90 cc e9 07 00 00 00 0f 00 2d 74 05 62 00 fb f4 \<c3\> 90 e9 07 00 00 00 0f 00 2d 64 05 62 00 f4 c3 cc cc 0f 1f 44 00
\[  778.369355\] RSP: 0018:ffffffff84407e48 EFLAGS: 00000246
\[  778.370570\] RAX
---truncated---

## Affected and fixed versions

- Linux: \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< ac493452e937b8939eaf2d24cac51a4804b6c20e; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 86ab133b695ed7ba1f8786b12f4ca43137ad8c18; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 9453d45ecb6c2199d72e73c993e9d98677a2801b; 7154bda4cfc1f41b339121475d2b0234141f3492; \>= 5.7.15, \< 5.8 (cvelist)
- Linux: 5.9 (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-47136. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47136.md
Affected: Linux >= 038ebb1a713d114d54dbf14868a73181c0c92758, < ac493452e937b8939eaf2d24cac51a4804b6c20e; >= 038ebb1a713d114d54dbf14868a73181c0c92758, < 86ab133b695ed7ba1f8786b12f4ca43137ad8c18; >= 038ebb1a713d114d54dbf14868a73181c0c92758, < 9453d45ecb6c2199d72e73c993e9d98677a2801b; 7154bda4cfc1f41b339121475d…
Fixed in: Linux 86ab133b695ed7ba1f8786b12f4ca43137ad8c18, Linux 9453d45ecb6c2199d72e73c993e9d98677a2801b, 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-47136 being exploited?

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

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

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< ac493452e937b8939eaf2d24cac51a4804b6c20e; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 86ab133b695ed7ba1f8786b12f4ca43137ad8c18; \>= 038ebb1a713d114d54dbf14868a73181c0c92758, \< 9453d45ecb6c2199d72e73c993e9d98677a2801b; 7154bda4cfc1f41b339121475d2b0234141f3492; \>= 5.7.15, \< 5.8; Linux 5.9.

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

Yes. Fixed in Linux 86ab133b695ed7ba1f8786b12f4ca43137ad8c18, Linux 9453d45ecb6c2199d72e73c993e9d98677a2801b, Linux 5.8. Upgrade Linux to 5.8 or later.

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

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/ac493452e937b8939eaf2d24cac51a4804b6c20e>
- patch: <https://git.kernel.org/stable/c/86ab133b695ed7ba1f8786b12f4ca43137ad8c18>
- patch: <https://git.kernel.org/stable/c/9453d45ecb6c2199d72e73c993e9d98677a2801b>

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

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