Re: [PATCH] wan/x25: Fix use-after-free in x25_asy_open_tty()

2015-12-01 Thread David Miller
From: Peter Hurley Date: Fri, 27 Nov 2015 14:18:39 -0500 > The N_X25 line discipline may access the previous line discipline's closed > and already-freed private data on open [1]. > > The tty->disc_data field _never_ refers to valid data on entry to the > line discipline's open() method. Rather,

[PATCH] wan/x25: Fix use-after-free in x25_asy_open_tty()

2015-11-27 Thread Peter Hurley
The N_X25 line discipline may access the previous line discipline's closed and already-freed private data on open [1]. The tty->disc_data field _never_ refers to valid data on entry to the line discipline's open() method. Rather, the ldisc is expected to initialize that field for its own use for t