{"id":"CVE-2026-23472","aliases":["CVE-2026-23472"],"related":[],"kind":"vulnerability","state":"published","title":"serial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN\n\nuart_write_room() and uart_write() behave inconsistently when\nxmit_buf is NULL (which happens for PORT_UNKNOWN ports that were\nnever properly initialized):\n\n- uart_write_room() returns kfifo_avail() which can be > 0\n- uart_write() checks xmit_buf and returns 0 if NULL\n\nThis inconsistency causes an infinite loop in drivers that rely on\ntty_write_room() to determine if they can write:\n\n  while (tty_write_room(tty) > 0) {\n      written = tty->ops->write(...);\n      // written is always 0, loop never exits\n  }\n\nFor example, caif_serial's handle_tx() enters an infinite loop when\nused with PORT_UNKNOWN serial ports, causing system hangs.\n\nFix by making uart_write_room() also check xmit_buf and return 0 if\nit's NULL, consistent with uart_write().\n\nReproducer: https://gist.github.com/mrpre/d9a694cc0e19828ee3bc3b37983fde13","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN\n\nuart_write_room() and uart_write() behave inconsistently when\nxmit_buf is NULL (which happens for PORT_UNKNOWN ports that were\nnever properly initialized):\n\n- uart_write_room() returns kfifo_avail() which can be > 0\n- uart_write() checks xmit_buf and returns 0 if NULL\n\nThis inconsistency causes an infinite loop in drivers that rely on\ntty_write_room() to determine if they can write:\n\n  while (tty_write_room(tty) > 0) {\n      written = tty->ops->write(...);\n      // written is always 0, loop never exits\n  }\n\nFor example, caif_serial's handle_tx() enters an infinite loop when\nused with PORT_UNKNOWN serial ports, causing system hangs.\n\nFix by making uart_write_room() also check xmit_buf and return 0 if\nit's NULL, consistent with uart_write().\n\nReproducer: https://gist.github.com/mrpre/d9a694cc0e19828ee3bc3b37983fde13","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nserial: core: corrección de bucle infinito en handle_tx() para PORT_UNKNOWN\n\nuart_write_room() y uart_write() se comportan de forma inconsistente cuando xmit_buf es NULL (lo cual ocurre para puertos PORT_UNKNOWN que nunca fueron inicializados correctamente):\n\n- uart_write_room() devuelve kfifo_avail() que puede ser > 0\n- uart_write() comprueba xmit_buf y devuelve 0 si es NULL\n\nEsta inconsistencia causa un bucle infinito en controladores que dependen de tty_write_room() para determinar si pueden escribir:\n\n  while (tty_write_room(tty) > 0) {\n      written = tty->ops->write(...);\n      // written es siempre 0, el bucle nunca sale\n  }\n\nPor ejemplo, el handle_tx() de caif_serial entra en un bucle infinito cuando se usa con puertos serie PORT_UNKNOWN, causando cuelgues del sistema.\n\nSolución al hacer que uart_write_room() también compruebe xmit_buf y devuelva 0 si es NULL, consistente con uart_write().\n\nReproductor: https://gist.github.com/mrpre/d9a694cc0e19828ee3bc3b37983fde13","source":"nvd"}],"published":"2026-04-03T15:15:51.209Z","modified":"2026-11-05T22:18:27.780Z","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":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"91c2a5d201daf66fa3f42b8a383bb89174bde2c8","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"c9e845014723d552944cec4e146ec7b841cda34d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d45cfa70bf0159afb31cb03d2d16ec5a5053460c","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"efe85a557186b7fe915572ae93a8f3f78bfd9a22","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"455ce986fa356ff43a43c0d363ba95fa152f21d5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.10","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"2.6.12.1","fixed":"6.18.20"},{"status":"affected","introduced":"6.19","fixed":"6.19.10"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/91c2a5d201daf66fa3f42b8a383bb89174bde2c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9e845014723d552944cec4e146ec7b841cda34d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d45cfa70bf0159afb31cb03d2d16ec5a5053460c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/efe85a557186b7fe915572ae93a8f3f78bfd9a22","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/455ce986fa356ff43a43c0d363ba95fa152f21d5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:31:44.190Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23472","url":"https://www.cve.org/CVERecord?id=CVE-2026-23472","licence":"CVE Terms of Use","modified":"2026-11-05T21:33:48.217Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23472","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23472","licence":"Public domain","modified":"2026-11-05T22:18:27.780Z"}],"updatedAt":"2026-11-25T22:59:17.895Z","epss":{"score":0.00177,"percentile":0.07512,"date":"2026-12-01T12:00:22.000Z"}}