cbcvebase.
CVE-2025-40016
published 2025-10-20

CVE-2025-40016: In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Mark invalid entities with id UVC_INVALID_ENTITY_ID Per UVC 1.1+…

PriorityP424high7.8
EPSS
0.24%
14.7th percentile
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Mark invalid entities with id UVC_INVALID_ENTITY_ID Per UVC 1.1+ specification 3.7.2, units and terminals must have a non-zero unique ID. ``` Each Unit and Terminal within the video function is assigned a unique identification number, the Unit ID (UID) or Terminal ID (TID), contained in the bUnitID or bTerminalID field of the descriptor. The value 0x00 is reserved for undefined ID, ``` If we add a new entity with id 0 or a duplicated ID, it will be marked as UVC_INVALID_ENTITY_ID. In a previous attempt commit 3dd075fe8ebb ("media: uvcvideo: Require entities to have a non-zero unique ID"), we ignored all the invalid units, this broke a lot of non-compatible cameras. Hopefully we are more lucky this time. This also prevents some syzkaller reproducers from triggering warnings due to a chain of entities referring to themselves. In one particular case, an Output Unit is connected to an Input Unit, both with the same ID of 1. But when looking up for the source ID of the Output Unit, that same entity is found instead of the input entity, which leads to such warnings. In another case, a backward chain was considered finished as the source ID was 0. Later on, that entity was found, but its pads were not valid. Here is a sample stack trace for one of those cases. [ 20.650953] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 20.830206] usb 1-1: Using ep0 maxpacket: 8 [ 20.833501] usb 1-1: config 0 descriptor?? [ 21.038518] usb 1-1: string descriptor 0 read error: -71 [ 21.038893] usb 1-1: Found UVC 0.00 device (2833:0201) [ 21.039299] uvcvideo 1-1:0.0: Entity type for entity Output 1 was not initialized! [ 21.041583] uvcvideo 1-1:0.0: Entity type for entity Input 1 was not initialized! [ 21.042218] ------------[ cut here ]------------ [ 21.042536] WARNING: CPU: 0 PID: 9 at drivers/media/mc/mc-entity.c:1147 media_create_pad_link+0x2c4/0x2e0 [ 21.043195] Modules linked in:

Affected

44 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.16.11-1 (forky)linux 6.16.11-1 (forky)
linuxlinux
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 983a1d327e2642832a43f969761e27339b0d2a8f983a1d327e2642832a43f969761e27339b0d2a8f
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 59f64514bc347d0e93b70c6b612ad824b63ae7ca59f64514bc347d0e93b70c6b612ad824b63ae7ca
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < f617d515d66c05e9aebc787a8fe48b7163fc7b70f617d515d66c05e9aebc787a8fe48b7163fc7b70
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 000b2a6bed7f30e0aadfb19bce9af6458d879304000b2a6bed7f30e0aadfb19bce9af6458d879304
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 15c0e136bd8cd70a1136a11c7876d6aae0eef8c815c0e136bd8cd70a1136a11c7876d6aae0eef8c8
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 0f140cede24334b3ee55e3e1127071266cbb82870f140cede24334b3ee55e3e1127071266cbb8287
linuxlinux>= a3fbc2e6bb05a3b1ea341cd29dea09b4a033727b < 0e2ee70291e64a30fe36960c85294726d34a103e0e2ee70291e64a30fe36960c85294726d34a103e
linuxlinux_kernel>= 0 < 6.12.57-16.12.57-1
linuxlinux_kernel>= 0 < 6.16.11-16.16.11-1
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 5.7.0 < 6.6.1106.6.110
linuxlinux_kernel>= 6.13.0 < 6.16.116.16.11
linuxlinux_kernel>= 6.17.0 < 6.17.16.17.1
linuxlinux_kernel>= 6.7.0 < 6.12.516.12.51
msrcazl3_kernel_6.6.104.2-4_on_azure_linux_3.0
msrcazl3_kernel_6.6.96.2-2_on_azure_linux_3.0
ubuntulinux
ubuntulinux-aws
ubuntulinux-aws-5.15
ubuntulinux-aws-fips
ubuntulinux-azure-5.15
ubuntulinux-azure-fde
ubuntulinux-azure-fde-5.15

CVSS provenance

vendor_ubuntu7.8HIGH
osv3.2LOW
vendor_msrc6.2MEDIUM
vendor_redhat4.7MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.