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 LLCP (Logical Link Control Protocol) implementation. This issue arises in the functions 'nfc_llcp_recv_hdlc()' and 'nfc_llcp_recv_disc()'. When the socket state is 'LLCP_CLOSED', the code correctly releases the socket but fails to return, causing execution to fall through. This oversight leads to a double release of the socket, creating a reference count underflow and a use-after-free condition. The vulnerability affects the Linux kernel stable tree.
The vulnerability causes a use-after-free condition, which can lead to memory corruption and potentially allow for arbitrary code execution.
The vulnerability can be reproduced by invoking the NFC LLCP reception functions 'nfc_llcp_recv_hdlc()' or 'nfc_llcp_recv_disc()' with the socket state set to 'LLCP_CLOSED'. This will trigger the double release of the socket, causing the use-after-free condition.
The vulnerability has been addressed by adding the missing return statements after the 'LLCP_CLOSED' checks in both affected functions. Users can apply the latest patches available in the Linux kernel stable tree to mitigate this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.