{"id":"CVE-2026-23472","published":"2026-04-03T15:15:51Z","modified":"2026-11-05T21:33:48Z","title":"serial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN","vendor":"Linux","product":"Linux","tier":"tail","description":{"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00165,"percentile":0.05852,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/91c2a5d201daf66fa3f42b8a383bb89174bde2c8","tags":[]},{"url":"https://git.kernel.org/stable/c/c9e845014723d552944cec4e146ec7b841cda34d","tags":[]},{"url":"https://git.kernel.org/stable/c/d45cfa70bf0159afb31cb03d2d16ec5a5053460c","tags":[]},{"url":"https://git.kernel.org/stable/c/efe85a557186b7fe915572ae93a8f3f78bfd9a22","tags":[]},{"url":"https://git.kernel.org/stable/c/bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c","tags":[]},{"url":"https://git.kernel.org/stable/c/455ce986fa356ff43a43c0d363ba95fa152f21d5","tags":[]}],"priority":{"score":1.2,"factors":[{"name":"EPSS percentile","points":1.17}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 91c2a5d201daf66fa3f42b8a383bb89174bde2c8",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c9e845014723d552944cec4e146ec7b841cda34d",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d45cfa70bf0159afb31cb03d2d16ec5a5053460c",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < efe85a557186b7fe915572ae93a8f3f78bfd9a22",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 455ce986fa356ff43a43c0d363ba95fa152f21d5"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T21:31:44.190630Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-18745","exploited":false,"provenance":"source"}}