CVE-2021-20322: High severity Linux Linux kernel vulnerability

Published Aug 26, 2021
·
Updated

A flaw in the processing of received ICMP errors (ICMP fragment needed and ICMP redirect) in the Linux kernel functionality was found to allow the ability to quickly scan open UDP ports. This flaw allows an off-path remote user to effectively bypass the source port UDP randomization. The highest threat from this vulnerability is to confidentiality and possibly integrity, because software that relies on UDP source port randomization are indirectly affected as well.

Other sources

A flaw in the processing of the received ICMP errors (ICMP fragment needed and ICMP redirect) in the Linux kernel functionality was found that allows to quickly scan open UDP ports. This flaw allows an off-path remote user to effectively bypassing source port UDP randomization. This flaw is similar to the previous CVE-2020-25705 (both DNS poisoning attack based on ICMP replies for open ports scanning, but other type of ICMP packets).

As result of research work, Keyu Man reported that the IP fragments (fragmented PING echo reply) could be used by attackers to get useful signal (that for example could be used for the DNS poisoning attack). After considering what could be improved in kernel to prevent this, there two suggested ways: I. The most direct way is to use the socket option IPPMTUDISCOMIT, which instructs the OS not to accept the ICMP frag needed messages and therefore eliminates the side channel related processing in the kernel; II. Randomize the caching structure: (1) the max length of the linked list used for solving hash collisions (currently 5), (2) the eviction policy (currently the oldest will always be evicted), (3) the secret of hash function, i.e., we can re-key periodically (every few seconds or tens of seconds).

Reference (for IPv6 and IPv4 patch respectively): git commit 4785305c05b25a242e5314cc821f54ade4c18810 (plus a00df2caffed3883c341d5685f830434312e4a43) and 6457378fe796815c973f631a1904e147d6ee33b1 (plus 67d6d681e15b578c1725bad8ad079e05d1c48a8e).

Red Hat

Affected Software

68 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.9.1.rt7.166.el8
0:4.18.0-372.9.1.rt7.166.el8
redhat/kernel<0:4.18.0-372.9.1.el8
0:4.18.0-372.9.1.el8
redhat/kernel-rt<0:4.18.0-305.49.1.rt7.121.el8_4
0:4.18.0-305.49.1.rt7.121.el8_4
redhat/kernel<0:4.18.0-305.49.1.el8_4
0:4.18.0-305.49.1.el8_4
Linux Linux kernel<=5.14.21
Fedoraproject Fedora=34
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp E-Series SANtricity OS Controller>=11.0<=11.70.1
NetApp Solidfire\, Enterprise Sds \& Hci Storage Node
NetApp Solidfire \& Hci Management Node
All of the following
NetApp Fas Baseboard Management Controller Firmware
NetApp Fas Baseboard Management Controller=8300
All of the following
NetApp Fas Baseboard Management Controller Firmware
NetApp Fas Baseboard Management Controller=8700
All of the following
NetApp Aff Baseboard Management Controller Firmware
NetApp Aff Baseboard Management Controller=a400
All of the following
NetApp Aff A700s Firmware
NetApp AFF A700s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp Hci Compute Node Firmware
NetApp Hci Compute Node
Oracle Communications Cloud Native Core Binding Support Function=22.1.3
Oracle Communications Cloud Native Core Network Exposure Function=22.1.1
Oracle Communications Cloud Native Core Policy=22.2.0
NetApp Fas Baseboard Management Controller Firmware
NetApp Fas Baseboard Management Controller=8300
NetApp Fas Baseboard Management Controller=8700
NetApp Aff Baseboard Management Controller Firmware
NetApp Aff Baseboard Management Controller=a400
NetApp Aff A700s Firmware
NetApp AFF A700s
NetApp Baseboard Management Controller H700s Firmware
NetApp Baseboard Management Controller H700s
NetApp Baseboard Management Controller H700e Firmware
NetApp Baseboard Management Controller H700e
NetApp Baseboard Management Controller H500s Firmware
NetApp Baseboard Management Controller H500s
NetApp Baseboard Management Controller H410s Firmware
NetApp Baseboard Management Controller H410s
NetApp Baseboard Management Controller H500e Firmware
NetApp Baseboard Management Controller H500e
NetApp Baseboard Management Controller H300e Firmware
NetApp Baseboard Management Controller H300e
NetApp Baseboard Management Controller H300s Firmware
NetApp Baseboard Management Controller H300s
NetApp Hci Compute Node Firmware
NetApp Hci Compute Node
redhat/kernel<5.15
5.15
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Linux Linux kernel>=4.15<4.19.215
Linux Linux kernel>=4.20<5.4.157
Linux Linux kernel>=5.5<5.10.62
Linux Linux kernel>=5.11<5.13.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:4.18.0-372.9.1.rt7.166.el8
  2. Upgrade

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

    Fixed in 0:4.18.0-372.9.1.el8
  3. Upgrade

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

    Fixed in 0:4.18.0-305.49.1.rt7.121.el8_4
  4. Upgrade

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

    Fixed in 0:4.18.0-305.49.1.el8_4
  5. Upgrade

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

    Fixed in 5.15
  6. Upgrade

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

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  7. Configuration

    For the most direct mitigation, set the socket option IP_PMTUDISC_OMIT so the OS does not accept ICMP frag needed messages, eliminating the kernel side-channel processing tied to the ICMP fragment needed/ICMP redirect flaw.

    Linux kernel (IP stack) IP_PMTUDISC_OMIT = enable (use socket option IP_PMTUDISC_OMIT)
  8. Configuration

    Apply the suggested kernel change to 'Randomize the caching structure' to address the ICMP error processing side channel (the material describes improving max linked-list length for hash collisions, eviction policy, and periodic re-keying via secret randomization).

    Linux kernel (hash collision / caching structure used in processing) randomize caching structure parameters = randomize (referred as 'Randomize the caching structure')
  9. Compensating control

    Use network-level filtering to reduce exposure to off-path probing that leverages received ICMP errors for UDP port scanning (e.g., restrict/allow ICMP types needed for your environment and block the side-channel-related ICMP fragment-needed/ICMP redirect traffic at network controls).

Event History

Aug 26, 2021
CVE Published
08:00 AM
Feb 18, 2022
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:54 PM
Description
May 2, 2025
Data Sourced
via Ubuntu·03:51 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-20322?

CVE-2021-20322 is classified as a high severity vulnerability due to its ability to enable remote users to bypass UDP source port randomization.

2

What systems are affected by CVE-2021-20322?

CVE-2021-20322 affects various versions of the Linux kernel, specifically kernel versions prior to 5.15 and specific Red Hat kernel packages.

3

How do I fix CVE-2021-20322?

To remediate CVE-2021-20322, update your kernel to a patched version such as 0:4.18.0-372.9.1.el8 or 5.15.

4

Can CVE-2021-20322 be exploited remotely?

Yes, CVE-2021-20322 can be exploited by off-path remote users to scan open UDP ports effectively.

5

What are the mitigations for CVE-2021-20322?

Mitigations for CVE-2021-20322 include applying the necessary kernel updates and following best practices for network security.

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