CVE-2026-139040: media: vidtv: fix frontend reference leak on unbind

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

media: vidtv: fix frontend reference leak on unbind

dvbregisterfrontend() keeps two references to the frontend. One is released by dvbunregisterfrontend(), and the other by dvbfrontenddetach(). vidtv only called dvbunregisterfrontend(), so the second reference was never released. As a result, dvbfrontendfree() was never called, leaking the frontend private data and its struct dvbdevice.

The detach call was removed by commit 63101b756893 ("media: vidtv: fix driver unbind/remove") because it caused an OOPS. The demod .release callback freed vidtvdemodstate, and the I2C remove callbacks then accessed the freed state.

That commit also removed those accesses from the I2C remove callbacks. Restore the detach call, but remove the demod .release callback. vidtvdemodstate is owned by the I2C client and is already freed by vidtvdemodi2cremove(), so the frontend detach path should not free it.

Tested with kmemleak and KASAN over 10 bind/unbind cycles. The reported frontend and dvbdevice leaks were present before the fix and were gone after it, with no KASAN reports.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In vidtv, restore the dvb_frontend_detach() call and remove the demod .release callback; vidtv_demod_state is owned and freed by the I2C client, so the detach path must not free it.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203