{"id":"CVE-2025-38448","summary":"usb: gadget: u_serial: Fix race condition in TTY wakeup","details":"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","modified":"2026-05-18T05:59:30.351041179Z","published":"2025-07-25T15:27:30.040Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38448.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/18d58a467ccf011078352d91b4d6a0108c7318e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38448.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38448"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2"},{"fixed":"18d58a467ccf011078352d91b4d6a0108c7318e8"},{"fixed":"d43657b59f36e88289a6066f15bc9a80df5014eb"},{"fixed":"a5012673d49788f16bb4e375b002d7743eb642d9"},{"fixed":"ee8d688e2ba558f3bb8ac225113740be5f335417"},{"fixed":"c6eb4a05af3d0ba3bc4e8159287722fb9abc6359"},{"fixed":"abf3620cba68e0e51e5c21054ce4f925f75b3661"},{"fixed":"c8c80a3a35c2e3488409de2d5376ef7e662a2bf5"},{"fixed":"c529c3730bd09115684644e26bf01ecbd7e2c2c9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38448.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"5.4.296"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.240"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.146"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.99"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.15.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38448.json"}}],"schema_version":"1.7.5"}