CVE-2026-138989
publishedmedia: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux71c689dc2e732d4cb190aaf0edea73116b1611bd to < 8db2017feb141e46a456defe7b05ec935bae3aaf · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 827b56d45e562a80d063eff9a7be4ffb4f3257a6 · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 7aa2f6a9cc2d467166174194de8697be8b830a36 · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 802e61f3ba7ab0dd212866286ddbe062de157e65 · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 90379d750ee6146b8ccaf28d00e98f7708b074fd · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2 · 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 9ff738f93084351ed6e818d4d58679a9e9083a8d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 71c689dc2e732d4cb190aaf0edea73116b1611bd to < 8db2017feb141e46a456defe7b05ec935bae3aaf (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < 827b56d45e562a80d063eff9a7be4ffb4f3257a6 (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < 7aa2f6a9cc2d467166174194de8697be8b830a36 (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < 802e61f3ba7ab0dd212866286ddbe062de157e65 (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < 90379d750ee6146b8ccaf28d00e98f7708b074fd (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2 (affected · git)71c689dc2e732d4cb190aaf0edea73116b1611bd to < 9ff738f93084351ed6e818d4d58679a9e9083a8d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36
- https://git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65
- https://git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6
- https://git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf
- https://git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd
- https://git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d
- https://git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2
Provider assertions
1Linux · cna
media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 165ad87e3ffab0e3f7755d9ec359cbaff3da8bcfa825f69f4fb8583e43ff7bd3
- Ingested
- 30 Nov 2026, 13:36:39 UTC
- Source record
- Official CVE record