{"id":"CVE-2021-3640","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2022-03-03T22:04:15.000Z","updatedAt":"2024-08-03T17:01:07.744Z","severity":null,"assigner":"redhat","products":["n/a kernel"],"affected":[{"vendor":"n/a","product":"kernel","versions":[{"version":"Affects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above.","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1980646","https://ubuntu.com/security/CVE-2021-3640","https://www.openwall.com/lists/oss-security/2021/07/22/1","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","https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html","https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html","https://www.debian.org/security/2022/dsa-5096","https://security.netapp.com/advisory/ntap-20220419-0003/"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3640.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3640","state":"PUBLISHED","datePublished":"2022-03-03T22:04:15.000Z","dateUpdated":"2024-08-03T17:01:07.744Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-07-09T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"kernel","versions":[{"version":"Affects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above.","status":"affected"}]}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1980646","tags":["x_refsource_MISC"]},{"url":"https://ubuntu.com/security/CVE-2021-3640","tags":["x_refsource_MISC"]},{"url":"https://www.openwall.com/lists/oss-security/2021/07/22/1","tags":["x_refsource_MISC"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951","tags":["x_refsource_MISC"]},{"url":"https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html","name":"[debian-lts-announce] 20220309 [SECURITY] [DLA 2940-1] linux security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html","name":"[debian-lts-announce] 20220309 [SECURITY] [DLA 2941-1] linux-4.19 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2022/dsa-5096","name":"DSA-5096","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20220419-0003/","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","description":"CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), CWE-416 - Use After Free.","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2022-04-19T18:06:25.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1980646","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://ubuntu.com/security/CVE-2021-3640","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2021/07/22/1","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html","name":"[debian-lts-announce] 20220309 [SECURITY] [DLA 2940-1] linux security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html","name":"[debian-lts-announce] 20220309 [SECURITY] [DLA 2941-1] linux-4.19 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5096","name":"DSA-5096","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220419-0003/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:01:07.744Z"}}]}}}