media: cx23885: add ioremap return check and cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d19770e5178a4bc49641711246360c25781d20a4 · < c68c4ce72feb6fcccc843eb3baa7af60189ed567| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: cx23885: add ioremap return check and cleanup
Add a check for the return value of pci_ioremap_bar() in cx23885_dev_setup(). If ioremap for BAR0 fails, release the already allocated PCI memory region, decrement the device count, and return -ENODEV.
This prevents a potential null pointer dereference and ensures proper cleanup on memory mapping failure.
From the CVE record · Linux
The Linux kernel's cx23885 media driver could dereference a null pointer if mapping PCI BAR0 fails during device setup. The input does not describe an attacker action or specify network access, authentication, or user interaction requirements.
Anyone running the Linux kernel with the cx23885 media driver should check their version; affected versions are not specified.