]> git.ipfire.org Git - thirdparty/linux.git/commit
USB: serial: mct_u232: fix missing interrupt-in transfer sanity check
authorJohan Hovold <johan@kernel.org>
Wed, 20 May 2026 14:27:10 +0000 (16:27 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 20 May 2026 14:27:10 +0000 (16:27 +0200)
commit245aba83e3c288e176ed037a1f6b618b09e92ed8
treef7e46e6cb23ba29ba66c6301200d3d33d401797a
parent915b36d701950503c4ea0f6e314b10868e59fce3
USB: serial: mct_u232: fix missing interrupt-in transfer sanity check

Add the missing sanity check on the size of interrupt-in transfers to
avoid parsing stale or uninitialised slab data (and leaking it to user
space).

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mct_u232.c