CVE-2026-138989

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

No CVSS score yet EPSS 0.21%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-138989

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138989 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 8db2017feb141e46a456defe7b05ec935bae3aaf
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 827b56d45e562a80d063eff9a7be4ffb4f3257a6
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 7aa2f6a9cc2d467166174194de8697be8b830a36
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 802e61f3ba7ab0dd212866286ddbe062de157e65
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 90379d750ee6146b8ccaf28d00e98f7708b074fd
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2
affected from 71c689dc2e732d4cb190aaf0edea73116b1611bd, before 9ff738f93084351ed6e818d4d58679a9e9083a8d
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138989 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138989

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138989
trivy image --scanners vuln IMAGE | grep CVE-2026-138989

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-138989 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.