CVE-2021-20321: Race Condition

Published Oct 12, 2021
·
Updated

A race condition accessing file object in the Linux kernel OverlayFS subsystem was found in the way users do rename in specific way with OverlayFS. A local user could use this flaw to crash the system.

Other sources

An attacker with a low-privileged user on a Linux machine with an overlay mount can escalate his privileges up to root when performing rename in specific way with this overlayfs.

Reference: a295aef603e1 ("ovl: fix missing negative dentry check in ovlrename()")

— Red Hat

In ovlrename of dir.c, there is a possible out of bounds write due to a race condition. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

13 affected componentsFixes available
redhat/kernel<5.15
5.15
Linux Linux kernel<5.15
Linux Linux kernel=5.15
Linux Linux kernel=5.15-rc1
Linux Linux kernel=5.15-rc2
Linux Linux kernel=5.15-rc3
Linux Linux kernel=5.15-rc4
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
android/:linux_kernel:>=:0<:2022-06-05
:2022-06-05
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

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.15
  2. 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
  3. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-06-05
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch a295aef603e1

Event History

Feb 18, 2022
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
DescriptionWeakness
Jun 1, 2022
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected 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-20321?

CVE-2021-20321 is considered a high-severity vulnerability due to its potential to allow local privilege escalation and system crashes.

2

How do I fix CVE-2021-20321?

To fix CVE-2021-20321, update your Linux kernel to version 5.15 or later for Red Hat or to the specified patched versions for Debian.

3

Who is affected by CVE-2021-20321?

CVE-2021-20321 affects users who have low privileges on Linux machines specifically using the OverlayFS feature.

4

Can CVE-2021-20321 cause data loss?

While CVE-2021-20321 primarily enables system crashes, it does not directly lead to data loss but can disrupt system operations significantly.

5

What systems are vulnerable to CVE-2021-20321?

Vulnerable systems include those running specific versions of the Linux kernel, particularly versions prior to 5.15.

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