Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A double-free vulnerability has been identified in the Rockchip SPI controller driver of the Linux kernel. This issue arises because the driver improperly manages the registration and unregistration of the SPI controller. It uses 'devm_spi_register_controller()' for registration, which automatically handles unregistration when the device is removed. However, the manual call to 'spi_unregister_controller()' in the remove() callback can lead to a double-free condition. To prevent this, the driver should use 'spi_register_controller()' in the probe() function instead.
Exploitation of this vulnerability can lead to a double-free condition, which may cause memory corruption and potentially allow for arbitrary code execution.
The vulnerability can be reproduced by loading the Rockchip SPI controller driver that uses 'devm_spi_register_controller()' for registration. When the device is removed, the manual call to 'spi_unregister_controller()' in the remove() callback will trigger the double-free condition.
The vulnerability has been addressed in the Linux kernel by modifying the Rockchip SPI controller driver to use 'spi_register_controller()' in the probe() function, ensuring proper management of the SPI controller's lifecycle.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.