bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98747

—unknown

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

serial: core: fix NULL pointer dereference in serial_core_unregister_port()

port->port_dev is NULL when no port device is installed: it is cleared on teardown, and never set if registration failed before serial_core_port_device_add(). serial_core_unregister_port() passes it straight to serial_core_get_ctrl_dev(), which dereferences it:

  KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
  RIP: serial_core_unregister_port
  Call Trace:
   serial8250_unregister_port
   serial8250_remove
   unbind_store

Return early when there is no port device, and read port->port_dev under port_mutex.

Also clear port->port_dev on the serial_core_register_port() error path, where the port device has already been removed.

Published 2026-10-18NVD

References 2
Review Av26.10.0x86_64Not exposedThe vulnerable code is in this build and unfixed: serial_core_unregister_port() in drivers/tty/serial/serial_core.c still passes port->port_dev straight to serial_core_get_ctrl_dev() before taking port_mutex, with no NULL check.This build follows it · open the review →

Members of Kernel Kit decide. Sign in if you are one.