{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-5398",
        "assignerOrgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
        "state": "PUBLISHED",
        "assignerShortName": "freebsd",
        "dateReserved": "2026-04-02T01:48:17.131Z",
        "datePublished": "2026-04-22T02:23:56.767Z",
        "dateUpdated": "2026-04-23T03:56:10.203Z"
    },
    "containers": {
        "cna": {
            "datePublic": "2026-04-21T18:00:00.000Z",
            "title": "Kernel use-after-free bug in the TIOCNOTTY handler",
            "references": [
                {
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://security.freebsd.org/advisories/FreeBSD-SA-26:10.tty.asc"
                }
            ],
            "affected": [
                {
                    "defaultStatus": "unknown",
                    "modules": [
                        "tty"
                    ],
                    "product": "FreeBSD",
                    "vendor": "FreeBSD",
                    "versions": [
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "15.0-RELEASE",
                            "lessThan": "p6"
                        },
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "14.4-RELEASE",
                            "lessThan": "p2"
                        },
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "14.3-RELEASE",
                            "lessThan": "p11"
                        },
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "13.5-RELEASE",
                            "lessThan": "p12"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Nicholas Carlini using Claude, Anthropic"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "The implementation of TIOCNOTTY failed to clear a back-pointer from the structure representing the controlling terminal to the calling process' session.  If the invoking process then exits, the terminal structure may end up containing a pointer to freed memory.\n\nA malicious process can abuse the dangling pointer to grant itself root privileges."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-416",
                            "description": "CWE-416: Use After Free",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
                "shortName": "freebsd",
                "dateUpdated": "2026-04-22T02:23:56.767Z"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 8.4,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "NONE",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-04-22T00:00:00+00:00",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3",
                                "id": "CVE-2026-5398"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-04-23T03:56:10.203Z"
                }
            }
        ]
    }
}