cve.bz

CVE-2021-20317 Improper Initialization

4.4 mediumEPSS 0.4%Fix available

Medium (4.4). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the Linux kernel. A corrupted timer tree caused the task wakeup to be missing in the timerqueue_add function in lib/timerqueue.c. This flaw allows a local attacker with special user privileges to cause a denial of service, slowing and eventually stopping the system while running OSP.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-665 Improper Initialization
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20317 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20317?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20317?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20317 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 5.4
linux:linux_kernel5.4
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.290-1DLA-2843-1
Debian9linux-4.194.19.232-1~deb9u1DLA-2941-1
Debian10linux4.19.232-1DSA-5096-1
Debian12, 13, 14linux5.4.6-1DEBIAN-CVE-2021-20317
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-20317
Ubuntu18.04:LTSlinux4.15.0-166.174UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-aws4.15.0-1118.125UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1129.142UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1033.38UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-20317
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1114.128UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-kvm4.15.0-1105.107UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-oracle4.15.0-1085.93UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-raspi24.15.0-1101.108UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu18.04:LTSlinux-snapdragon4.15.0-1118.127UBUNTU-CVE-2021-20317 USN-5209-1
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 4 moreno fix listedUBUNTU-CVE-2021-20317
22 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-348.2.1.el8_5RHSA-2021:4647
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-348.2.1.el8_5RHSA-2021:4647
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-348.2.1.rt7.132.el8_5RHSA-2021:4646
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-348.2.1.rt7.132.el8_5RHSA-2021:4646
Red Hatrhel_eus:8.2::baseosperf, kernel, bpftool and 30 more0:4.18.0-193.70.1.el8_2RHSA-2021:4871
Red Hatrhel_eus:8.2::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-193.70.1.el8_2RHSA-2021:4871
Red Hatrhel_eus:8.2::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-193.70.1.rt13.120.el8_2RHSA-2021:4875
Red Hatrhel_eus:8.2::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-193.70.1.rt13.120.el8_2RHSA-2021:4875
Red Hatrhel_eus:8.4::baseosperf, kernel, bpftool and 30 more0:4.18.0-305.28.1.el8_4RHSA-2021:4650
Red Hatrhel_eus:8.4::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-305.28.1.el8_4RHSA-2021:4650
Red Hatrhel_eus:8.4::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-305.28.1.rt7.100.el8_4RHSA-2021:4648
Red Hatrhel_eus:8.4::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-305.28.1.rt7.100.el8_4RHSA-2021:4648
AlmaLinux8kernel-tools-libs-devel4.18.0-348.2.1.el8_5ALSA-2021:4647
Rocky Linux8kernel0:4.18.0-348.2.1.el8_5RLSA-2021:4647
Rocky Linux8kernel-rt0:4.18.0-348.2.1.rt7.132.el8_5RLSA-2021:4646

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

In order to mitigate this issue, it is possible to prevent the affected code by loading the kvm module with "pi_inject_timer=0" parameter.

~~~

rmmod kvm_intel kvm

modprobe kvm pi_inject_timer=0

modprobe kvm_intel

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-348.2.1.rt7.132.el8_5Fixed 2021-11-15RHSA-2021:4646
Red Hat Enterprise Linux 8kernel-0:4.18.0-348.2.1.el8_5Fixed 2021-11-15RHSA-2021:4647
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-rt-0:4.18.0-193.70.1.rt13.120.el8_2Fixed 2021-11-30RHSA-2021:4875
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-0:4.18.0-193.70.1.el8_2Fixed 2021-11-30RHSA-2021:4871
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-rt-0:4.18.0-305.28.1.rt7.100.el8_4Fixed 2021-11-15RHSA-2021:4648
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-0:4.18.0-305.28.1.el8_4Fixed 2021-11-15RHSA-2021:4650
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelWill not fix
Red Hat Enterprise Linux 7kernel-rtWill not fix
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20317.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-167-09Siemens SCALANCE LPE9403 Third-Party Vulnerabilities2022-06-14MultipleSCALANCE LPE9403none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON