diff options
author | Aurelien Aptel <aaptel@suse.com> | 2019-01-31 13:46:07 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-01-31 14:03:20 +0100 |
commit | d339adc12a4f885b572c5412e4869af8939db854 (patch) | |
tree | 44cd5a49b6e7aadd4cb5bef580ff03164f43344a /lib/fdt_rw.c | |
parent | CIFS: Do not consider -ENODATA as stat failure for reads (diff) | |
download | linux-d339adc12a4f885b572c5412e4869af8939db854.tar.xz linux-d339adc12a4f885b572c5412e4869af8939db854.zip |
CIFS: fix use-after-free of the lease keys
The request buffers are freed right before copying the pointers.
Use the func args instead which are identical and still valid.
Simple reproducer (requires KASAN enabled) on a cifs mount:
echo foo > foo ; tail -f foo & rm foo
Cc: <stable@vger.kernel.org> # 4.20
Fixes: 179e44d49c2f ("smb3: add tracepoint for sending lease break responses to server")
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Diffstat (limited to 'lib/fdt_rw.c')
0 files changed, 0 insertions, 0 deletions