# CVE-2021-47606: net: netlink: af\_netlink: Prevent empty skb by adding a check on len.

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2024-06-19T14:54:05.025Z
- **Modified:** 2026-06-17T04:18:08.980Z

## Who should check

- Anyone running Linux \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c54a60c8fbaa774f828e26df79f66229a8a0e010; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 40cf2e058832d9cfaae98dfd77334926275598b6; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 54e785f7d5c197bc06dbb8053700df7e2a093ced; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< ff3f517bf7138e01a17369042908a3f345c0ee41; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c0315e93552e0d840e9edc6abd71c7db82ec8f51; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< dadce61247c6230489527cc5e343b6002d1114c5; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 4c986072a8c9249b9398c7a18f216dc26a9f0e35; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< f123cffdd8fe8ea6c7fded4b88516a42798797d0
- Anyone running Linux 3.11

## Description

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

net: netlink: af\_netlink: Prevent empty skb by adding a check on len.

Adding a check on len parameter to avoid empty skb. This prevents a
division error in netem\_enqueue function which is caused when skb-\>len=0
and skb-\>data\_len=0 in the randomized corruption step as shown below.

skb-\>data\[prandom\_u32() % skb\_headlen(skb)\] ^= 1\<\<(prandom\_u32() % 8);

Crash Report:
\[  343.170349\] netdevsim netdevsim0 netdevsim3: set \[1, 0\] type 2 family
0 port 6081 - 0
\[  343.216110\] netem: version 1.3
\[  343.235841\] divide error: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
\[  343.236680\] CPU: 3 PID: 4288 Comm: reproducer Not tainted 5.16.0-rc1+
\[  343.237569\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.11.0-2.el7 04/01/2014
\[  343.238707\] RIP: 0010:netem\_enqueue+0x1590/0x33c0 \[sch\_netem\]
\[  343.239499\] Code: 89 85 58 ff ff ff e8 5f 5d e9 d3 48 8b b5 48 ff ff
ff 8b 8d 50 ff ff ff 8b 85 58 ff ff ff 48 8b bd 70 ff ff ff 31 d2 2b 4f
74 \<f7\> f1 48 b8 00 00 00 00 00 fc ff df 49 01 d5 4c 89 e9 48 c1 e9 03
\[  343.241883\] RSP: 0018:ffff88800bcd7368 EFLAGS: 00010246
\[  343.242589\] RAX: 00000000ba7c0a9c RBX: 0000000000000001 RCX:
0000000000000000
\[  343.243542\] RDX: 0000000000000000 RSI: ffff88800f8edb10 RDI:
ffff88800f8eda40
\[  343.244474\] RBP: ffff88800bcd7458 R08: 0000000000000000 R09:
ffffffff94fb8445
\[  343.245403\] R10: ffffffff94fb8336 R11: ffffffff94fb8445 R12:
0000000000000000
\[  343.246355\] R13: ffff88800a5a7000 R14: ffff88800a5b5800 R15:
0000000000000020
\[  343.247291\] FS:  00007fdde2bd7700(0000) GS:ffff888109780000(0000)
knlGS:0000000000000000
\[  343.248350\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  343.249120\] CR2: 00000000200000c0 CR3: 000000000ef4c000 CR4:
00000000000006e0
\[  343.250076\] Call Trace:
\[  343.250423\]  \<TASK\>
\[  343.250713\]  ? memcpy+0x4d/0x60
\[  343.251162\]  ? netem\_init+0xa0/0xa0 \[sch\_netem\]
\[  343.251795\]  ? \_\_sanitizer\_cov\_trace\_pc+0x21/0x60
\[  343.252443\]  netem\_enqueue+0xe28/0x33c0 \[sch\_netem\]
\[  343.253102\]  ? stack\_trace\_save+0x87/0xb0
\[  343.253655\]  ? filter\_irq\_stacks+0xb0/0xb0
\[  343.254220\]  ? netem\_init+0xa0/0xa0 \[sch\_netem\]
\[  343.254837\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  343.255418\]  ? \_raw\_spin\_lock+0x88/0xd6
\[  343.255953\]  dev\_qdisc\_enqueue+0x50/0x180
\[  343.256508\]  \_\_dev\_queue\_xmit+0x1a7e/0x3090
\[  343.257083\]  ? netdev\_core\_pick\_tx+0x300/0x300
\[  343.257690\]  ? check\_kcov\_mode+0x10/0x40
\[  343.258219\]  ? \_raw\_spin\_unlock\_irqrestore+0x29/0x40
\[  343.258899\]  ? \_\_kasan\_init\_slab\_obj+0x24/0x30
\[  343.259529\]  ? setup\_object.isra.71+0x23/0x90
\[  343.260121\]  ? new\_slab+0x26e/0x4b0
\[  343.260609\]  ? kasan\_poison+0x3a/0x50
\[  343.261118\]  ? kasan\_unpoison+0x28/0x50
\[  343.261637\]  ? \_\_kasan\_slab\_alloc+0x71/0x90
\[  343.262214\]  ? memcpy+0x4d/0x60
\[  343.262674\]  ? write\_comp\_data+0x2f/0x90
\[  343.263209\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  343.263802\]  ? \_\_skb\_clone+0x5d6/0x840
\[  343.264329\]  ? \_\_sanitizer\_cov\_trace\_pc+0x21/0x60
\[  343.264958\]  dev\_queue\_xmit+0x1c/0x20
\[  343.265470\]  netlink\_deliver\_tap+0x652/0x9c0
\[  343.266067\]  netlink\_unicast+0x5a0/0x7f0
\[  343.266608\]  ? netlink\_attachskb+0x860/0x860
\[  343.267183\]  ? \_\_sanitizer\_cov\_trace\_pc+0x21/0x60
\[  343.267820\]  ? write\_comp\_data+0x2f/0x90
\[  343.268367\]  netlink\_sendmsg+0x922/0xe80
\[  343.268899\]  ? netlink\_unicast+0x7f0/0x7f0
\[  343.269472\]  ? \_\_sanitizer\_cov\_trace\_pc+0x21/0x60
\[  343.270099\]  ? write\_comp\_data+0x2f/0x90
\[  343.270644\]  ? netlink\_unicast+0x7f0/0x7f0
\[  343.271210\]  sock\_sendmsg+0x155/0x190
\[  343.271721\]  \_\_\_\_sys\_sendmsg+0x75f/0x8f0
\[  343.272262\]  ? kernel\_sendmsg+0x60/0x60
\[  343.272788\]  ? write\_comp\_data+0x2f/0x90
\[  343.273332\]  ? write\_comp\_data+0x2f/0x90
\[  343.273869\]  \_\_\_sys\_sendmsg+0x10f/0x190
\[  343.274405\]  ? sendmsg\_copy\_msghdr+0x80/0x80
\[  343.274984\]  ? slab\_post\_alloc\_hook+0x70/0x230
\[  343.275597\]  ? futex\_wait\_setup+0x240/0x240
\[  343.276175\]  ? security\_file\_alloc+0x3e/0x170
\[  343.276779\]  ? write\_comp\_d
---truncated---

## Affected and fixed versions

- Linux: \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c54a60c8fbaa774f828e26df79f66229a8a0e010; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 40cf2e058832d9cfaae98dfd77334926275598b6; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 54e785f7d5c197bc06dbb8053700df7e2a093ced; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< ff3f517bf7138e01a17369042908a3f345c0ee41; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c0315e93552e0d840e9edc6abd71c7db82ec8f51; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< dadce61247c6230489527cc5e343b6002d1114c5; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 4c986072a8c9249b9398c7a18f216dc26a9f0e35; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< f123cffdd8fe8ea6c7fded4b88516a42798797d0 (cvelist)
- Linux: 3.11 (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-47606. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47606.md
Affected: Linux >= bcbde0d449eda7afa8f63280b165c8300dbd00e2, < c54a60c8fbaa774f828e26df79f66229a8a0e010; >= bcbde0d449eda7afa8f63280b165c8300dbd00e2, < 40cf2e058832d9cfaae98dfd77334926275598b6; >= bcbde0d449eda7afa8f63280b165c8300dbd00e2, < 54e785f7d5c197bc06dbb8053700df7e2a093ced; >= bcbde0d449eda7afa8f6328…
Fixed in: Linux 40cf2e058832d9cfaae98dfd77334926275598b6, Linux 54e785f7d5c197bc06dbb8053700df7e2a093ced, Linux 4c986072a8c9249b9398c7a18f216dc26a9f0e35

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

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

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

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

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

Linux \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c54a60c8fbaa774f828e26df79f66229a8a0e010; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 40cf2e058832d9cfaae98dfd77334926275598b6; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 54e785f7d5c197bc06dbb8053700df7e2a093ced; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< ff3f517bf7138e01a17369042908a3f345c0ee41; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< c0315e93552e0d840e9edc6abd71c7db82ec8f51; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< dadce61247c6230489527cc5e343b6002d1114c5; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< 4c986072a8c9249b9398c7a18f216dc26a9f0e35; \>= bcbde0d449eda7afa8f63280b165c8300dbd00e2, \< f123cffdd8fe8ea6c7fded4b88516a42798797d0; Linux 3.11.

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

Yes. Fixed in Linux 40cf2e058832d9cfaae98dfd77334926275598b6, Linux 54e785f7d5c197bc06dbb8053700df7e2a093ced, Linux 4c986072a8c9249b9398c7a18f216dc26a9f0e35. No fix listed yet: follow the vendor advisory.

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

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/c54a60c8fbaa774f828e26df79f66229a8a0e010>
- patch: <https://git.kernel.org/stable/c/40cf2e058832d9cfaae98dfd77334926275598b6>
- patch: <https://git.kernel.org/stable/c/54e785f7d5c197bc06dbb8053700df7e2a093ced>
- patch: <https://git.kernel.org/stable/c/ff3f517bf7138e01a17369042908a3f345c0ee41>
- patch: <https://git.kernel.org/stable/c/c0315e93552e0d840e9edc6abd71c7db82ec8f51>
- patch: <https://git.kernel.org/stable/c/dadce61247c6230489527cc5e343b6002d1114c5>
- patch: <https://git.kernel.org/stable/c/4c986072a8c9249b9398c7a18f216dc26a9f0e35>
- patch: <https://git.kernel.org/stable/c/f123cffdd8fe8ea6c7fded4b88516a42798797d0>

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

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