{"id":"AZL-117872","summary":"CVE-2026-142984 affecting package kernel 6.6.161.1-1","details":"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-\u003eport.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-\u003eport.count for opens that\nnever incremented it.","modified":"2026-12-04T14:18:39.538449375Z","published":"2026-12-03T10:17:22Z","upstream":["CVE-2026-142984"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142984"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117872.json"}}],"schema_version":"1.9.2"}