media: saa7164: add ioremap return checks and cleanups
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 443c1228d50518f3c550e1fef490a2c9d9246ce7 · < d51c60a498e83c9a79884c8e420f97e3885c9583| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: saa7164: add ioremap return checks and cleanups
Add checks for ioremap return values in saa7164_dev_setup(). If ioremap for BAR0 or BAR2 fails, release the already allocated PCI memory regions, remove the device from the global list, decrement the device count, and return -ENODEV.
This prevents potential null pointer dereferences and ensures proper cleanup on memory mapping failures.
From the CVE record · Linux
The Linux kernel's saa7164 driver did not check whether memory mapping succeeded for BAR0 or BAR2. A mapping failure could cause a null pointer dereference; the input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with the saa7164 driver should check their versions; affected versions are not specified.