]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: dvb-usb: dtv5100: fix out-of-bounds in dtv5100_i2c_msg()
authorJeongjun Park <aha310510@gmail.com>
Mon, 21 Apr 2025 12:52:44 +0000 (21:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:11:48 +0000 (13:11 +0100)
commitc2c293ea7b61f12cdaad1e99a5b4efc58c88960a
tree552aa156ed19ba79e1304f4fea56dabdd391b1af
parent06d1fdce401b9b35edc4e8cf5c2d2acd7af919b3
media: dvb-usb: dtv5100: fix out-of-bounds in dtv5100_i2c_msg()

commit b91e6aafe8d356086cc621bc03e35ba2299e4788 upstream.

rlen value is a user-controlled value, but dtv5100_i2c_msg() does not
check the size of the rlen value. Therefore, if it is set to a value
larger than sizeof(st->data), an out-of-bounds vuln occurs for st->data.

Therefore, we need to add proper range checking to prevent this vuln.

Fixes: 60688d5e6e6e ("V4L/DVB (8735): dtv5100: replace dummy frontend by zl10353")
Cc: stable@vger.kernel.org
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb/dtv5100.c