CVE-2021-3640
HIGH 7 ALL-YEARSA flaw use-after-free in function sco_sock_sendmsg() of the Linux kernel HCI subsystem was found in the way user calls ioct UFFDIO_REGISTER or other way triggers race condition of the call sco_conn_del() together with the call sco_sock_sendmsg() 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.
Severe if exploited (CVSS 7), but no confirmed exploitation. Patch on a normal cadence.
Exploitation likelihood
0.4%chance of exploitation in 30 days · 31st percentile
Impact if exploited
7CVSS 3.1 · HIGH · NVD
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ⚠Access: Requires local access to the host
- ⚠Privileges: Requires a low-privilege account
- ✓User interaction: No user interaction needed
- ⚠Complexity: Needs a race window or specific setup
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked weekly for the full archive, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Affected
Vendors Linux Debian Fedoraproject Canonical Netapp
Products Kernel Linux Kernel Debian Linux Fedora Ubuntu Linux H300s Firmware H300s H700s Firmware H700s H300e Firmware H300e H500e Firmware H500e H700e Firmware H700e H410s Firmware H410s H410c Firmware H410c H500s Firmware H500s
Weakness (CWE)
- CWE-362: - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), CWE-416 - Use After Free.
- CWE-416: Use after free
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References and research data (JSON)
Vendor product assessments
Showing 32 of 518 vendor product statements; 486 omitted. Read the full vendor advisory.
bpftool-debuginfo-0:4.18.0-372.91.1.el8_6.x86_64 as a component of Red Hat Virtualization 4 Hypervisor for RHEL 8 · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_6?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-zfcpdump-devel-0:5.14.0-162.6.1.el9_1.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_1?arch=s390x
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-debug-modules-0:4.18.0-372.91.1.el8_6.aarch64 as a component of Red Hat Enterprise Linux BaseOS EUS (v.8.6) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_6?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
perf-0:4.18.0-372.91.1.el8_6.ppc64le as a component of Red Hat Enterprise Linux BaseOS EUS (v.8.6) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_6?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-debug-devel-0:4.18.0-425.3.1.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
perf-0:4.18.0-425.3.1.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]?arch=aarch64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-debug-modules-0:5.14.0-162.6.1.el9_1.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_1?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
python3-perf-debuginfo-0:5.14.0-162.6.1.el9_1.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_1?arch=ppc64le
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
perf-debuginfo-0:4.18.0-425.3.1.el8.x86_64 as a component of Red Hat CodeReady Linux Builder (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-rt-devel-0:4.18.0-425.3.1.rt7.213.el8.x86_64 as a component of Red Hat Enterprise Linux Real Time for NFV (v. 8) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
kernel-rt-modules-extra-0:5.14.0-162.6.1.rt21.168.el9_1.x86_64 as a component of Red Hat Enterprise Linux Real Time (v. 9) · fixed
Vendor assessment for this product only.
pkg:rpm/redhat/[email protected]_1?arch=x86_64
- vendor fix: For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Vendor guidance
- workaround: 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.
bpftool as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/bpftool
- workaround: 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.
- no fix planned: Out of support scope
kernel-alt.src as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-alt?arch=src
- workaround: 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.
- no fix planned: Out of support scope
kernel-debug-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-debug-devel
- workaround: 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.
- no fix planned: Out of support scope
kernel-doc as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-doc
- workaround: 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.
- no fix planned: Out of support scope
kernel-kdump-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-kdump-devel
- workaround: 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.
- no fix planned: Out of support scope
kernel-rt-debug-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-debug-devel
- workaround: 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.
- no fix planned: Out of support scope
kernel-rt-doc as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-doc
- workaround: 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.
- no fix planned: Out of support scope
kernel-rt-trace-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt-trace-devel
- workaround: 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.
- no fix planned: Out of support scope
kernel-rt.src as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-rt?arch=src
- workaround: 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.
- no fix planned: Out of support scope
kernel-tools-libs-devel as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/kernel-tools-libs-devel
- workaround: 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.
- no fix planned: Out of support scope
python-perf as a component of Red Hat Enterprise Linux 7 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/python-perf
- workaround: 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.
- no fix planned: Out of support scope
kernel as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-abi-whitelists as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-abi-whitelists
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-debug as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-debug
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-debug-devel as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-debug-devel
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-doc as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-doc
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-firmware as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-firmware
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-kdump as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-kdump
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00kernel-kdump-devel as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/kernel-kdump-devel
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00perf as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/perf
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00python-perf as a component of Red Hat Enterprise Linux 6 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/python-perf
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
Known Affected Software Configurations
| Vendor | Product | Version range |
|---|---|---|
| Linux | Linux Kernel | < 4.4.293 |
| Linux | Linux Kernel | ≥ 4.5 and < 4.9.291 |
| Linux | Linux Kernel | ≥ 4.10 and < 4.14.256 |
| Linux | Linux Kernel | ≥ 4.15 and < 4.19.218 |
| Linux | Linux Kernel | ≥ 4.20 and < 5.4.160 |
| Linux | Linux Kernel | ≥ 5.5.0 and < 5.10.80 |
| Linux | Linux Kernel | ≥ 5.11 and < 5.14.19 |
| Linux | Linux Kernel | ≥ 5.15 and < 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 | H700s Firmware | * |
| Netapp | H300e Firmware | * |
| Netapp | H500e Firmware | * |
| Netapp | H700e Firmware | * |
| Netapp | H410s Firmware | * |
| Netapp | H410c Firmware | * |
| Netapp | H500s Firmware | * |
All CVSS metrics
- HIGH 7 v3.1 · NVD Primary
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - MEDIUM 6.9 v2.0 · NVD Primary
AV:L/AC:M/Au:N/C:C/I:C/A:C
References
Exploit-tagged references (not proof of a PoC)
- https://www.openwall.com/lists/oss-security/2021/07/22/1 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
Patches & mitigations
- https://bugzilla.redhat.com/show_bug.cgi?id=1980646 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00 - https://ubuntu.com/security/CVE-2021-3640 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397
Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00 - https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397
Advisories
- https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397 - https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397 - https://www.debian.org/security/2022/dsa-5096 CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397 - https://security.netapp.com/advisory/ntap-20220419-0003/ CVE record · redhat · Updated 2022-04-19T18:06:25.000Z
CVE record · CVE · Updated 2024-08-03T17:01:07.744Z
NVD · CVE-2021-3640 · Updated 2026-06-17T04:05:29.397 - https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3640.json Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-26940 EUVD · EUVD-2021-26940
Technical & other
- https://access.redhat.com/security/cve/CVE-2021-3640 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://www.cve.org/CVERecord?id=CVE-2021-3640 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-3640 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://lkml.org/lkml/2021/8/28/238 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://access.redhat.com/errata/RHSA-2024:0724 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://access.redhat.com/errata/RHSA-2022:8267 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://access.redhat.com/errata/RHSA-2022:7683 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://access.redhat.com/errata/RHSA-2022:7444 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
- https://access.redhat.com/errata/RHSA-2022:7933 Red Hat · CVE-2021-3640 · Updated 2026-06-28T05:52:48+00:00
Sources: NVD · CVE.org · All sources and attribution · EPSS