]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: serial: keyspan: fix missing indat transfer sanity check
authorJohan Hovold <johan@kernel.org>
Wed, 20 May 2026 14:26:48 +0000 (16:26 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 20 May 2026 14:26:48 +0000 (16:26 +0200)
commitab8336a7e414f018430aa1af3a46944032f7ff96
treea36e96dce2f4e3e529d344e306330d23f911d029
parentcb3560e8eab1dfa1cac1ed52631adf8ec6ff2cd5
USB: serial: keyspan: fix missing indat transfer sanity check

Add the missing sanity check on the size of usa49wg indat transfers to
avoid parsing stale or uninitialised slab data.

Fixes: 0ca1268e109a ("USB Serial Keyspan: add support for USA-49WG & USA-28XG")
Cc: stable@vger.kernel.org # 2.6.23
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan.c