CVE-2021-47217 json
x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails
published 2024-04-10 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-33865
- 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:
x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails
Check for a valid hv_vp_index array prior to derefencing hv_vp_index when setting Hyper-V's TSC change callback. If Hyper-V setup failed in hyperv_init(), the kernel will still report that it's running under Hyper-V, but will have silently disabled nearly all functionality.
BUG: kernel NULL pointer dereference, address: 0000000000000010 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP CPU: 4 PID: 1 Comm: swapper/0 Not tainted 5.15.0-rc2+ #75 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:set_hv_tscchange_cb+0x15/0xa0 Code: <8b> 04 82 8b 15 12 17 85 01 48 c1 e0 20 48 0d ee 00 01 00 f6 c6 08 ... Call Trace: kvm_arch_init+0x17c/0x280 kvm_init+0x31/0x330 vmx_init+0xba/0x13a do_one_initcall+0x41/0x1c0 kernel_init_freeable+0x1f2/0x23b kernel_init+0x16/0x120 ret_from_fork+0x22/0x30
Patch / fix
- Linux Linux 4.19.218, 5.4.162, 5.10.82, 5.15.5, 5.16
- linux Debian 14, Debian 13, Debian 12 5.15.5-1
debian advisories DEBIAN-CVE-2021-47217
- linux Ubuntu 20.04 LTS 5.4.0-97.110
- linux-aws Ubuntu 20.04 LTS 5.4.0-1064.67
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1063.67
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1013.14
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1054.56
- linux-azure Ubuntu 20.04 LTS 5.4.0-1068.71
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1032.33
- linux-raspi Ubuntu 20.04 LTS 5.4.0-1052.58
ubuntu advisories UBUNTU-CVE-2021-47217
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-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.216.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.216.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.216.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.216.1
- kernel-rt SLE Micro 5.5, Real Time Module 15 SP5, openSUSE Leap 15.5 5.14.21-150500.13.52.1
- kernel-syms-rt Real Time Module 15 SP5, openSUSE Leap 15.5 5.14.21-150500.13.52.1
- kernel-rt_debug Real Time Module 15 SP5, openSUSE Leap 15.5 5.14.21-150500.13.52.1
- kernel-source-rt SLE Micro 5.5, Real Time Module 15 SP5, openSUSE Leap 15.5 5.14.21-150500.13.52.1
suse advisories SUSE-SU-2024:1870-1SUSE-SU-2024:1663-1SUSE-SU-2024:1659-1SUSE-SU-2024:1647-1SUSE-SU-2024:1646-1SUSE-SU-2024:1644-1
- git.kernel.org/stable/c/b20ec58f8a6f4fef32cc71480ddf824584e24743 commit
- git.kernel.org/stable/c/b0e44dfb4e4c699cca33ede431b8d127e6e8d661 commit
- git.kernel.org/stable/c/9c177eee116cf888276d3748cb176e72562cfd5c commit
- git.kernel.org/stable/c/8823ea27fff6084bbb4bc71d15378fae0220b1d8 commit
- git.kernel.org/stable/c/daf972118c517b91f74ff1731417feb4270625a4 commit
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-47217 updated cvss 4.4
kernel: x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails
-
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 moreaffected: 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 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available
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.24% 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
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/b20ec58f8a6f4fef32cc71480ddf824584e24743
patch
-
git.kernel.org
/stable/c/b0e44dfb4e4c699cca33ede431b8d127e6e8d661
patch
-
git.kernel.org
/stable/c/9c177eee116cf888276d3748cb176e72562cfd5c
patch
-
git.kernel.org
/stable/c/8823ea27fff6084bbb4bc71d15378fae0220b1d8
patch
-
git.kernel.org
/stable/c/daf972118c517b91f74ff1731417feb4270625a4
patch
Sources
- CVE List CVE-2021-47217
- NVD CVE-2021-47217
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.