In the Linux kernel, the following vulnerability has been resolved: USB: serial: upd78f0730: fix NULL-deref on hangup The port tty pointer is cleared on hangup before deasserting the modem control signals and should not be used in the dtr_rts() callback. Factor out a new upd78f0730_port_tiocmset() helper that can be used in upd78f0730_dtr_rts() to avoid dereferencing a NULL-pointer on hangup (e.g. on disconnect). This issue was flagged by an LLM.
https://git.kernel.org/stable/c/db47e4bce733f0dc6fb9ae0caaf24942fb2c05af
https://git.kernel.org/stable/c/6aacb6cbc27ac03379a5fb06be3ed723f2b325ba
https://git.kernel.org/stable/c/0e0b1fcfb80c0490bda7f7eb633ebb5e431c2e16
https://git.kernel.org/stable/c/0b151424054d8fe3cb4967337516ba38b1d1a329