Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A use-after-free vulnerability has been identified in the Linux kernel's NFC PN533 driver. This issue arises when the PN532 UART device is detached, as the 'pn532_uart_remove()' function does not properly delete the 'cmd_timeout' timer. This oversight can lead to a use-after-free scenario, where memory is freed while still being accessed. The vulnerability is triggered when the 'pn532_uart_send_frame' function is called concurrently with the removal process, allowing for the use of freed memory.
Exploitation of this vulnerability can lead to memory corruption issues, potentially allowing for arbitrary code execution or causing a system crash.
The vulnerability can be reproduced by detaching the PN532 UART device while the 'cmd_timeout' timer is still active. This can be done by calling the 'pn532_uart_remove()' function without first stopping the timer, leading to a race condition where the timer tries to access memory that has already been freed.
The vulnerability has been addressed by adding a call to 'del_timer_sync()' in the 'pn532_uart_remove()' function, ensuring that the timeout timer is properly stopped before the associated memory is freed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.