{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142984",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.341Z",
        "datePublished": "2026-12-03T09:17:15.347Z",
        "dateUpdated": "2026-12-03T09:17:15.347Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:17:15.347Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: u_serial: pin ports while TTYs are installed\n\nA slab-use-after-free can occur when gserial_free_line() frees struct\ngs_port while it is still reachable through an installed TTY. The\nport->port.count value tracks successful opens, but it is zero before\ngs_open() and again after gs_close(), before TTY cleanup has finished.\nTeardown can therefore free gs_port while tty_init_dev() or release_tty()\nstill accesses its tty_port.\n\nManage gs_port lifetime with tty_port references. Take a reference in\ngs_install(), drop it in gs_cleanup(), and move the final free to\ngs_port_destruct(). Unregister the TTY device before dropping the owner\nreference.\n\nKeep each minor reserved until the old port is destroyed so an installed\nTTY for one generation cannot overlap a replacement at the same minor.\nPublish the new port before device registration so the cdev and add uevent\nnever expose a TTY before gs_install() can pin it. Since commit\n8df07fe93573 (\"tty: fix saved termios reset race\"), u_serial registration\nno longer frees saved termios. On registration failure, unpublish the port\nbefore dropping its owner reference.\n\nCheck in gs_open() that the installed port is still the published\ngeneration. Track failures after a successful install so close callbacks\nissued by the TTY core do not decrement port->port.count for opens that\nnever incremented it."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/gadget/function/u_serial.c"
                    ],
                    "versions": [
                        {
                            "version": "19b10a8828a6cdd5a4e7e37babd5084d35641f87",
                            "lessThan": "f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "19b10a8828a6cdd5a4e7e37babd5084d35641f87",
                            "lessThan": "c36bf20e3928fdd013098f61186338efc9c96a4a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "19b10a8828a6cdd5a4e7e37babd5084d35641f87",
                            "lessThan": "e6a6b91739c1f81930457679d33d1f8be64aa81c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "19b10a8828a6cdd5a4e7e37babd5084d35641f87",
                            "lessThan": "1981b53c2b52a00f0f4b9eb87183c9aedc8dac5d",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/gadget/function/u_serial.c"
                    ],
                    "versions": [
                        {
                            "version": "3.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc4",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.9",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.9",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.9",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.9",
                                    "versionEndExcluding": "7.4-rc4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c36bf20e3928fdd013098f61186338efc9c96a4a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e6a6b91739c1f81930457679d33d1f8be64aa81c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1981b53c2b52a00f0f4b9eb87183c9aedc8dac5d"
                }
            ],
            "title": "usb: gadget: u_serial: pin ports while TTYs are installed",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}