Skip to content
Commit 86674a97 authored by Harry Morris's avatar Harry Morris Committed by Stefan Schmidt
Browse files

ieee802154: ca8210: fix uninitialised data read



In ca8210_test_int_user_write() a user can request the transfer of a
frame with a length field (command.length) that is longer than the
actual buffer provided (len). In this scenario the driver will copy
the buffer contents into the uninitialised command[] buffer, then
transfer <data.length> bytes over the SPI even though only <len> bytes
had been populated, potentially leaking sensitive kernel memory.

Also the first 6 bytes of the command buffer must be initialised in case
a malformed, short packet is written and the uninitialised bytes are
read in ca8210_test_check_upstream.

Reported-by: default avatarDomen Puncer Kugler <domen.puncer@samsung.com>
Signed-off-by: default avatarHarry Morris <h.morris@cascoda.com>
Tested-by: default avatarHarry Morris <h.morris@cascoda.com>
Signed-off-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
parent 8fd4bc8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment