CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of the saa7164 device, where improper cleanup on resource allocation failure can lead to a dangling entry in the global device list. This flaw may result in potential memory corruption or stability issues, as the device remains listed even after a failed setup. Organizations using Linux systems with the saa7164 driver should prioritize patching this vulnerability to mitigate risks associated with device management and system integrity.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: media: saa7164: fix cleanup on resource allocation failure saa7164_dev_setup() adds the device to the global saa7164_devlist before requesting the PCI BAR memory regions. If get_resources() fails, saa7164_dev_setup() decrements the device count and returns an error, but leaves the device on saa7164_devlist. The probe error path then frees the device, leaving a dangling entry on the global list. Reuse the existing MMIO mapping error path to remove the device from saa7164_devlist and decrement the device count before returning. Also release BAR0 if it was successfully requested but the BAR2 request fails.