{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-0185",
        "ASSIGNER": "secalert@redhat.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A heap-based buffer overflow flaw was found in the way the legacy_parse_param function in the Filesystem Context functionality of the Linux kernel verified the supplied parameters length. An unprivileged (in case of unprivileged user namespaces enabled, otherwise needs namespaced CAP_SYS_ADMIN privilege) local user able to open a filesystem that does not support the Filesystem Context API (and thus fallbacks to legacy handling) could use this flaw to escalate their privileges on the system."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Integer Overflow or Wraparound CWE-190",
                        "cweId": "CWE-190"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "kernel",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "8.4"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722d94847de2",
                "refsource": "MISC",
                "name": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722d94847de2"
            },
            {
                "url": "https://github.com/Crusaders-of-Rust/CVE-2022-0185",
                "refsource": "MISC",
                "name": "https://github.com/Crusaders-of-Rust/CVE-2022-0185"
            },
            {
                "url": "https://www.openwall.com/lists/oss-security/2022/01/18/7",
                "refsource": "MISC",
                "name": "https://www.openwall.com/lists/oss-security/2022/01/18/7"
            },
            {
                "url": "https://www.willsroot.io/2022/01/cve-2022-0185.html",
                "refsource": "MISC",
                "name": "https://www.willsroot.io/2022/01/cve-2022-0185.html"
            },
            {
                "url": "https://security.netapp.com/advisory/ntap-20220225-0003/",
                "refsource": "MISC",
                "name": "https://security.netapp.com/advisory/ntap-20220225-0003/"
            }
        ]
    }
}