922fb6ac85
Fix CVE-2022-2652: Depending on the way the format strings in the card label are crafted it's possible to leak kernel stack memory. There is also the possibility for DoS due to the v4l2loopback kernel module crashing when providing the card label on request (reproduce e.g. with many %s modifiers in a row). https://github.com/umlaeute/v4l2loopback/blob/v0.12.7/ChangeLog Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# v4l2loopback
|
|
#
|
|
################################################################################
|
|
|
|
V4L2LOOPBACK_VERSION = 0.12.7
|
|
V4L2LOOPBACK_SITE = $(call github,umlaeute,v4l2loopback,v$(V4L2LOOPBACK_VERSION))
|
|
V4L2LOOPBACK_LICENSE = GPL-2.0+
|
|
V4L2LOOPBACK_LICENSE_FILES = COPYING
|
|
V4L2LOOPBACK_CPE_ID_VENDOR = v4l2loopback_project
|
|
V4L2LOOPBACK_CPE_ID_PREFIX = cpe:2.3:o
|
|
|
|
ifeq ($(BR2_PACKAGE_V4L2LOOPBACK_UTILS),y)
|
|
define V4L2LOOPBACK_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/v4l2loopback-ctl $(TARGET_DIR)/usr/bin/v4l2loopback-ctl
|
|
endef
|
|
endif
|
|
|
|
# CONFIG_MEDIA_SUPPORT depends on CONFIG_HAS_IOMEM, which is only
|
|
# available when CONFIG_PCI=y on S390. CONFIG_VIDEO_DEV needs
|
|
# CONFIG_I2C since Linux 5.18.
|
|
define V4L2LOOPBACK_LINUX_CONFIG_FIXUPS
|
|
$(if $(BR2_s390x),$(call KCONFIG_ENABLE_OPT,CONFIG_PCI))
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MEDIA_SUPPORT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_I2C)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_VIDEO_DEV)
|
|
endef
|
|
|
|
$(eval $(kernel-module))
|
|
$(eval $(generic-package))
|