media: pci: ivtv: Add check for DMA map result
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1932dc2f4cf6ac23e48e5fcc24d21adbe35691d1 · < 629913d6d79508b166c66e07e4857e20233d85a9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: pci: ivtv: Add check for DMA map result
In case DMA fails, 'dma->SG_length' is 0. This value is later used to access 'dma->SGarray[dma->SG_length - 1]', which will cause out of bounds access.
Add check to return early on invalid value. Adjust warnings accordingly.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The Linux kernel's ivtv media driver can access an array out of bounds when DMA mapping fails and the resulting length is zero. The input does not establish whether an attacker can trigger this condition or specify any access or user-interaction requirements.
Engineers running Linux kernels with the ivtv driver should check their kernel versions; affected versions are not specified.