CVE-2021-4083: Race Condition

Published Dec 3, 2021
·
Updated

A read-after-free memory flaw was found in the Linux kernel's garbage collection for Unix domain socket file handlers in the way users call close() and fget() simultaneously and can potentially trigger a race condition. This flaw allows a local user to crash the system or escalate their privileges on the system.

Other sources

Another possible race with Unix domain socket garbage collection that can lead to read memory after free. Older more or less similar issue is the CVE-2021-0920 with the fix commit cbcf01128d0a ("afunix: fix garbage collect vs MSGPEEK"). This race happens if the file handler in the process of being closed, the close() could happen before fget(), and then garbage collector can get confused by seeing this situation of having seen a file not having any remaining external references and then seeing it being attached to an fd.

Reference and upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=054aa8d439b9

Red Hat

Affected Software

66 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.62.1.rt56.1203.el7
0:3.10.0-1160.62.1.rt56.1203.el7
redhat/kernel<0:3.10.0-1160.62.1.el7
0:3.10.0-1160.62.1.el7
redhat/kernel<0:3.10.0-514.101.1.el7
0:3.10.0-514.101.1.el7
redhat/kernel<0:3.10.0-693.99.1.el7
0:3.10.0-693.99.1.el7
redhat/kernel<0:3.10.0-957.92.1.el7
0:3.10.0-957.92.1.el7
redhat/kernel<0:3.10.0-1062.66.1.el7
0:3.10.0-1062.66.1.el7
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<0:4.18.0-147.64.1.el8_1
0:4.18.0-147.64.1.el8_1
redhat/kernel-rt<0:4.18.0-193.79.1.rt13.129.el8_2
0:4.18.0-193.79.1.rt13.129.el8_2
redhat/kernel<0:4.18.0-193.79.1.el8_2
0:4.18.0-193.79.1.el8_2
redhat/kernel-rt<0:4.18.0-305.45.1.rt7.117.el8_4
0:4.18.0-305.45.1.rt7.117.el8_4
redhat/kernel<0:4.18.0-305.45.1.el8_4
0:4.18.0-305.45.1.el8_4
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
redhat/kernel<5.16
5.16
Linux Linux kernel<4.4.294
Linux Linux kernel>=4.5<4.9.292
Linux Linux kernel>=4.10<4.14.257
Linux Linux kernel>=4.15<4.19.220
Linux Linux kernel>=4.20<5.4.164
Linux Linux kernel>=5.5.0<5.10.84
Linux Linux kernel>=5.11<5.15.7
Linux Linux kernel=5.16-rc1
Linux Linux kernel=5.16-rc2
Linux Linux kernel=5.16-rc3
NetApp H410c Firmware
NetApp H410c
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp Hci Management Node
NetApp Solidfire
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
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Google Android

Remediation

Information

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

Dec 3, 2021
CVE Published
08:00 AM
Dec 7, 2021
Data Sourced
via Red Hat·03:07 PM
DescriptionSeverityAffected Software
Jan 18, 2022
CVE Published
via MITRE·04:51 PM
Data Sourced
via MITRE·04:51 PM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:00 AM
Description
May 2, 2025
Data Sourced
via Ubuntu·04:31 AM
RemedyDescriptionSeverityAffected Software
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-4083?

CVE-2021-4083 has been rated as a medium severity vulnerability, which may allow local users to escalate their privileges or crash the system.

2

How does CVE-2021-4083 occur?

CVE-2021-4083 occurs due to a read-after-free memory flaw in the Linux kernel's garbage collection for Unix domain socket file handlers.

3

How do I fix CVE-2021-4083?

To fix CVE-2021-4083, update your kernel to a version that is patched and not vulnerable, such as those listed in the affected software section.

4

Which software versions are affected by CVE-2021-4083?

CVE-2021-4083 affects multiple versions of the Linux kernel, including various kernel-rt and kernel packages in Red Hat distributions.

5

Is there a workaround for CVE-2021-4083 if I cannot update immediately?

Currently, there are no known workarounds for CVE-2021-4083 other than applying the security patch as soon as possible.

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