CVE-2026-99555: media: usbtv: fix null-pointer dereference on disconnect

Published Nov 19, 2026
·
Updated

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

media: usbtv: fix null-pointer dereference on disconnect

A null-pointer dereference can occur in usbmakepath() when called from usbtvquerycap() (and other ioctl handlers) during device disconnection.

Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] RIP: 0010:usbmakepath include/linux/usb.h:985 [inline] RIP: 0010:usbtvquerycap+0x9c/0x100 drivers/media/usb/usbtv/usbtv-video.c:612 ... Call Trace: <TASK> v4lquerycap+0x236/0x470 drivers/media/v4l2-core/v4l2-ioctl.c:1106 videodoioctl+0x8af/0xc70 drivers/media/v4l2-core/v4l2-ioctl.c:3133 videousercopy+0x860/0x1430 drivers/media/v4l2-core/v4l2-ioctl.c:3475 v4l2ioctl+0x18d/0x1e0 drivers/media/v4l2-core/v4l2-dev.c:366 vfsioctl fs/ioctl.c:51 [inline] dosysioctl fs/ioctl.c:597 [inline] sesysioctl+0xfc/0x170 fs/ioctl.c:583 dosyscallx64 arch/x86/entry/syscall64.c:63 [inline] dosyscall64+0x174/0x580 arch/x86/entry/syscall64.c:94

This happens due to a race condition between the USB device disconnect routine (usbtvdisconnect()) and V4L2 ioctls. When the device is disconnected, usbtvdisconnect() sets usbtv->udev = NULL without holding the usbtv->v4l2lock mutex. Concurrently, an ioctl handler like usbtvquerycap() can be executing under the v4l2lock and attempt to use usbtv->udev, leading to a crash.

To fix this, move the usbtv->udev = NULL assignment into usbtvvideofree() and protect it with mutexlock(&usbtv->v4l2lock). This ensures that no non-queue ioctl handler can run concurrently with the pointer being nullified. If an ioctl is already running, the mutex will block the disconnect path until the ioctl finishes. If an ioctl is blocked waiting for the lock, it will acquire it after the disconnect routine releases it, but will then check videoisregistered() (which was cleared by vb2videounregisterdevice()) and safely return -ENODEV.

Acquiring v4l2lock after vb2videounregisterdevice() avoids reintroducing a historical deadlock issue, and usbtvaudiofree() remains safe as it is called before usbtvvideofree().

Affected Software

8 affected componentsFixes available
linux/kernel>=5.10.227<5.11
5.11
linux/kernel>=5.15.168<5.16
5.16
linux/kernel>=6.1.113<6.2
6.2
linux/kernel>=6.6.55<6.7
6.7
linux/kernel>=6.8.2<6.9
6.9
linux/kernel>=6.9.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.11
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.7
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.9
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  9. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  10. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.3-1
  11. Compensating control

    In the usbtv disconnect path, move the usbtv->udev = NULL assignment into usbtv_video_free() and protect it with usbtv->v4l2_lock; acquire the lock after vb2_video_unregister_device() to avoid the historical deadlock.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:45 PM
Data Sourced
via MITRE·02:45 PM
Description
Data Sourced
via OSV·02:45 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 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