summaryrefslogtreecommitdiffstats
path: root/drivers/comedi/comedidev.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-10-25 13:45:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-26 19:10:18 +0200
commit78cdfd62bd54af615fba9e3ca1ba35de39d3871d (patch)
tree165b9a66a1797d25dc779a94ea295aae1df7c3fd /drivers/comedi/comedidev.h
parentcomedi: vmk80xx: fix transfer-buffer overflows (diff)
downloadlinux-78cdfd62bd54af615fba9e3ca1ba35de39d3871d.tar.xz
linux-78cdfd62bd54af615fba9e3ca1ba35de39d3871d.zip
comedi: vmk80xx: fix bulk-buffer overflow
The driver is using endpoint-sized buffers but must not assume that the tx and rx buffers are of equal size or a malicious device could overflow the slab-allocated receive buffer when doing bulk transfers. Fixes: 985cafccbf9b ("Staging: Comedi: vmk80xx: Add k8061 support") Cc: stable@vger.kernel.org # 2.6.31 Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Link: https://lore.kernel.org/r/20211025114532.4599-5-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/comedi/comedidev.h')
0 files changed, 0 insertions, 0 deletions