diff options
| author | Johan Hovold <johan@kernel.org> | 2026-10-23 14:15:19 +0200 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-10-29 16:22:05 +0100 |
| commit | ae22e9b6412e5dc99e1cf8bd13c6176d44c7d42e (patch) | |
| tree | b1d8dcc458395c3863796864b3d224dc45e13472 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 0e0b1fcfb80c0490bda7f7eb633ebb5e431c2e16 (diff) | |
USB: serial: io_edgeport: fix NULL-deref on early status
The driver submits the interrupt-in URB during probe or on first port
open, which on completion may submit the bulk-in URB before all ports
have been opened and their waitqueues have been initialised.
If a (malicious) device sends a status message for a port that has not
yet been opened this may lead to a NULL-pointer dereference in the
bulk-in completion handler when attempting to wakeup blocked tasks.
Move waitqueue initialisation from open() to port_probe() to address
this.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: syzbot+763813d65c7e18c1b6d5@syzkaller.appspotmail.com
Link: https://lore.kernel.org/6a8818d8.ae6ddae5.3da009.0031.GAE@google.com
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
