CVE-2021-3640: Race Condition

Published Jul 9, 2021
·
Updated

A flaw use-after-free in function scosocksendmsg() of the Linux kernel HCI subsystem was found in the way user calls ioct UFFDIOREGISTER or other way triggers race condition of the call scoconndel() together with the call scosocksendmsg() with the expected controllable faulting memory page. A privileged local user could use this flaw to crash the system or escalate their privileges on the system.

Other sources

Unexpected locking behavior leads to a use-after-free vulnerability in function scosocksendmsg() allowing the attacker to inject a malicious payload.

Red Hat

Affected Software

52 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-425.3.1.rt7.213.el8
0:4.18.0-425.3.1.rt7.213.el8
redhat/kernel<0:4.18.0-425.3.1.el8
0:4.18.0-425.3.1.el8
redhat/kernel<0:5.14.0-162.6.1.el9_1
0:5.14.0-162.6.1.el9_1
redhat/kernel-rt<0:5.14.0-162.6.1.rt21.168.el9_1
0:5.14.0-162.6.1.rt21.168.el9_1
Linux Linux kernel<4.4.293
Linux Linux kernel>=4.5<4.9.291
Linux Linux kernel>=4.10<4.14.256
Linux Linux kernel>=4.15<4.19.218
Linux Linux kernel>=4.20<5.4.160
Linux Linux kernel>=5.5.0<5.10.80
Linux Linux kernel>=5.11<5.14.19
Linux Linux kernel>=5.15<5.15.3
Debian Debian Linux=9.0
Fedoraproject Fedora=34
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=21.10
NetApp H300s Firmware
NetApp H300s
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
NetApp H410c Firmware
NetApp H410c
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H300s Firmware
NetApp H300s
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
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H500s Firmware
NetApp H500s
debian/linux
5.10.223-15.10.249-16.1.159-16.1.162-16.12.63-16.12.73-16.18.12-16.18.15-1

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

Jul 9, 2021
Data Sourced
via Red Hat·06:34 AM
DescriptionSeverityAffected Software
Jul 18, 2021
CVE Published
12:00 AM
Mar 3, 2022
CVE Published
via MITRE·10:04 PM
Data Sourced
via MITRE·10:04 PM
DescriptionWeakness
Feb 24, 2026
Data Sourced
via Ubuntu·09:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·09:16 PM
Description
Feb 28, 2026
Data Sourced
via Debian·09:18 PM
DescriptionAffected 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-3640?

The severity of CVE-2021-3640 is rated as medium, posing a potential risk for denial of service or data corruption.

2

How do I fix CVE-2021-3640?

To fix CVE-2021-3640, upgrade to the recommended versions of the Linux kernel, specifically 0:4.18.0-425.3.1.el8 or higher.

3

What systems are affected by CVE-2021-3640?

CVE-2021-3640 affects multiple versions of the Linux kernel across various distributions including Red Hat, Ubuntu, and Debian.

4

Is CVE-2021-3640 a remote exploit?

CVE-2021-3640 is not a remote exploit but rather requires local access to trigger the vulnerability.

5

What mitigations exist for CVE-2021-3640?

Mitigations for CVE-2021-3640 involve applying the latest kernel updates that address the use-after-free flaw.

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