media: stm32: dcmi: fix some error handling bugs in probe()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 7.2.6
- CVEs
- CVE-2026-90405
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:32 UTC · Revision 1
Source evidence
media: stm32: dcmi: fix some error handling bugs in probe()
core-osv · Original sourcePublished 17 Sept 2026, 16:09 UTC
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.
osv:CVE-2026-90405
Kernel
Fixed versions: 7.2.6
Complete source record
{
"id": "2a24d031d47aeb3606f94d26f434d7b19c57ec7a45244d27b7b6f94308a485f1",
"url": "https://osv.dev/vulnerability/CVE-2026-90405",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "media: stm32: dcmi: fix some error handling bugs in probe()",
"summary": "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.",
"evidence": "osv:CVE-2026-90405",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.2.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-90405",
"aliases": [
"CVE-2026-90405"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "bc901885fae0a0273288666609d143e960b6ad3a"
},
{
"fixed": "4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659"
},
{
"fixed": "f1d1ed39ced825615aeac61f0b6a322178756632"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90405.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.1.0"
},
{
"fixed": "7.2.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90405.json"
}
}
],
"modified": "2026-10-28T02:30:30.352331885Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659",
"https://git.kernel.org/stable/c/f1d1ed39ced825615aeac61f0b6a322178756632",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90405.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-90405",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90405.json"
}
},
"related_cves": [
{
"value": "CVE-2026-90405",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 497347,
"published_at": "2026-09-17T16:09:34.122+00:00"
}