Skip to main content
Mallory
← Back to News
privilege-escalation-methodendpoint-software-vulnerabilitywidely-deployed-product-advisoryend-of-life-software

Linux Kernel Bluetooth SCO Use-After-Free Enables Local Privilege Escalation

Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Nov 8, 2022

Linux Kernel Bluetooth SCO Use-After-Free Enables Local Privilege Escalation

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_ADMIN in 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_ADMIN could 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, and kernel-rt are 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.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Nov 8, 2022
  1. Reported Nov 8, 20224y ago

    Red Hat extends CVE-2021-3640 fixes to RHEL 8.6 EUS and Virtualization

    Red Hat issued RHSA-2024:0724 to fix CVE-2021-3640 in the RHEL 8.6 Extended Update Support kernel and Red Hat Virtualization 4 for RHEL 8.

    CVE-2021-3640 - Red Hat Customer Portal
  2. Reported Nov 8, 20224y ago

    Red Hat issues RHEL 9 fixes for CVE-2021-3640

    Red Hat issued RHSA-2022:8267 for the RHEL 9 kernel and RHSA-2022:7933 for the RHEL 9 kernel-rt to fix CVE-2021-3640.

    CVE-2021-3640 - Red Hat Customer Portal
  3. Nov 8, 20224y ago

    Red Hat issues RHEL 8 fixes for CVE-2021-3640

    Red Hat issued RHSA-2022:7444 for the RHEL 8 kernel-rt and RHSA-2022:7683 for the RHEL 8 kernel, addressing the Bluetooth SCO use-after-free vulnerability CVE-2021-3640.

    CVE-2021-3640 - Red Hat Customer Portal
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.