diff options
author | Lior David | 2017-11-14 14:25:37 +0100 |
---|---|---|
committer | Kalle Valo | 2017-12-02 15:18:28 +0100 |
commit | 26a6d5274865532502c682ff378ac8ebe2886238 (patch) | |
tree | 8fd4f740718bf940405b6cd5c98b7cfb645608ba /drivers/net/wireless/zydas | |
parent | wil6210: abort properly in cfg suspend (diff) | |
download | kernel-qcow2-linux-26a6d5274865532502c682ff378ac8ebe2886238.tar.gz kernel-qcow2-linux-26a6d5274865532502c682ff378ac8ebe2886238.tar.xz kernel-qcow2-linux-26a6d5274865532502c682ff378ac8ebe2886238.zip |
wil6210: fix length check in __wmi_send
The current length check:
sizeof(cmd) + len > r->entry_size
will allow very large values of len (> U16_MAX - sizeof(cmd))
and can cause a buffer overflow. Fix the check to cover this case.
In addition, ensure the mailbox entry_size is not too small,
since this can also bypass the above check.
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/zydas')
0 files changed, 0 insertions, 0 deletions