# CVE-2021-3640: A flaw use-after-free in function scosocksendmsg() of the Linux kernel HCI subsystem was found in the way user calls ioct UFFDIOREGISTER or…

- Severity: High 7.0 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-03T22:04:15.000Z
- Modified: 2026-06-17T04:05:29.397Z
- Weaknesses: CWE-362, CWE-416
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- kernel: Affects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above.
- linux linux_kernel: before 4.4.293; from 4.5 before 4.9.291; from 4.10 before 4.14.256; from 4.15 before 4.19.218; from 4.20 before 5.4.160; from 5.5.0 before 5.10.80; from 5.11 before 5.14.19; from 5.15 before 5.15.3
- debian debian_linux: 9.0
- fedoraproject fedora: 34
- canonical ubuntu_linux: 14.04; 16.04; 18.04; 20.04; 21.10
- netapp h300s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h410c_firmware: no versions given
- netapp h500s_firmware: no versions given

## Every score

- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.9 Medium `AV:L/AC:M/Au:N/C:C/I:C/A:C`

## References

- <https://www.openwall.com/lists/oss-security/2021/07/22/1> (exploit, mailing-list, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1980646> (issue-tracking, patch, third-party-advisory)
- <https://ubuntu.com/security/CVE-2021-3640> (patch, third-party-advisory)
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951> (patch, vendor-advisory)
- <https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5096> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220419-0003/> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-3640](https://www.cve.org/CVERecord?id=CVE-2021-3640), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3640](https://nvd.nist.gov/vuln/detail/CVE-2021-3640), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3640 · Whole record: https://cve.day/CVE-2021-3640.json · Rebuilt by cve.day 2026-11-25T22:58:07.117Z
