{"id":"CVE-2025-38448","published":"2025-07-25T15:27:30Z","modified":"2026-05-11T21:28:12Z","title":"usb: gadget: u_serial: Fix race condition in TTY wakeup","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: u_serial: Fix race condition in TTY wakeup\n\nA race condition occurs when gs_start_io() calls either gs_start_rx() or\ngs_start_tx(), as those functions briefly drop the port_lock for\nusb_ep_queue(). This allows gs_close() and gserial_disconnect() to clear\nport.tty and port_usb, respectively.\n\nUse the null-safe TTY Port helper function to wake up TTY.\n\nExample\n  CPU1:\t\t\t      CPU2:\n  gserial_connect() // lock\n  \t\t\t      gs_close() // await lock\n  gs_start_rx()     // unlock\n  usb_ep_queue()\n  \t\t\t      gs_close() // lock, reset port.tty and unlock\n  gs_start_rx()     // lock\n  tty_wakeup()      // NPE","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00141,"percentile":0.03375,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/18d58a467ccf011078352d91b4d6a0108c7318e8","tags":[]},{"url":"https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb","tags":[]},{"url":"https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9","tags":[]},{"url":"https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417","tags":[]},{"url":"https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359","tags":[]},{"url":"https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661","tags":[]},{"url":"https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5","tags":[]},{"url":"https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":0.7,"factors":[{"name":"EPSS percentile","points":0.68}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < 18d58a467ccf011078352d91b4d6a0108c7318e8",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < d43657b59f36e88289a6066f15bc9a80df5014eb",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < a5012673d49788f16bb4e375b002d7743eb642d9",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < ee8d688e2ba558f3bb8ac225113740be5f335417",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < c6eb4a05af3d0ba3bc4e8159287722fb9abc6359",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < abf3620cba68e0e51e5c21054ce4f925f75b3661",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < c8c80a3a35c2e3488409de2d5376ef7e662a2bf5",">= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < c529c3730bd09115684644e26bf01ecbd7e2c2c9"]},{"vendor":"Linux","product":"Linux","versions":["3.5"]}],"euvd":{"id":"EUVD-2025-22693","exploited":false,"provenance":"source"}}