{"id":"CVE-2026-90405","revision":"89ba7c77f4b34d548cfc4a2ab844ea91","records":[{"revision":"89ba7c77f4b34d548cfc4a2ab844ea91","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-90405","aliases":[],"title":"media: stm32: dcmi: fix some error handling bugs in probe()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stm32: dcmi: fix some error handling bugs in probe()\n\nThere are a few issues here:\n\n1) After we assign:\n        chan = dma_request_chan(&pdev->dev, \"tx\");\n   Then the error paths need to clean up before returning.  The first\n   error path does a direct return.\n2) The error paths check \"dcmi->mdma_chan\" but that is not assigned\n   until later so it results in memory leaks.  Test \"mdma_chan\"\n   instead.\n3) The error handling calls dma_release_channel(dcmi->dma_chan) before\n   \"dcmi->dma_chan\" has been assigned which leads to a NULL pointer\n   dereference.  Use the \"chan\" variable instead.\n\nI also moved the call to dma_release_channel() after the call to\ndma_release_channel() so it mirrors the allocation code better.","state":0,"publishedAt":"2026-09-17T16:09:34.122+00:00","modifiedAt":"2026-10-19T09:03:09.783+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/media/platform/st/stm32/stm32-dcmi.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"bc901885fae0a0273288666609d143e960b6ad3a\",\n                            \"lessThan\": \"4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bc901885fae0a0273288666609d143e960b6ad3a\",\n                            \"lessThan\": \"f1d1ed39ced825615aeac61f0b6a322178756632\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/media/platform/st/stm32/stm32-dcmi.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"7.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"7.1\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.6\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659","https://git.kernel.org/stable/c/f1d1ed39ced825615aeac61f0b6a322178756632"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-90405","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-90405","identifiers":["CVE-2026-90405"]},"retained":false,"historicalAffected":[]}],"coverage":[]}