{"id":"CVE-2021-3640","details":"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.","modified":"2026-03-13T05:04:30.819110Z","published":"2022-03-03T23:15:08.197Z","related":["ALSA-2022:7444","ALSA-2022:7683","ALSA-2022:7933","ALSA-2022:8267","MGASA-2021-0418","SUSE-SU-2021:14849-1","SUSE-SU-2021:3177-1","SUSE-SU-2021:3178-1","SUSE-SU-2021:3179-1","SUSE-SU-2021:3192-1","SUSE-SU-2021:3205-1","SUSE-SU-2021:3205-2","SUSE-SU-2021:3206-1","SUSE-SU-2021:3207-1","SUSE-SU-2021:3217-1","SUSE-SU-2021:3360-1","SUSE-SU-2021:3361-1","SUSE-SU-2021:3371-1","SUSE-SU-2021:3374-1","SUSE-SU-2021:3401-1","SUSE-SU-2021:3440-1","SUSE-SU-2021:3443-1","SUSE-SU-2021:3459-1","SUSE-SU-2021:3876-1","SUSE-SU-2021:3929-1","SUSE-SU-2021:3935-1","SUSE-SU-2021:3969-1","SUSE-SU-2021:3972-1","openSUSE-SU-2021:1271-1","openSUSE-SU-2021:3179-1","openSUSE-SU-2021:3205-1","openSUSE-SU-2021:3876-1","openSUSE-SU-2024:10728-1","openSUSE-SU-2024:13704-1"],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5096"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220419-0003/"},{"type":"FIX","url":"https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951"},{"type":"FIX","url":"https://ubuntu.com/security/CVE-2021-3640"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1980646"},{"type":"FIX","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951"},{"type":"EVIDENCE","url":"https://www.openwall.com/lists/oss-security/2021/07/22/1"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-3640.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"4.4.293"}]},{"events":[{"introduced":"4.5"},{"fixed":"4.9.291"}]},{"events":[{"introduced":"4.10"},{"fixed":"4.14.256"}]},{"events":[{"introduced":"4.15"},{"fixed":"4.19.218"}]},{"events":[{"introduced":"4.20"},{"fixed":"5.4.160"}]},{"events":[{"introduced":"5.5.0"},{"fixed":"5.10.80"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.14.19"}]},{"events":[{"introduced":"5.15"},{"fixed":"5.15.3"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"34"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"20.04"}]},{"events":[{"introduced":"0"},{"last_affected":"21.10"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}