{"id":"CVE-2026-90405","aliases":["CVE-2026-90405"],"related":[],"kind":"vulnerability","state":"published","title":"media: stm32: dcmi: fix some error handling bugs in probe()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-17T16:09:34.122Z","modified":"2026-10-19T09:19:34.683Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bc901885fae0a0273288666609d143e960b6ad3a","fixed":"4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659","status":"affected"},{"type":"git","introduced":"bc901885fae0a0273288666609d143e960b6ad3a","fixed":"f1d1ed39ced825615aeac61f0b6a322178756632","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1d1ed39ced825615aeac61f0b6a322178756632","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90405","url":"https://www.cve.org/CVERecord?id=CVE-2026-90405","licence":"CVE Terms of Use","modified":"2026-10-19T09:03:09.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90405","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90405","licence":"Public domain","modified":"2026-10-19T09:19:34.683Z"}],"updatedAt":"2026-11-25T22:59:39.406Z","epss":{"score":0.00189,"percentile":0.08986,"date":"2026-12-01T12:00:22.000Z"}}