[LTS 8.8 RT] media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_… #127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
jira VULN-9664
cve CVE-2024-53104
commit-author Benoit Sevens [email protected]
commit ecf2b43
This can lead to out of bounds writes since frames of this type were not taken into account when calculating the size of the frames buffer in uvc_parse_streaming.
Fixes: c0efd23 ("V4L/DVB (8145a): USB Video Class driver")
Signed-off-by: Benoit Sevens [email protected]
Cc: [email protected]
Acked-by: Greg Kroah-Hartman [email protected]
Reviewed-by: Laurent Pinchart [email protected]
Signed-off-by: Hans Verkuil [email protected]
(cherry picked from commit ecf2b43)
Signed-off-by: Greg Rose [email protected]
Builds and Loads
Already up to date. configs/kernel-rt-4.18.0-x86_64.config:CONFIG_PREEMPT_RT=y configs/kernel-rt-4.18.0-x86_64-debug.config:CONFIG_PREEMPT_RT=y configs/kernel-rt-x86_64.config:# CONFIG_PREEMPT_RTB is not set configs/kernel-rt-x86_64.config:CONFIG_PREEMPT_RT=y configs/kernel-rt-x86_64-debug.config:# CONFIG_PREEMPT_RTB is not set configs/kernel-rt-x86_64-debug.config:CONFIG_PREEMPT_RT=y skipkabi is true /home/gvrose8192/prj/kernel-build-gvrose_ciqlts8_8-rt no .config file found, moving on [TIMER]{MRPROPER}: 0s x86_64 architecture detected, copying config 'configs/kernel-rt-4.18.0-x86_64.config' -> '.config' Setting Local Version for build CONFIG_LOCALVERSION="-gvrose_ciqlts8_8-rt" Making olddefconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig
kABI check is skipped due to RT kernel ABI instability
[SNIP]
INSTALL sound/usb/snd-usbmidi-lib.ko INSTALL sound/usb/usx2y/snd-usb-us122l.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko INSTALL sound/virtio/virtio_snd.ko INSTALL sound/x86/snd-hdmi-lpe-audio.ko INSTALL virt/lib/irqbypass.ko DEPMOD 4.18.0-gvrose_ciqlts8_8-rt+ [TIMER]{MODULES}: 81s Making Install sh ./arch/x86/boot/install.sh 4.18.0-gvrose_ciqlts8_8-rt+ arch/x86/boot/bzImage \ System.map "/boot" [TIMER]{INSTALL}: 32s Checking kABI kABI check skipped Setting Default Kernel to /boot/vmlinuz-4.18.0-gvrose_ciqlts8_8-rt+ and Index to 0 Hopefully Grub2.0 took everything ... rebooting after time metrices [TIMER]{MRPROPER}: 0s [TIMER]{BUILD}: 4870s [TIMER]{MODULES}: 81s [TIMER]{INSTALL}: 32s [TIMER]{TOTAL} 5004s Rebooting in 10 seconds
[gvrose8192@auto-kernel-test-88lts-rt ~]$ uname -a Linux auto-kernel-test-88lts-rt 4.18.0-gvrose_ciqlts8_8-rt+ #1 SMP PREEMPT_RT Wed Feb 12 20:24:38 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Note that this PR is using the newer kernel automation tests available in kernel-tools under the 'gvrose_more_automation' branch.
Full command and build logs attached.
lts-8_8-rt-commands.log
lts-8_8-rt-build.log