CVE-2026-138989

Not scored yetLast modified Nov 30, 2026

Description

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

media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions

The V4L2 control framework is designed to allow drivers to instantiate controls and clusters without checking for errors after each call, checking hdl->error only once at the end.

However, if allocating the master control (controls[0]) fails, e.g. due to memory allocation failure, v4l2_ctrl_cluster() triggers a WARNING:

ncontrols == 0 || controls[0] == NULL WARNING: drivers/media/v4l2-core/v4l2-ctrls-core.c:2525 at v4l2_ctrl_cluster

Additionally, v4l2_ctrl_auto_cluster() attempts to dereference master->minimum without checking if controls[0] is NULL, leading to a NULL pointer dereference when master control creation fails.

Update both v4l2_ctrl_cluster() and v4l2_ctrl_auto_cluster() to silently return if controls[0] is NULL, preserving the design that control creation errors are caught at the end when the driver checks hdl->error. Also update function documentation in include/media/v4l2-ctrls.h.

[hverkuil: simplified the v4l2_ctrl_auto_cluster code a bit]

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138998.8Use after free in HTML in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandbox via a crCVE-2026-138990In the Linux kernel, the following vulnerability has been resolved: crypto: qat - zero the VF migration state buffer on save The QAT VF miCVE-2026-1389917.1In the Linux kernel, the following vulnerability has been resolved: md: validate bblog_size when loading v1.x badblocks metadata In super_CVE-2026-138992In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix checkpoint root lifetime on sysfs errors nilfs_find_or_creCVE-2026-138993In the Linux kernel, the following vulnerability has been resolved: media: ir_toy: Validate the maximum tx carrier Reject any carrier the CVE-2026-138994In the Linux kernel, the following vulnerability has been resolved: media: serial_ir: Fix race condition where timer can be re-armed EnsurCVE-2026-138995In the Linux kernel, the following vulnerability has been resolved: media: ene_ir: Ensure teardown is done in the correct order The timer CVE-2026-138996In the Linux kernel, the following vulnerability has been resolved: seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupCVE-2026-138997In the Linux kernel, the following vulnerability has been resolved: signalfd: don't dequeue the forced fatal signals These signals should CVE-2026-138998In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci-pci: Set drvdata before creating LTR sysfs attribute CVE-2026-138999In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci: Bounce short reads irrespective of the IOMMU The coCVE-2026-13904.3The Redirect countdown plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.0. This is d
CVE-2026-138989: Unscored | Vulnix