Linux Kernel Bluetooth SCO Use-After-Free Enables Local Privilege Escalation
Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Nov 8, 2022

A use-after-free flaw in the Linux kernel Bluetooth HCI SCO subsystem, tracked as CVE-2021-3640, can allow a local privileged attacker to crash a host or escalate privileges. The vulnerability stems from a race involving sco_sock_sendmsg() and sco_conn_del(); it can be triggered through UFFDIO_REGISTER or a comparable mechanism by an attacker holding CAP_NET_ADMIN in the initial user namespace.
Red Hat assigned the issue a Moderate severity rating with a CVSS v3.1 score of 6.7 and classified it as CWE-825, expired pointer dereference. Fixed kernel and kernel-rt packages were released for Red Hat Enterprise Linux 8 and 9, with further fixes for RHEL 8.6 EUS and Red Hat Virtualization; RHEL 6 is unaffected, while out-of-support RHEL 7 kernel variants should be treated as potentially affected.
Why it matters
Impact assessment
CVE-2021-3640 affects Linux hosts running vulnerable Bluetooth SCO kernel code, including unpatched Red Hat Enterprise Linux 8 and 9 kernel or kernel-rt deployments. Successful exploitation can crash the host or yield kernel-level privilege escalation, with resulting compromise of system confidentiality, integrity, and availability.
- Exposure is local rather than network-reachable: exploitation requires
CAP_NET_ADMINin the initial user namespace. - The practical risk is highest on multi-user systems, hosts running privileged network-management workloads, and environments where a foothold with
CAP_NET_ADMINcould be used to obtain full host control. - Red Hat rates the flaw Moderate; its CVSS v3.1 score is 6.7 (
AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H). NVD assigns 7.0. - The supplied references do not report exploitation in the wild.
- RHEL 6 is not affected. RHEL 7
kernel,kernel-alt, andkernel-rtare out of support scope and must be treated as potentially affected until they are retired or independently verified patched.
Supporting facts
- Affected component: Linux kernel Bluetooth HCI SCO subsystem.
- Potential outcomes: denial of service through a kernel crash; local privilege escalation.
- Affected Red Hat product families: RHEL 8, RHEL 9, RHEL 8.6 EUS, and Red Hat Virtualization 4 on RHEL 8 before their applicable fixed errata.


