{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138928","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.904Z","datePublished":"2026-11-30T13:26:17.310Z","dateUpdated":"2026-12-01T05:40:46.502Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:46.502Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: tw686x: fix V4L2 device lifetime on probe failure\n\ntw686x_video_init() registers the V4L2 device, which initializes its\nreference count. Successfully registered video devices take additional\nreferences to the V4L2 device as well.\n\nThe probe failure paths currently tear down the PCI resources and then\nfree the channel arrays and the tw686x device directly. This bypasses\nthe V4L2 device reference count and the tw686x_dev_release() callback.\n\nIf a video device still holds a reference, its eventual release will\ndrop a reference to the already freed V4L2 device. Even when no extra\nreferences remain, directly freeing the device bypasses the lifetime\nmanagement established by v4l2_device_register().\n\nAfter cleaning up the PCI resources, check whether the V4L2 device was\nregistered. If so, mark the hardware unavailable and drop the driver's\nV4L2 device reference, letting tw686x_dev_release() free the backing\nobjects when the final reference is released. Keep the existing direct\nfree path for failures that occur before V4L2 device registration.\n\nThis issue was found by manual code inspection."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The freed objects are touched from a local syscall: close(2) on a /dev/videoN fd opened during tw686x_probe() runs v4l2_release() -> vb2_fop_release() on vc->vidq inside the kfree'd video_channels array, then video_put() -> v4l2_device_put() on the kfree'd tw686x_dev. No remote data is involved; the probe failure itself is PCI/hardware-driven.\nAC:H - Needs tw686x_probe() to fail after v4l2_device_register() (later-channel dma_alloc_coherent/video_register_device failure or request_irq on the shared INTx line) during a boot/hotplug probe the user cannot start. The user must also open the node, which devtmpfs creates 0600 root until udev relaxes it, in the short window before probe tears it down.\nPR:L - The actor holding the fd only needs ordinary open access to /dev/videoN (video group or seat uaccess), with no capability checks in v4l2_open()/v4l2_fh_open(). Starting the probe yourself needs root (sysfs bind, module load, PCI rescan), but a hotplug or link-flap re-probe needs no privilege from the attacker.\nUI:N - No other user has to act; the attacker opens and later closes their own fd on the video node, and the failing probe comes from hardware or system events, not a victim action.\nS:U - Memory corruption stays inside the kernel's own authority; there is no guest/host, IOMMU or sandbox boundary involved in the tw686x probe/release path.\nC:H - After the kfree, v4l2_release() and vb2_fop_release() read vdev->v4l2_dev->mdev, vdev->queue->lock and q->ops from reclaimable kmalloc memory (the tw686x_dev and video_channels arrays), so a sprayed replacement object controls the pointers the kernel then follows.\nI:H - Use-after-free with writes and indirect calls: mutex_lock on the freed vc->vb_mutex, vb2_queue_release() calling through the freed queue's q->ops, and kref_put on the freed v4l2_dev.ref that, on reaching zero, calls v4l2_dev->release loaded from freed memory. This enables control-flow hijack.\nA:H - The close path that dereferences the freed tw686x_dev and vb2_queue will oops or corrupt the slab, crashing the kernel; even without an fd holder, each failed probe leaks the pci_dev reference taken by v4l2_device_register() and the ctrl handlers."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/tw686x/tw686x-core.c"],"versions":[{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"3cf093341c49293e3ca9d43a7053753fcb6532fa","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"5f6c914516b4c0b1bd18d4122ee6d01b05339e3a","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"bd24b2b9f49f4b00c8217d01f636d1f3c5913661","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"75e716e458f3093ee5cf5d38383b08c43821f435","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"c1b1e81ed8b2bae7299243c5722332451b0c3338","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"546536807ad441e63c92ee902860318e245182c1","status":"affected","versionType":"git"},{"version":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","lessThan":"ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/tw686x/tw686x-core.c"],"versions":[{"version":"4.7","status":"affected"},{"version":"0","lessThan":"4.7","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3cf093341c49293e3ca9d43a7053753fcb6532fa"},{"url":"https://git.kernel.org/stable/c/b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d"},{"url":"https://git.kernel.org/stable/c/5f6c914516b4c0b1bd18d4122ee6d01b05339e3a"},{"url":"https://git.kernel.org/stable/c/bd24b2b9f49f4b00c8217d01f636d1f3c5913661"},{"url":"https://git.kernel.org/stable/c/75e716e458f3093ee5cf5d38383b08c43821f435"},{"url":"https://git.kernel.org/stable/c/c1b1e81ed8b2bae7299243c5722332451b0c3338"},{"url":"https://git.kernel.org/stable/c/546536807ad441e63c92ee902860318e245182c1"},{"url":"https://git.kernel.org/stable/c/ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd"}],"title":"media: tw686x: fix V4L2 device lifetime on probe failure","x_generator":{"engine":"bippy-1.2.0"}}}}