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

Summary

CVECVE-2026-138989
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:01 UTC
Updated2026-11-30 14:18:01 UTC
DescriptionIn 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]

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 8db2017feb141e46a456defe7b05ec935bae3aaf git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 827b56d45e562a80d063eff9a7be4ffb4f3257a6 git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 7aa2f6a9cc2d467166174194de8697be8b830a36 git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 802e61f3ba7ab0dd212866286ddbe062de157e65 git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 90379d750ee6146b8ccaf28d00e98f7708b074fd git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2 git Not specified
CNA Linux Linux affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 9ff738f93084351ed6e818d4d58679a9e9083a8d git Not specified
CNA Linux Linux affected 5.14 Not specified
CNA Linux Linux unaffected 5.14 semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report