cve.bz

CVE-2018-20836 Race Condition

8.1 highEPSS 5.1%Fix available

High (8.1). EPSS 5.1% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in the Linux kernel before 4.20. There is a race condition in smp_task_timedout() and smp_task_done() in drivers/scsi/libsas/sas_expander.c, leading to a use-after-free.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
5.1% (unchanged from 5.1% a week ago; 5.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-416 Use After Free
OWASP Top 10
A06:2025 Insecure Design
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-2018-20836 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20836?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20836?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-2018-20836 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 3.16.72
linux:linux_kernelfrom 3.17 before 3.18.140
linux:linux_kernelfrom 3.19 before 4.4.180
linux:linux_kernelfrom 4.5 before 4.9.175
linux:linux_kernelfrom 4.10 before 4.14.118
linux:linux_kernelfrom 4.15 before 4.19.42
canonical:ubuntu_linux16.04
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
f5:traffix_signaling_delivery_controller5.0.0
f5:traffix_signaling_delivery_controller5.1.0
netapp:active_iq_unified_manager9.5 and later
netapp:vasa_provider_for_clustered_data_ontap7.2 and later
netapp:virtual_storage_console7.2 and later
opensuse:leap15.0
opensuse:leap15.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8linux3.16.72-1DLA-1884-1
Debian8linux-4.94.9.168-1+deb9u5~deb8u1DLA-1885-1
Debian9linux4.9.168-1+deb9u5DSA-4497-1
Debian10linux4.19.37-5+deb10u2DSA-4495-1
Debian12, 13, 14linux5.2.6-1DEBIAN-CVE-2018-20836
Ubuntu14.04:LTSlinux-azure4.15.0-1037.39~14.04.2UBUNTU-CVE-2018-20836
Ubuntu16.04:LTSlinux4.4.0-157.185UBUNTU-CVE-2018-20836 USN-4076-1
Ubuntu16.04:LTSlinux-aws4.4.0-1090.101UBUNTU-CVE-2018-20836 USN-4076-1
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1032.34~16.04.1UBUNTU-CVE-2018-20836
Ubuntu16.04:LTSlinux-azure4.15.0-1037.39~16.04.1UBUNTU-CVE-2018-20836
Ubuntu16.04:LTSlinux-gcp4.15.0-1027.28~16.04.1UBUNTU-CVE-2018-20836
Ubuntu16.04:LTSlinux-hwe4.15.0-45.48~16.04.1UBUNTU-CVE-2018-20836
Ubuntu16.04:LTSlinux-kvm4.4.0-1052.59UBUNTU-CVE-2018-20836 USN-4076-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1117.126UBUNTU-CVE-2018-20836 USN-4076-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1121.127UBUNTU-CVE-2018-20836
Ubuntu18.04:LTSlinux4.15.0-44.47UBUNTU-CVE-2018-20836
Ubuntu18.04:LTSlinux-aws4.15.0-1032.34UBUNTU-CVE-2018-20836
15 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.el7RHSA-2020:4060
Red Hatenterprise_linux:7::hypervisorperf, python-perf, kernel-devel and 1 more0:3.10.0-957.65.1.el7RHSA-2020:5656
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.el7RHSA-2020:4060
Red Hatrhel_eus:7.6::computenodeperf, kernel, bpftool and 16 more0:3.10.0-957.65.1.el7RHSA-2020:5656
Red Hatrhel_eus:7.6::serverperf, kernel, bpftool and 23 more0:3.10.0-957.65.1.el7RHSA-2020:5656
Red Hatrhel_eus:7.7::computenodeperf, kernel, bpftool and 16 more0:3.10.0-1062.43.1.el7RHSA-2021:0019
Red Hatrhel_eus:7.7::serverperf, kernel, bpftool and 23 more0:3.10.0-1062.43.1.el7RHSA-2021:0019
Red Hatrhel_extras_rt:7kernel-rt, kernel-rt-doc, kernel-rt-kvm and 14 more0:3.10.0-1160.rt56.1131.el7RHSA-2020:4062
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 2 morekernel-syms, kernel-source, kernel-default4.4.121-92.117.1SUSE-SU-2019:1823-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekgraft-patch-SLE12-SP2_Update_311-3.3.1SUSE-SU-2019:1823-1
SUSEEnterprise Storage 5, Linux Enterprise Server 12 SP3, Linux Enterprise Server 12 SP3-LTSS and 2 morekernel-syms, kernel-source, kernel-default4.4.180-94.100.1SUSE-SU-2019:1852-1
SUSEEnterprise Storage 5, Linux Enterprise Server 12 SP3, Linux Enterprise Server 12 SP3-LTSS and 2 morekgraft-patch-SLE12-SP3_Update_271-4.3.1SUSE-SU-2019:1852-1
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4kernel-syms, kernel-source, kernel-default4.12.14-95.24.1SUSE-SU-2019:1851-1
SUSELinux Enterprise High Availability Extension 12 SP2kernel-default4.4.121-92.117.1SUSE-SU-2019:1823-2
SUSELinux Enterprise High Availability Extension 12 SP3kernel-default4.4.180-94.100.1SUSE-SU-2019:1852-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Workstation Extension 12 SP4kernel-default4.12.14-95.24.1SUSE-SU-2019:1851-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.20.1SUSE-SU-2020:1142-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15, Linux Enterprise Module for Legacy 15 and 1 morekernel-default4.12.14-150.27.1SUSE-SU-2019:1855-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1, Linux Enterprise Module for Legacy 15 SP1 and 1 morekernel-default4.12.14-197.10.1SUSE-SU-2019:1854-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_61-6.5.1SUSE-SU-2019:1851-1
20 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0kernel-docs, kernel-syms, kernel-debug and 6 more4.12.14-lp150.12.67.1openSUSE-SU-2019:1716-1
openSUSELeap 15.1kernel-docs, kernel-syms, kernel-debug and 6 more4.12.14-lp151.28.10.1openSUSE-SU-2019:1757-1

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; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-1160.rt56.1131.el7Fixed 2020-09-29RHSA-2020:4062
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.el7Fixed 2020-09-29RHSA-2020:4060
Red Hat Enterprise Linux 7.6 Extended Update Supportkernel-0:3.10.0-957.65.1.el7Fixed 2020-12-22RHSA-2020:5656
Red Hat Enterprise Linux 7.7 Extended Update Supportkernel-0:3.10.0-1062.43.1.el7Fixed 2021-01-05RHSA-2021:0019
Red Hat Virtualization 4.2 for Red Hat Enterprise Linux 7.6 EUSkernel-0:3.10.0-957.65.1.el7Fixed 2020-12-22RHSA-2020:5656
Red Hat Enterprise Linux 5kernelWill not fix
Red Hat Enterprise Linux 6kernelWill not fix
Red Hat Enterprise Linux 7kernel-altWill not fix
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernel-rtOut of support scope

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-2018-20836.

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