{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2021-3640",
        "ASSIGNER": "secalert@redhat.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), CWE-416 - Use After Free.",
                        "cweId": "CWE-362"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "kernel",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "Affects kernel v5.15.3 and prior, Fixed in v5.16-rc1 and above."
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1980646",
                "refsource": "MISC",
                "name": "https://bugzilla.redhat.com/show_bug.cgi?id=1980646"
            },
            {
                "url": "https://ubuntu.com/security/CVE-2021-3640",
                "refsource": "MISC",
                "name": "https://ubuntu.com/security/CVE-2021-3640"
            },
            {
                "url": "https://www.openwall.com/lists/oss-security/2021/07/22/1",
                "refsource": "MISC",
                "name": "https://www.openwall.com/lists/oss-security/2021/07/22/1"
            },
            {
                "url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951",
                "refsource": "MISC",
                "name": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/bluetooth/sco.c?h=v5.16&id=99c23da0eed4fd20cae8243f2b51e10e66aa0951"
            },
            {
                "url": "https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951",
                "refsource": "MISC",
                "name": "https://github.com/torvalds/linux/commit/99c23da0eed4fd20cae8243f2b51e10e66aa0951"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html"
            },
            {
                "url": "https://security.netapp.com/advisory/ntap-20220419-0003/",
                "refsource": "MISC",
                "name": "https://security.netapp.com/advisory/ntap-20220419-0003/"
            },
            {
                "url": "https://www.debian.org/security/2022/dsa-5096",
                "refsource": "MISC",
                "name": "https://www.debian.org/security/2022/dsa-5096"
            }
        ]
    }
}