Cascoda / ca8210-linux

Linux kernel driver for direct SPI communication with Cascoda's CA-8210 IEEE 802.15.4 transceiver
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

Better sanitize userspace input to improve driver stability #3

Closed CiaranWoodward closed 8 years ago

CiaranWoodward commented 8 years ago

Prevent a buffer overflow vulnerability in ca8210_test_int_user_write by checking the validity of len. Replace memcpy with copy_to_user in ca8210_test_int_user_read for address validity checks