CVE-2026-142859: media: vidtv: fix uaf in vidtv_bridge_on_new_pkts_avail
In the Linux kernel, the following vulnerability has been resolved:
media: vidtv: fix uaf in vidtvbridgeonnewpktsavail
Attempting to unbind a dvbdevice that is in the process of feeding data causes a UAF as we free the underlying device without stopping the feed first. Fix this by stopping the stream first using vidtvstopstreaming(). However, our codepath in the reproducer (mentioned in the below reply) does not decrement our users (dmxdev->dvrdvbdev->users) to 1 after it has been incremented to 2 by our read() in the reproducer, that is only possible on .release. This can cause a task hang as dvbdmxdevrelease() uses waitevent() in the waitqueue unless we use a close(fd)(in the reproducer). Is this a problem? Please advise.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Operational
Stop the stream first using vidtv_stop_streaming() before unbinding the DVB device.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel's vidtv media driver are exposed when a DVB device can be unbound while it is actively feeding data.
What condition triggers the use-after-free?
The issue occurs when a DVB device is unbound during an active data feed, causing the underlying device to be freed before the feed has been stopped.
What is the remediation?
Apply a kernel version containing the referenced fixes. The fix stops streaming with vidtv_stop_streaming() before freeing the device during unbind.
Is there an operational concern during reproduction or teardown?
Yes. A read() can increase dmxdev->dvr_dvbdev->users to 2, and the count is only reduced on .release; if the file descriptor is not closed, dvb_dmxdev_release() can wait indefinitely and cause a task hang.