{"id":"CVE-2025-39724","aliases":["CVE-2025-39724"],"related":[],"kind":"vulnerability","state":"published","title":"serial: 8250: fix panic due to PSLVERR","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250: fix panic due to PSLVERR\n\nWhen the PSLVERR_RESP_EN parameter is set to 1, the device generates\nan error response if an attempt is made to read an empty RBR (Receive\nBuffer Register) while the FIFO is enabled.\n\nIn serial8250_do_startup(), calling serial_port_out(port, UART_LCR,\nUART_LCR_WLEN8) triggers dw8250_check_lcr(), which invokes\ndw8250_force_idle() and serial8250_clear_and_reinit_fifos(). The latter\nfunction enables the FIFO via serial_out(p, UART_FCR, p->fcr).\nExecution proceeds to the serial_port_in(port, UART_RX).\nThis satisfies the PSLVERR trigger condition.\n\nWhen another CPU (e.g., using printk()) is accessing the UART (UART\nis busy), the current CPU fails the check (value & ~UART_LCR_SPAR) ==\n(lcr & ~UART_LCR_SPAR) in dw8250_check_lcr(), causing it to enter\ndw8250_force_idle().\n\nPut serial_port_out(port, UART_LCR, UART_LCR_WLEN8) under the port->lock\nto fix this issue.\n\nPanic backtrace:\n[    0.442336] Oops - unknown exception [#1]\n[    0.442343] epc : dw8250_serial_in32+0x1e/0x4a\n[    0.442351]  ra : serial8250_do_startup+0x2c8/0x88e\n...\n[    0.442416] console_on_rootfs+0x26/0x70","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250: fix panic due to PSLVERR\n\nWhen the PSLVERR_RESP_EN parameter is set to 1, the device generates\nan error response if an attempt is made to read an empty RBR (Receive\nBuffer Register) while the FIFO is enabled.\n\nIn serial8250_do_startup(), calling serial_port_out(port, UART_LCR,\nUART_LCR_WLEN8) triggers dw8250_check_lcr(), which invokes\ndw8250_force_idle() and serial8250_clear_and_reinit_fifos(). The latter\nfunction enables the FIFO via serial_out(p, UART_FCR, p->fcr).\nExecution proceeds to the serial_port_in(port, UART_RX).\nThis satisfies the PSLVERR trigger condition.\n\nWhen another CPU (e.g., using printk()) is accessing the UART (UART\nis busy), the current CPU fails the check (value & ~UART_LCR_SPAR) ==\n(lcr & ~UART_LCR_SPAR) in dw8250_check_lcr(), causing it to enter\ndw8250_force_idle().\n\nPut serial_port_out(port, UART_LCR, UART_LCR_WLEN8) under the port->lock\nto fix this issue.\n\nPanic backtrace:\n[    0.442336] Oops - unknown exception [#1]\n[    0.442343] epc : dw8250_serial_in32+0x1e/0x4a\n[    0.442351]  ra : serial8250_do_startup+0x2c8/0x88e\n...\n[    0.442416] console_on_rootfs+0x26/0x70","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nserial: 8250: corrección de pánico debido a PSLVERR\n\nCuando el parámetro PSLVERR_RESP_EN se establece en 1, el dispositivo genera una respuesta de error si se intenta leer un RBR (Receive Buffer Register) vacío mientras el FIFO está habilitado.\n\nEn serial8250_do_startup(), la llamada a serial_port_out(port, UART_LCR, UART_LCR_WLEN8) activa dw8250_check_lcr(), que invoca dw8250_force_idle() y serial8250_clear_and_reinit_fifos(). Esta última función habilita el FIFO a través de serial_out(p, UART_FCR, p->fcr). La ejecución continúa hasta el serial_port_in(port, UART_RX). Esto satisface la condición de activación de PSLVERR.\n\nCuando otra CPU (por ejemplo, usando printk()) está accediendo a la UART (la UART está ocupada), la CPU actual falla la verificación (value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR) en dw8250_check_lcr(), lo que hace que entre en dw8250_force_idle().\n\nColocar serial_port_out(port, UART_LCR, UART_LCR_WLEN8) bajo el port->lock para solucionar este problema.\n\nRastreo de pánico:\n[    0.442336] Oops - excepción desconocida [#1]\n[    0.442343] epc : dw8250_serial_in32+0x1e/0x4a\n[    0.442351]  ra : serial8250_do_startup+0x2c8/0x88e\n...\n[    0.442416] console_on_rootfs+0x26/0x70","source":"nvd"}],"published":"2025-09-05T17:21:32.005Z","modified":"2026-11-05T22:17:28.687Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"0b882f00655afefbc7729c6b5aec86f7a5473a3d","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"b8ca8e3f75ede308b4d49a6ca5081460be01bdb5","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"68c4613e89f000e8198f9ace643082c697921c9f","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"c826943abf473a3f7260fbadfad65e44db475460","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"cb7b3633ed749db8e56f475f43c960652cbd6882","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"8e2739478c164147d0774802008528d9e03fb802","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"38c0ea484dedb58cb3a4391229933e16be0d1031","status":"affected"},{"type":"git","introduced":"c49436b657d0a56a6ad90d14a7c3041add7cf64d","fixed":"7f8fdd4dbffc05982b96caf586f77a014b2a9353","status":"affected"},{"type":"git","version":"6d5e79331417886196cb3a733bdb6645ba85bc42","status":"affected"},{"type":"git","version":"2401577586898b3590db80f8b97a26f81f0f6d4e","status":"affected"},{"type":"semver","introduced":"3.10.48","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.24","fixed":"3.13","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.44","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.4","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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.10.48","fixed":"3.11"},{"status":"affected","introduced":"3.12.24","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.44"},{"status":"affected","introduced":"6.13","fixed":"6.16.4"}],"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/0b882f00655afefbc7729c6b5aec86f7a5473a3d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8ca8e3f75ede308b4d49a6ca5081460be01bdb5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68c4613e89f000e8198f9ace643082c697921c9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c826943abf473a3f7260fbadfad65e44db475460","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb7b3633ed749db8e56f475f43c960652cbd6882","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e2739478c164147d0774802008528d9e03fb802","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38c0ea484dedb58cb3a4391229933e16be0d1031","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f8fdd4dbffc05982b96caf586f77a014b2a9353","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:08:49.241Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39724","url":"https://www.cve.org/CVERecord?id=CVE-2025-39724","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:55.730Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39724","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39724","licence":"Public domain","modified":"2026-11-05T22:17:28.687Z"}],"updatedAt":"2026-11-25T22:59:04.283Z","epss":{"score":0.00208,"percentile":0.11601,"date":"2026-12-01T12:00:22.000Z"}}