mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
USB: console: fix potential use after free
commit32a4bf2e81upstream. Use tty kref to release the fake tty in usb_console_setup to avoid use after free if the underlying serial driver has acquired a reference. Note that using the tty destructor release_one_tty requires some more state to be initialised. Fixes:4a90f09b20("tty: usb-serial krefs") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
6b03e26e12
commit
2b78e4b755
1 changed files with 10 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue