{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138989","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.907Z","datePublished":"2026-11-30T13:26:50.801Z","dateUpdated":"2026-11-30T13:26:50.801Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:26:50.801Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions\n\nThe V4L2 control framework is designed to allow drivers to instantiate\ncontrols and clusters without checking for errors after each call,\nchecking hdl->error only once at the end.\n\nHowever, if allocating the master control (controls[0]) fails, e.g. due to\nmemory allocation failure, v4l2_ctrl_cluster() triggers a WARNING:\n\n      ncontrols == 0 || controls[0] == NULL\n      WARNING: drivers/media/v4l2-core/v4l2-ctrls-core.c:2525 at v4l2_ctrl_cluster\n\nAdditionally, v4l2_ctrl_auto_cluster() attempts to dereference\nmaster->minimum without checking if controls[0] is NULL, leading to a\nNULL pointer dereference when master control creation fails.\n\nUpdate both v4l2_ctrl_cluster() and v4l2_ctrl_auto_cluster() to silently\nreturn if controls[0] is NULL, preserving the design that control\ncreation errors are caught at the end when the driver checks hdl->error.\nAlso update function documentation in include/media/v4l2-ctrls.h.\n\n[hverkuil: simplified the v4l2_ctrl_auto_cluster code a bit]"}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/v4l2-core/v4l2-ctrls-core.c","include/media/v4l2-ctrls.h"],"versions":[{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"8db2017feb141e46a456defe7b05ec935bae3aaf","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"827b56d45e562a80d063eff9a7be4ffb4f3257a6","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"7aa2f6a9cc2d467166174194de8697be8b830a36","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"802e61f3ba7ab0dd212866286ddbe062de157e65","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"90379d750ee6146b8ccaf28d00e98f7708b074fd","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2","status":"affected","versionType":"git"},{"version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","lessThan":"9ff738f93084351ed6e818d4d58679a9e9083a8d","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/v4l2-core/v4l2-ctrls-core.c","include/media/v4l2-ctrls.h"],"versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf"},{"url":"https://git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6"},{"url":"https://git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36"},{"url":"https://git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65"},{"url":"https://git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd"},{"url":"https://git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2"},{"url":"https://git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d"}],"title":"media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions","x_generator":{"engine":"bippy-1.2.0"}}}}