CVE-2021-20177: Medium severity Linux Linux kernel vulnerability

Published Jan 11, 2021
·
Updated

A flaw was found in the Linux kernel's implementation of string matching within a packet. A privileged user (with root or CAPNETADMIN) when inserting iptables rules could insert a rule which can panic the system. Kernel before kernel 5.5-rc1 is affected.

Other sources

A flaw was found in the Linux kernels implementation of string matching within a packet. A privileged user ( with root or CAPNETADMIN ) when inserting iptables rules could insert a rule which can panic the system.

This could lead to a denial of service or possibly worse. Further investigation is ongoing.

Upstream patch: https://github.com/torvalds/linux/commit/ca58fbe06c54

Upstream bugzilla: https://bugzilla.kernel.org/showbug.cgi?id=209823

— Red Hat

Affected Software

46 affected componentsFixes available
redhat/kernel<5.5
5.5
Linux Linux kernel<=5.4.9
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.4<5.4.0-1038.40~18.04.1
5.4.0-1038.40~18.04.1
ubuntu/linux-azure-5.4<5.4.0-1040.42~18.04.1
5.4.0-1040.42~18.04.1
ubuntu/linux-gcp-5.4<5.4.0-1037.40~18.04.1
5.4.0-1037.40~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1036.38~18.04.1
5.4.0-1036.38~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1010.11~18.04.1
5.4.0-1010.11~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-66.74~18.04.2
5.4.0-66.74~18.04.2
ubuntu/linux-oracle-5.4<5.4.0-1038.41~18.04.1
5.4.0-1038.41~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1029.32~18.04.1
5.4.0-1029.32~18.04.1
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-edge*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux<5.4.0-66.74
5.4.0-66.74
ubuntu/linux-aws<5.4.0-1038.40
5.4.0-1038.40
ubuntu/linux-azure<5.4.0-1040.42
5.4.0-1040.42
ubuntu/linux-gcp<5.4.0-1037.40
5.4.0-1037.40
ubuntu/linux-gke<5.4.0-1036.38
5.4.0-1036.38
ubuntu/linux-gkeop<5.4.0-1010.11
5.4.0-1010.11
ubuntu/linux-kvm<5.4.0-1033.34
5.4.0-1033.34
ubuntu/linux-oracle<5.4.0-1038.41
5.4.0-1038.41
ubuntu/linux-raspi<5.4.0-1029.32
5.4.0-1029.32
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
debian/linux
4.19.171-25.5.13-1
debian/linux-4.19
4.19.171-2~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.5
  2. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1038.40~18.04.1
  3. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1040.42~18.04.1
  4. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1037.40~18.04.1
  5. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1036.38~18.04.1
  6. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1010.11~18.04.1
  7. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-66.74~18.04.2
  8. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1038.41~18.04.1
  9. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1029.32~18.04.1
  10. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-66.74
  11. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1038.40
  12. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1040.42
  13. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1037.40
  14. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1036.38
  15. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1010.11
  16. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1033.34
  17. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1038.41
  18. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1029.32
  19. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  20. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  21. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  22. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 4.19.171-2Fixed in 5.5.13-1
  23. Upgrade

    Upgrade debian/linux-4.19 to a version that resolves this vulnerability.

    Fixed in 4.19.171-2~deb9u1
  24. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.5-rc1

Event History

Jan 11, 2021
Data Sourced
01:53 AM
DescriptionSeverityAffected Software
Jan 12, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
May 26, 2021
Data Sourced
via Red Hat·02:39 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·08:48 PM
Data Sourced
via MITRE·08:48 PM
DescriptionWeakness
Jun 2, 2021
Data Sourced
09:02 PM
Weakness
Data Sourced
via NVD·09:02 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·09:02 PM
Affected Software
Nov 21, 2024
Updated
via NVD·05:46 AM
RemedyAffected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2021-20177?

CVE-2021-20177 is classified as a high-severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2021-20177?

To mitigate CVE-2021-20177, update the Linux kernel to version 5.5 or higher.

3

What systems are affected by CVE-2021-20177?

CVE-2021-20177 affects Linux kernel versions prior to 5.5-rc1, including certain configurations of Red Hat and Debian.

4

Who can exploit CVE-2021-20177?

CVE-2021-20177 can be exploited by privileged users with root or CAP_NET_ADMIN permissions.

5

What is the impact of exploiting CVE-2021-20177?

Exploiting CVE-2021-20177 can lead to a system panic, causing the system to become unresponsive.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203