# CVE-2026-90405: media: stm32: dcmi: fix some error handling bugs in probe()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-17T16:09:34.122Z
- Modified: 2026-10-19T09:19:34.683Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: stm32: dcmi: fix some error handling bugs in probe()

There are a few issues here:

1) After we assign:
        chan = dma_request_chan(&pdev->dev, "tx");
   Then the error paths need to clean up before returning.  The first
   error path does a direct return.
2) The error paths check "dcmi->mdma_chan" but that is not assigned
   until later so it results in memory leaks.  Test "mdma_chan"
   instead.
3) The error handling calls dma_release_channel(dcmi->dma_chan) before
   "dcmi->dma_chan" has been assigned which leads to a NULL pointer
   dereference.  Use the "chan" variable instead.

I also moved the call to dma_release_channel() after the call to
dma_release_channel() so it mirrors the allocation code better.

(As written by CVE List.)

## Affected

- Linux Linux: from bc901885fae0a0273288666609d143e960b6ad3a before 4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659; from bc901885fae0a0273288666609d143e960b6ad3a before f1d1ed39ced825615aeac61f0b6a322178756632; 7.1 (not affected: before 7.1; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659>
- <https://git.kernel.org/stable/c/f1d1ed39ced825615aeac61f0b6a322178756632>

## Sources

- CVE List: [CVE-2026-90405](https://www.cve.org/CVERecord?id=CVE-2026-90405), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90405](https://nvd.nist.gov/vuln/detail/CVE-2026-90405), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90405 · Whole record: https://cve.day/CVE-2026-90405.json · Rebuilt by cve.day 2026-11-25T22:59:39.406Z
