CVE-2026-138928: media: tw686x: fix V4L2 device lifetime on probe failure

Published Nov 30, 2026
·
Updated

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

media: tw686x: fix V4L2 device lifetime on probe failure

tw686xvideoinit() registers the V4L2 device, which initializes its reference count. Successfully registered video devices take additional references to the V4L2 device as well.

The probe failure paths currently tear down the PCI resources and then free the channel arrays and the tw686x device directly. This bypasses the V4L2 device reference count and the tw686xdevrelease() callback.

If a video device still holds a reference, its eventual release will drop a reference to the already freed V4L2 device. Even when no extra references remain, directly freeing the device bypasses the lifetime management established by v4l2deviceregister().

After cleaning up the PCI resources, check whether the V4L2 device was registered. If so, mark the hardware unavailable and drop the driver's V4L2 device reference, letting tw686xdevrelease() free the backing objects when the final reference is released. Keep the existing direct free path for failures that occur before V4L2 device registration.

This issue was found by manual code inspection.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In tw686x probe-failure cleanup, preserve the direct-free path for failures before V4L2 device registration. If the V4L2 device was registered, mark the hardware unavailable and drop the driver's V4L2 device reference so tw686x_dev_release() frees the backing objects when the final reference is released.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 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