CVE-2026-97507: media: dm1105: fix missing error check for dma_alloc_coherent
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: dm1105: fix missing error check for dma_alloc_coherent
The return value of dm1105_dma_map(), which handles DMA memory allocation, is ignored in dm1105_hw_init(). If dma_alloc_coherent() fails, the driver will proceed using a NULL pointer for DMA transfers, leading to a kernel oops or invalid hardware access.
Fix this by checking the return value and propagating -ENOMEM on failure.
The Linux kernel CVE team has assigned CVE-2026-97507 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 07d6a76a17b550e94ca5cc0060ad6e77952390f2 Fixed in 6.18.53 with commit f3f135c4fac6194933b952e98a15dc05aa420956 Fixed in 7.2 with commit 3eaac9e02d8591d3c790db572ef1c8fa5a841fdb
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-97507
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/pci/dm1105/dm1105.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/07d6a76a17b550e94ca5cc0060ad6e77952390f2 https://git.kernel.org/stable/c/f3f135c4fac6194933b952e98a15dc05aa420956 https://git.kernel.org/stable/c/3eaac9e02d8591d3c790db572ef1c8fa5a841fdb