{"api_version":"1","generated_at":"2026-11-30T19:44:01+00:00","cve":"CVE-2026-138989","urls":{"html":"https://cve.report/CVE-2026-138989","api":"https://cve.report/api/cve/CVE-2026-138989.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138989","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138989"},"summary":{"title":"media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functions","description":"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]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:01","updated_at":"2026-11-30 14:18:01"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65","name":"https://git.kernel.org/stable/c/802e61f3ba7ab0dd212866286ddbe062de157e65","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d","name":"https://git.kernel.org/stable/c/9ff738f93084351ed6e818d4d58679a9e9083a8d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd","name":"https://git.kernel.org/stable/c/90379d750ee6146b8ccaf28d00e98f7708b074fd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36","name":"https://git.kernel.org/stable/c/7aa2f6a9cc2d467166174194de8697be8b830a36","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf","name":"https://git.kernel.org/stable/c/8db2017feb141e46a456defe7b05ec935bae3aaf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6","name":"https://git.kernel.org/stable/c/827b56d45e562a80d063eff9a7be4ffb4f3257a6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2","name":"https://git.kernel.org/stable/c/e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138989","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138989","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 8db2017feb141e46a456defe7b05ec935bae3aaf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 827b56d45e562a80d063eff9a7be4ffb4f3257a6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 7aa2f6a9cc2d467166174194de8697be8b830a36 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 802e61f3ba7ab0dd212866286ddbe062de157e65 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 90379d750ee6146b8ccaf28d00e98f7708b074fd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 71c689dc2e732d4cb190aaf0edea73116b1611bd 9ff738f93084351ed6e818d4d58679a9e9083a8d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/v4l2-core/v4l2-ctrls-core.c","include/media/v4l2-ctrls.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8db2017feb141e46a456defe7b05ec935bae3aaf","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"827b56d45e562a80d063eff9a7be4ffb4f3257a6","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"7aa2f6a9cc2d467166174194de8697be8b830a36","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"802e61f3ba7ab0dd212866286ddbe062de157e65","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"90379d750ee6146b8ccaf28d00e98f7708b074fd","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"e6f3ebe63ce84cb5a7bccc00f5e70b2f29133fc2","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"},{"lessThan":"9ff738f93084351ed6e818d4d58679a9e9083a8d","status":"affected","version":"71c689dc2e732d4cb190aaf0edea73116b1611bd","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/v4l2-core/v4l2-ctrls-core.c","include/media/v4l2-ctrls.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.14"},{"lessThan":"5.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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]"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:26:50.801Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138989","datePublished":"2026-11-30T13:26:50.801Z","dateReserved":"2026-11-30T13:22:15.907Z","dateUpdated":"2026-11-30T13:26:50.801Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:01","lastModifiedDate":"2026-11-30 14:18:01","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138989","Ordinal":"1","Title":"media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster ","CVE":"CVE-2026-138989","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138989","Ordinal":"1","NoteData":"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]","Type":"Description","Title":"media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster "}]}}}