CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of RXRPC socket connections, specifically in the preallocation of resources during socket teardown. An attacker could exploit this flaw to access freed memory, potentially leading to kernel crashes or arbitrary code execution. Organizations using Linux systems, particularly those relying on RXRPC for communication, should prioritize addressing this issue to mitigate potential security risks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: rxrpc: serialize kernel accept preallocation with socket teardown rxrpc_kernel_charge_accept() reads rx->backlog without any socket/backlog synchronization and passes that raw pointer into rxrpc_service_prealloc_one(). A concurrent rxrpc_discard_prealloc() sets rx->backlog = NULL and frees the backlog rings, so a kernel preallocation worker can keep using a freed struct rxrpc_backlog while updating *_backlog_head/tail and array slots. Serialize the state check and backlog lookup with the socket lock, and reject kernel preallocation once teardown has disabled listening or discarded the service backlog.