CVE-2021-3640: Use-after-free in Linux kernel Bluetooth SCO sco_sock_sendmsg()
- Vendors
- Debian ProjectFedora ProjectNetAppLinuxCanonical
CVE-2021-3640 is a use-after-free vulnerability in the Linux kernel Bluetooth HCI subsystem's SCO implementation. Improper locking permits a race between sco_sock_sendmsg() and sco_conn_del(), allowing connection memory to be freed while a send operation still references it. A local attacker can trigger the race using a controllable faulting memory page, through the UFFDIO_REGISTER ioctl or another mechanism. Exploitation can cause a system crash and potentially enable arbitrary code execution or privilege escalation.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A privileged local attacker can cause a kernel crash, denying service to the entire system. Successful exploitation may also permit arbitrary code execution in kernel context or escalation of privileges, compromising system confidentiality and integrity.
Mitigation
If you can’t patch tonight, do this now.
No vendor-validated temporary workaround is identified. Red Hat states that no mitigation meeting its product-security criteria is available. Apply the applicable kernel security update and reboot.
Remediation
Patch, then assume compromise.
Install the vendor-provided fixed kernel or kernel-rt packages for the applicable distribution and release, then reboot into the patched kernel. RHEL fixes include RHSA-2022:7683 for RHEL 8 kernel, RHSA-2022:7444 for RHEL 8 kernel-rt, RHSA-2022:8267 for RHEL 9 kernel, RHSA-2022:7933 for RHEL 9 kernel-rt, and RHSA-2024:0724 for RHEL 8.6 EUS. Ubuntu fixes are available through USN-8966-1 and USN-8968-1 for their applicable kernel variants; these legacy releases require the relevant Ubuntu Pro entitlement. Ubuntu's kernel ABI changes also require recompilation and reinstallation of installed third-party kernel modules.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-3640 exploited in the wild?
- As of Nov 4, 2026, Mallory has no reports of CVE-2021-3640 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-3640?
- Yes. As of Nov 4, 2026, Mallory has reports of a public exploit for CVE-2021-3640.
- Is there a patch for CVE-2021-3640?
- Install the vendor-provided fixed kernel or kernel-rt packages for the applicable distribution and release, then reboot into the patched kernel. RHEL fixes include RHSA-2022:7683 for RHEL 8 kernel, RHSA-2022:7444 for RHEL 8 kernel-rt, RHSA-2022:8267 for RHEL 9 kernel, RHSA-2022:7933 for RHEL 9 kernel-rt, and RHSA-2024:0724 for RHEL 8.6 EUS.
- What products are affected by CVE-2021-3640?
- Linux Kernel, Debian Project Debian Linux, Fedora Project Fedora, NetApp H300e Firmware, NetApp H300s Firmware, and 7 more.
- How severe is CVE-2021-3640?
- CVE-2021-3640 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 0.37% (23rd percentile) as of Nov 4, 2026.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.