Skip to content
Fencer Vulns
medium 5.5

CVE-2021-47606 json

net: netlink: af_netlink: Prevent empty skb by adding a check on len.

published 2024-06-19 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34608

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 14%
public exploits
0
none known

Summary

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

Patch / fix

  • Linux Linux 4.4.296, 4.9.294, 4.14.259, 4.19.222, 5.4.167, 5.10.87, 5.15.10, 5.16
  • linux Debian 14, Debian 13, Debian 12 5.15.15-1

debian advisories DEBIAN-CVE-2021-47606

  • linux Ubuntu 18.04 LTS 4.15.0-169.177
  • linux Ubuntu 20.04 LTS 5.4.0-105.119
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1121.129
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1069.73
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1068.72
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1018.20
  • linux-kvm Ubuntu 18.04 LTS 4.15.0-1107.109
  • linux-kvm Ubuntu 20.04 LTS 5.4.0-1059.62

ubuntu advisories UBUNTU-CVE-2021-47606

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 9 5.14.0-427.31.1.el9_4
  • rv RHEL 9 5.14.0-427.31.1.el9_4
  • perf RHEL 9 5.14.0-427.31.1.el9_4
  • rtla RHEL 9 5.14.0-427.31.1.el9_4
  • bpftool RHEL 9 7.3.0-427.31.1.el9_4
  • libperf RHEL 9 5.14.0-427.31.1.el9_4
  • kernel-rt RHEL 9 5.14.0-427.31.1.el9_4
  • kernel-64k RHEL 9 5.14.0-427.31.1.el9_4

red hat advisories RHSA-2024:5363

  • kernel-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.63.1
  • kernel-syms-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.63.1
  • kernel-source-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.63.1
  • kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.225.1
  • kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.225.1
  • kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.225.1
  • kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.225.1
  • dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.73.1

suse advisories SUSE-SU-2024:2947-1SUSE-SU-2024:2940-1SUSE-SU-2024:2939-1SUSE-SU-2024:2901-1SUSE-SU-2024:2894-1SUSE-SU-2024:2892-1

  • kernel AlmaLinux 9 5.14.0-427.31.1.el9_4
  • rv AlmaLinux 9 5.14.0-427.31.1.el9_4
  • perf AlmaLinux 9 5.14.0-427.31.1.el9_4
  • rtla AlmaLinux 9 5.14.0-427.31.1.el9_4
  • bpftool AlmaLinux 9 7.3.0-427.31.1.el9_4
  • libperf AlmaLinux 9 5.14.0-427.31.1.el9_4
  • kernel-rt AlmaLinux 9 5.14.0-427.31.1.el9_4
  • kernel-64k AlmaLinux 9 5.14.0-427.31.1.el9_4

almalinux advisories ALSA-2024:5363

  • kernel Rocky Linux 9 5.14.0-427.31.1.el9_4

rocky linux advisories RLSA-2024:5363

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-47606 updated cvss 5.5

kernel: net: netlink: af_netlink: Prevent empty skb by adding a check on len.

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 more
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-427.31.1.el9_4, perf 5.14.0-427.31.1.el9_4, rtla 5.14.0-427.31.1.el9_4, kernel-devel-matched 5.14.0-427.31.1.el9_4, kernel-64k-devel-matched 5.14.0-427.31.1.el9_4, kernel-debug-devel-matched 5.14.0-427.31.1.el9_4, +6 more Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.3.0-427.31.1.el9_4, kernel 5.14.0-427.31.1.el9_4, kernel-64k 5.14.0-427.31.1.el9_4, kernel-core 5.14.0-427.31.1.el9_4, kernel-tools 5.14.0-427.31.1.el9_4, python3-perf 5.14.0-427.31.1.el9_4, +28 more Red Hat Enterprise Linux CRB (v. 9) libperf 5.14.0-427.31.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.31.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.31.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.31.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.31.1.el9_4 Red Hat Enterprise Linux NFV (v. 9) kernel-rt 5.14.0-427.31.1.el9_4, kernel-rt-kvm 5.14.0-427.31.1.el9_4, kernel-rt-core 5.14.0-427.31.1.el9_4, kernel-rt-modules 5.14.0-427.31.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.31.1.el9_4, kernel-rt-debug-core 5.14.0-427.31.1.el9_4, +6 more Red Hat Enterprise Linux RT (v. 9) kernel-rt 5.14.0-427.31.1.el9_4, kernel-rt-core 5.14.0-427.31.1.el9_4, kernel-rt-modules 5.14.0-427.31.1.el9_4, kernel-rt-debug-core 5.14.0-427.31.1.el9_4, kernel-rt-modules-core 5.14.0-427.31.1.el9_4, kernel-rt-debug-modules 5.14.0-427.31.1.el9_4, +4 more
    fixed: vendor fix RHSA-2024:5363
  • Red Hat Enterprise Linux AppStream (v. 9) kernel-headers 5.14.0-427.31.1.el9_4 Red Hat Enterprise Linux CRB (v. 9) kernel-cross-headers 5.14.0-427.31.1.el9_4
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.