CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's KVM subsystem, specifically the kvm_io_bus_get_dev() function, which can lead to potential lifetime issues if the returned device does not match the expected type. This could result in use-after-free conditions, potentially allowing for exploitation if the device is accessed after it has been released. Organizations using Linux kernel versions impacted by this issue should prioritize patching to mitigate risks associated with improper device handling in virtualized environments.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers kvm_io_bus_get_dev() returns a device that is only matched by the address, and nothing else. This can cause a lifetime issue if the matched device is not the expected type, as by the time the caller can introspect the object, it might be gone (the srcu lock having been dropped). Given that there is only a single user of this helper, the simplest option is to move the locking responsibility to the caller, which can keep the srcu lock held for as long as it wants. Note that this aligns with other kvm_io_bus*() helpers, which already require the srcu lock to be held by the callers.