Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2021-3640: Use-after-free in Linux kernel Bluetooth SCO sco_sock_sendmsg()

Published Mar 3, 2022 · Updated 24 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 2 in a dayToday
CVSS7.0High · v3.1
EPSS0.37%23rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectFedora ProjectNetAppLinuxCanonical
IdentifiersCVE-2021-3640CWE-825

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
NetAppH300e Firmwareoperating_system
NetAppH300s Firmwareoperating_system
NetAppH410c Firmwareoperating_system
NetAppH410s Firmwareoperating_system
NetAppH500e Firmwareoperating_system
NetAppH500s Firmwareoperating_system
NetAppH700e Firmwareoperating_system
NetAppH700s Firmwareoperating_system
FAQ

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.
Activity feed

Recent activity

14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+8 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.