| The Linux kernel vulnerability CVE-2021-46905 affects the High Speed Organization (HSO) serial device driver. Specifically, it involves a NULL-pointer dereference issue that occurs when disconnecting from a serial device. | |
| The problem arises because the commit 8a12f8836145 ("net: hso: fix null-ptr-deref during tty device unregistration") introduced an unconditional NULL-pointer dereference on every disconnect instead of fixing the racy minor allocation reported by syzbot. This happens because the serial device table is still accessed after the minor has been released by `hso_serial_tty_unregister()`. | |
| The affected files are located in `drivers/net/usb/hso.c`. The issue was introduced in multiple kernel versions, including 4.19.187, 5.4.112, 5.10.30, 5.11.14, and 5.12, and has been fixed in subsequent versions. | |
| The mitigation for this vulnerability is to update to the latest stable kernel version, as individual changes are never tested alone and cherry-picking individual commits is not recommended or supported by the Linux kernel community. If updating to the latest release is impossible, the individual changes to resolve this issue can be found at the specified commit hashes. | |