{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-6040",
        "ASSIGNER": "security@ubuntu.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "An out-of-bounds access vulnerability involving netfilter was reported and fixed as: f1082dd31fe4 (netfilter: nf_tables: Reject tables of unsupported family); While creating a new netfilter table, lack of a safeguard against invalid nf_tables family (pf) values within `nf_tables_newtable` function enables an attacker to achieve out-of-bounds access."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-125",
                        "cweId": "CWE-125"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "The Linux Kernel Organization",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "linux",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "5.18-rc1"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-6040",
                "refsource": "MISC",
                "name": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-6040"
            },
            {
                "url": "https://www.openwall.com/lists/oss-security/2024/01/12/1",
                "refsource": "MISC",
                "name": "https://www.openwall.com/lists/oss-security/2024/01/12/1"
            },
            {
                "url": "http://www.openwall.com/lists/oss-security/2024/01/12/1",
                "refsource": "MISC",
                "name": "http://www.openwall.com/lists/oss-security/2024/01/12/1"
            },
            {
                "url": "http://packetstormsecurity.com/files/177029/Kernel-Live-Patch-Security-Notice-LSN-0100-1.html",
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/177029/Kernel-Live-Patch-Security-Notice-LSN-0100-1.html"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"
            }
        ]
    },
    "work_around": [
        {
            "lang": "en",
            "value": "Disabling unprivileged user namespaces mitigates the issue."
        }
    ],
    "credits": [
        {
            "lang": "en",
            "value": "Lin Ma from Ant Security Light-Year Lab & ZJU"
        }
    ],
    "impact": {
        "cvss": [
            {
                "version": "3.1",
                "attackVector": "LOCAL",
                "attackComplexity": "LOW",
                "privilegesRequired": "LOW",
                "userInteraction": "NONE",
                "scope": "UNCHANGED",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "availabilityImpact": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "baseScore": 7.8,
                "baseSeverity": "HIGH"
            }
        ]
    }
}