CVE-2021-3640
publishedkernel: use-after-free vulnerability in function sco_sock_sendmsg()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | kernelAffects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above. | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1727 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2752 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-049 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-010 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-425.3.1.el8 | ELSA-2022-7683 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-093 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Debian | buster | linux | Advisory build | 4.19.232-1 | DSA-5096-1 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-162.6.1.el9_1 | ELSA-2022-8267 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-9 | kernelaarch64 | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | kernelppc64le | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | kernels390x | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | kernelsrc | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | kernelx86_64 | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-425.3.1.rt7.213.el8 | ALSA-2022:7444 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-425.3.1.el8 | ALSA-2022:7683 |
| AlmaLinux | 9 | bpftool | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug-kvm | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-kvm | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-162.6.1.rt21.168.el9_1 | ALSA-2022:7933 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-162.6.1.el9_1 | ALSA-2022:8267 |
| Debian | stretch | linux | Advisory build | 4.9.303-1 | DLA-2940-1 |
| Debian | stretch | linux-4.19 | Advisory build | 4.19.232-1~deb9u1 | DLA-2941-1 |
| Oracle Linux | 7 | kernel-uekaarch64 | Advisory build | 0:5.4.17-2136.304.4.1.el7uek | ELSA-2022-9147 |
| Oracle Linux | 7 | kernel-uekx86_64 | Advisory build | 0:5.4.17-2136.304.4.1.el7uek | ELSA-2022-9147 |
| Oracle Linux | 7 | kernel-uek-containerx86_64 | Advisory build | 0:5.4.17-2136.304.4.1.el7 | ELSA-2022-9148 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
A 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | kernel | Affects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above. (affected) | redhat · cna |
Weaknesses
1- CWE-362 CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), CWE-416 - Use After Free.
References
9- https://bugzilla.redhat.com/show_bug.cgi?id=1980646
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951
- https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2940-1] linux security update https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2941-1] linux-4.19 security update https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html
- https://security.netapp.com/advisory/ntap-20220419-0003/
- https://ubuntu.com/security/CVE-2021-3640
- DSA-5096 https://www.debian.org/security/2022/dsa-5096
- https://www.openwall.com/lists/oss-security/2021/07/22/1
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 550aff3deb07bd264e3acf90eacd13f4dc3ba776bc7526d26762276e41a90c31
- Ingested
- 23 Sep 2026, 07:55:51 UTC
- Source record
- Official CVE record