cve.bz

CVE-2021-3715 linux linux kernel: Use After Free

7.8 highEPSS 0.4%Fix available

High (7.8) in linux linux kernel. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the "Routing decision" classifier in the Linux kernel's Traffic Control networking subsystem in the way it handled changing of classification filters, leading to a use-after-free condition. This flaw allows unprivileged local users to escalate their privileges on the system. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
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-3715 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3715?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3715?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-3715 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_kernelfrom 3.18 before 4.4.218
linux:linux_kernelfrom 4.5 before 4.9.218
linux:linux_kernelfrom 4.10 before 4.14.175
linux:linux_kernelfrom 4.15 before 4.19.114
linux:linux_kernelfrom 4.20 before 5.4.29
linux:linux_kernelfrom 5.5.0 before 5.5.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.5.17-1DEBIAN-CVE-2021-3715
Ubuntu16.04:LTSlinux4.4.0-179.209UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-aws4.4.0-1107.118UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1066.70~16.04.1UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-azure4.15.0-1082.92~16.04.1UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-gcp4.15.0-1061.65UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-hwe4.15.0-99.100~16.04.1UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-kvm4.4.0-1071.78UBUNTU-CVE-2021-3715
Ubuntu16.04:LTSlinux-oracle4.15.0-1038.42~16.04.1UBUNTU-CVE-2021-3715
Ubuntu18.04:LTSlinux4.15.0-99.100UBUNTU-CVE-2021-3715
Ubuntu18.04:LTSlinux-aws4.15.0-1066.70UBUNTU-CVE-2021-3715
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-3715
29 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.42.2.el7RHSA-2021:3438
Red Hatenterprise_linux:7::computenodeperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more0:3.10.0-1160.42.2.el7RHSA-2021:3438
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.18-20210903.0.el7_9RHSA-2021:3477
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160, kpatch-patch-3_10_0-1160_2_1, kpatch-patch-3_10_0-1160_2_2 and 5 more0:1-9.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_11_1, kpatch-patch-3_10_0-1160_15_2, kpatch-patch-3_10_0-1160_11_1-debuginfo and 1 more0:1-8.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_21_1, kpatch-patch-3_10_0-1160_21_1-debuginfo0:1-6.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_24_1, kpatch-patch-3_10_0-1160_25_1, kpatch-patch-3_10_0-1160_24_1-debuginfo and 1 more0:1-4.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_31_1, kpatch-patch-3_10_0-1160_31_1-debuginfo0:1-3.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_36_2, kpatch-patch-3_10_0-1160_36_2-debuginfo0:1-2.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_41_1, kpatch-patch-3_10_0-1160_41_1-debuginfo0:1-1.el7RHSA-2021:3441
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.42.2.el7RHSA-2021:3438
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-240.el8RHSA-2020:4431
30 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morekernel-obs-build4.12.14-197.102.1SUSE-SU-2021:3876-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 1 more4.12.14-197.102.2SUSE-SU-2021:3876-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 morekernel-syms, kernel-source, kernel-default4.4.180-94.150.1SUSE-SU-2021:3935-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-LTSS, Linux Enterprise Server for SAP Applications 12 SP3 and 2 morekgraft-patch-SLE12-SP3_Update_411-4.3.1SUSE-SU-2021:3935-1
SUSELinux Enterprise High Availability Extension 12 SP3kernel-default4.4.180-94.150.1SUSE-SU-2021:3935-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.83.2SUSE-SU-2021:3972-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.98.1SUSE-SU-2021:3748-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-197.102.2SUSE-SU-2021:3876-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0 and 1 morekernel-default5.3.18-24.93.1SUSE-SU-2021:3754-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-59.34.1SUSE-SU-2021:3675-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_231-6.3.1SUSE-SU-2021:3972-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_251-8.7.1SUSE-SU-2021:3748-1
35 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2kernel-default-base5.3.18-lp152.102.1.lp152.8.49.1openSUSE-SU-2021:1477-1
openSUSELeap 15.2kernel-docs, kernel-syms, kernel-debug and 6 more5.3.18-lp152.102.1openSUSE-SU-2021:1477-1
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-59.34.1openSUSE-SU-2021:3675-1
openSUSELeap 15.3kernel-azure, kernel-source-azure5.3.18-38.28.2openSUSE-SU-2021:3641-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.102.2openSUSE-SU-2021:3876-1
openSUSELeap 15.3kernel-default-base5.3.18-59.34.1.18.21.1openSUSE-SU-2021:3675-1
openSUSELeap 15.3kernel-syms-azure5.3.18-38.28.1openSUSE-SU-2021:3641-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 Important.

Red Hat's statement

This flaw is rated as having Moderate impact (Red Hat Enterprise Linux 7 and lower) because of the need to have CAP_NET_ADMIN privileges and that Red Hat Enterprise Linux 7 disabled unprivileged user/network namespaces by default.

This flaw is rated as having Important impact (Red Hat Enterprise Linux 8) because Red Hat Enterprise Linux 8 enabled unprivileged user/network namespaces by default which can be used to gain CAP_NET_ADMIN privileges in corresponding user namespace even for otherwise unprivileged local user and thus exercise this vulnerability.

Red Hat's mitigation

In order to mitigate this issue, it is possible to prevent the affected code from being loaded by blacklisting the kernel module cls_route.ko. For instructions relating to how to blacklist a kernel module refer to: https://access.redhat.com/solutions/41278.

Alternatively, if cls_route is being used, on Red Hat Enterprise Linux 8, you can disable unprivileged user namespaces by setting user.max_user_namespaces to 0:

# echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

# sysctl -p /etc/sysctl.d/userns.conf

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-1160.42.2.rt56.1182.el7Fixed 2021-09-07RHSA-2021:3439
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.42.2.el7Fixed 2021-09-07RHSA-2021:3438
Red Hat Enterprise Linux 7kpatch-patchFixed 2021-09-07RHSA-2021:3441
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskpatch-patchFixed 2022-10-25RHSA-2022:7173
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-240.rt7.54.el8Fixed 2020-11-04RHSA-2020:4609
Red Hat Enterprise Linux 8kernel-0:4.18.0-240.el8Fixed 2020-11-04RHSA-2020:4431
Red Hat Enterprise Linux 8.1 Extended Update Supportkpatch-patchFixed 2021-09-07RHSA-2021:3442
Red Hat Enterprise Linux 8.1 Extended Update Supportkernel-0:4.18.0-147.54.2.el8_1Fixed 2021-09-07RHSA-2021:3444
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-rt-0:4.18.0-193.65.2.rt13.117.el8_2Fixed 2021-09-07RHSA-2021:3445
Red Hat Enterprise Linux 8.2 Extended Update Supportkpatch-patchFixed 2021-09-07RHSA-2021:3443
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-0:4.18.0-193.65.2.el8_2Fixed 2021-09-07RHSA-2021:3446
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.3.18-20210903.0.el7_9Fixed 2021-09-09RHSA-2021:3477
Red Hat Enterprise Linux 5kernelOut of support scope
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernel-altOut of support scope
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-3715.

References

Check your stackJSON