Paulo Alcantara
da407a0029
cifs: fix potential use-after-free in cifs_echo_request()
...
commit 212253367dc7b49ed3fc194ce71b0992eacaecf2 upstream.
This patch fixes a potential use-after-free bug in
cifs_echo_request().
For instance,
thread 1
--------
cifs_demultiplex_thread()
clean_demultiplex_info()
kfree(server)
thread 2 (workqueue)
--------
apic_timer_interrupt()
smp_apic_timer_interrupt()
irq_exit()
__do_softirq()
run_timer_softirq()
call_timer_fn()
cifs_echo_request() <- use-after-free in server ptr
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-11 13:38:00 +01:00
..
2020-10-29 09:05:32 +01:00
2018-11-13 11:17:01 -08:00
2016-03-17 15:09:34 -07:00
2019-04-05 22:29:07 +02:00
2016-10-14 14:22:01 -05:00
2016-10-13 19:48:11 -05:00
2018-11-13 11:17:01 -08:00
2020-11-18 18:26:32 +01:00
2017-05-20 14:28:40 +02:00
2020-03-11 07:53:04 +01:00
2018-02-17 13:21:12 +01:00
2018-11-27 16:09:37 +01:00
2016-09-16 12:44:21 +02:00
2020-10-01 20:40:04 +02:00
2015-08-20 10:19:25 -05:00
2019-11-10 11:23:21 +01:00
2020-05-20 08:15:34 +02:00
2020-12-11 13:38:00 +01:00
2020-03-20 09:07:44 +01:00
2020-10-01 20:40:15 +02:00
2020-07-31 16:44:04 +02:00
2017-05-20 14:28:40 +02:00
2019-02-15 08:07:39 +01:00
2018-09-05 09:20:05 +02:00
2016-04-23 15:33:03 -04:00
2020-10-01 20:40:04 +02:00
2019-11-06 12:18:08 +01:00
2016-06-23 23:45:07 -05:00
2019-02-12 19:44:58 +01:00
2018-09-05 09:20:05 +02:00
2020-10-01 20:40:04 +02:00
2020-01-23 08:19:35 +01:00
2016-10-12 12:08:33 -05:00
2018-09-05 09:20:05 +02:00
2019-04-20 09:07:50 +02:00
2020-10-01 20:40:04 +02:00
2020-10-01 20:40:04 +02:00
2020-08-21 11:02:06 +02:00
2020-10-01 20:40:04 +02:00
2017-05-08 07:47:55 +02:00
2017-05-08 07:47:55 +02:00
2017-01-06 10:40:16 +01:00
2015-11-03 09:26:27 -06:00
2019-01-16 22:12:31 +01:00
2019-10-05 12:30:36 +02:00