Paulo Alcantara
73948ab9f2
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:23:29 +01:00
..
2020-10-29 09:57:28 +01:00
2018-08-07 14:15:41 -05:00
2019-12-21 11:04:43 +01:00
2019-09-16 11:43:38 -05:00
2020-03-25 08:25:43 +01:00
2019-09-16 11:43:38 -05:00
2019-09-21 06:02:26 -05:00
2019-07-10 18:43:43 -07:00
2020-11-18 19:20:34 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-12-02 08:49:45 +01:00
2019-09-26 16:37:43 -05:00
2019-06-20 14:19:55 +08:00
2020-03-25 08:25:43 +01:00
2019-09-16 19:18:39 -05:00
2020-10-01 13:17:21 +02:00
2018-11-02 14:09:41 -05:00
2020-03-12 13:00:18 +01:00
2019-09-16 11:43:39 -05:00
2020-05-20 08:20:34 +02:00
2020-12-11 13:23:29 +01:00
2020-02-24 08:36:58 +01:00
2019-05-07 23:24:54 -05:00
2020-03-18 07:17:51 +01:00
2019-06-27 23:02:12 +01:00
2019-07-31 13:31:05 -06:00
2020-10-01 13:18:09 +02:00
2018-08-07 14:15:41 -05:00
2018-08-07 14:15:41 -05:00
2020-11-05 11:43:21 +01:00
2019-09-21 06:02:26 -05:00
2019-09-19 10:32:16 -07:00
2019-05-07 23:24:55 -05:00
2019-09-16 11:43:38 -05:00
2020-10-01 13:17:21 +02:00
2019-10-06 22:04:35 -05:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2018-12-23 22:41:31 -06:00
2019-09-23 22:51:57 -05:00
2020-10-01 13:17:21 +02:00
2020-01-17 19:48:27 +01:00
2018-10-23 21:16:04 -05:00
2020-03-12 13:00:18 +01:00
2019-09-16 11:43:38 -05:00
2020-10-01 13:17:21 +02:00
2020-12-02 08:49:45 +01:00
2020-08-21 13:05:19 +02:00
2020-10-01 13:17:21 +02:00
2019-12-21 11:04:45 +01:00
2019-05-07 23:24:54 -05:00
2020-02-01 09:34:37 +00:00
2019-12-21 11:04:43 +01:00
2019-05-30 11:26:37 -07:00
2019-08-22 14:57:34 +10:00
2019-09-24 23:31:32 -05:00
2019-01-24 09:37:33 -06:00
2019-09-16 11:43:39 -05:00
2020-12-11 13:23:29 +01:00
2019-05-30 11:26:35 -07:00
2019-09-23 23:28:59 -05:00