summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYoungjun Lee <yjjuny.lee@samsung.com>2025-06-10 21:41:07 +0900
committerHans Verkuil <hverkuil@xs4all.nl>2025-06-16 08:43:23 +0200
commit782b6a718651eda3478b1824b37a8b3185d2740c (patch)
tree68cf76de5cfbb4cb242d22ff8974e97ebb3f9681 /tools/perf/scripts/python/export-to-sqlite.py
parent53b0b80e5240fec7c5a420bffb310edc83faf4fd (diff)
downloadlinux-782b6a718651eda3478b1824b37a8b3185d2740c.tar.gz
linux-782b6a718651eda3478b1824b37a8b3185d2740c.zip
media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
The buffer length check before calling uvc_parse_format() only ensured that the buffer has at least 3 bytes (buflen > 2), buf the function accesses buffer[3], requiring at least 4 bytes. This can lead to an out-of-bounds read if the buffer has exactly 3 bytes. Fix it by checking that the buffer has at least 4 bytes in uvc_parse_format(). Signed-off-by: Youngjun Lee <yjjuny.lee@samsung.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Fixes: c0efd232929c ("V4L/DVB (8145a): USB Video Class driver") Cc: stable@vger.kernel.org Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://lore.kernel.org/r/20250610124107.37360-1-yjjuny.lee@samsung.com Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions