{"id":"CVE-2025-38448","aliases":["CVE-2025-38448"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: u_serial: Fix race condition in TTY wakeup","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: gadget: u_serial: Corrección de la condición de ejecución en la activación de TTY. Una condición de ejecución ocurre cuando gs_start_io() llama a gs_start_rx() o gs_start_tx(), ya que estas funciones desactivan brevemente el port_lock para usb_ep_queue(). Esto permite que gs_close() y gserial_disconnect() borren port.tty y port_usb, respectivamente. Utilice la función auxiliar de puerto TTY segura para nulos para activar TTY. Ejemplo CPU1: CPU2: gserial_connect() // bloquear gs_close() // esperar bloqueo gs_start_rx() // desbloquear usb_ep_queue() gs_close() // bloquear, restablecer port.tty y desbloquear gs_start_rx() // bloquear tty_wakeup() // NPE","source":"nvd"}],"published":"2025-07-25T15:27:30.040Z","modified":"2026-06-17T09:16:52.590Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"18d58a467ccf011078352d91b4d6a0108c7318e8","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"d43657b59f36e88289a6066f15bc9a80df5014eb","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"a5012673d49788f16bb4e375b002d7743eb642d9","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"ee8d688e2ba558f3bb8ac225113740be5f335417","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"c6eb4a05af3d0ba3bc4e8159287722fb9abc6359","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"abf3620cba68e0e51e5c21054ce4f925f75b3661","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"c8c80a3a35c2e3488409de2d5376ef7e662a2bf5","status":"affected"},{"type":"git","introduced":"35f95fd7f234d2b58803bab6f6ebd6bb988050a2","fixed":"c529c3730bd09115684644e26bf01ecbd7e2c2c9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.5","status":"unaffected"},{"type":"semver","introduced":"5.4.296","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.240","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.189","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.146","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.99","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.39","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.7","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.5","fixed":"5.4.296"},{"status":"affected","introduced":"5.5","fixed":"5.10.240"},{"status":"affected","introduced":"5.11","fixed":"5.15.189"},{"status":"affected","introduced":"5.16","fixed":"6.1.146"},{"status":"affected","introduced":"6.2","fixed":"6.6.99"},{"status":"affected","introduced":"6.7","fixed":"6.12.39"},{"status":"affected","introduced":"6.13","fixed":"6.15.7"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/18d58a467ccf011078352d91b4d6a0108c7318e8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38448","url":"https://www.cve.org/CVERecord?id=CVE-2025-38448","licence":"CVE Terms of Use","modified":"2026-05-11T21:28:12.055Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38448","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38448","licence":"Public domain","modified":"2026-06-17T09:16:52.590Z"}],"updatedAt":"2026-11-25T22:59:01.721Z","epss":{"score":0.00198,"percentile":0.05535,"date":"2026-11-30T12:00:22.000Z"}}