{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-58093",
        "assignerOrgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
        "state": "PUBLISHED",
        "assignerShortName": "freebsd",
        "dateReserved": "2026-06-29T01:40:17.498Z",
        "datePublished": "2026-08-26T05:33:30.605Z",
        "dateUpdated": "2026-08-26T05:40:30.824Z"
    },
    "containers": {
        "cna": {
            "datePublic": "2026-08-25T19:45:00.000Z",
            "title": "Kernel use-after-free via tty ioctls",
            "references": [
                {
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://security.freebsd.org/advisories/FreeBSD-SA-26:62.tty.asc"
                }
            ],
            "affected": [
                {
                    "defaultStatus": "unknown",
                    "modules": [
                        "tty"
                    ],
                    "product": "FreeBSD",
                    "vendor": "FreeBSD",
                    "versions": [
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "15.1-RELEASE",
                            "lessThan": "p3"
                        },
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "15.0-RELEASE",
                            "lessThan": "p13"
                        },
                        {
                            "status": "affected",
                            "versionType": "release",
                            "version": "14.4-RELEASE",
                            "lessThan": "p9"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "The TIOCSCTTY ioctl handler drops the tty lock in order to acquire the process tree lock.  After reacquiring the tty lock, the handler did not revalidate the state of the terminal, and could proceed to link a terminal that was concurrently being destroyed to the calling process' session.\n\nAn unprivileged local user can exploit this race condition to escalate privileges."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-362",
                            "description": "CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')",
                            "lang": "en",
                            "type": "CWE"
                        },
                        {
                            "cweId": "CWE-416",
                            "description": "CWE-416: Use After Free",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
                "shortName": "freebsd",
                "dateUpdated": "2026-08-26T05:40:30.824Z"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}