Linux Kernel SO_REUSEPORT Restriction Vulnerability in Crypto Sockets

Vulnerability

A vulnerability in the Linux kernel's handling of the SO_REUSEPORT socket option has been addressed. The issue allowed crypto sockets to be inadvertently destroyed by a Read-Copy-Update (RCU) callback, as identified by the automated testing tool 'zyzbot'. This problem arose because acquiring a mutex within an RCU callback is prohibited. The vulnerability has been resolved by limiting the SO_REUSEPORT option to Internet sockets only. The initial patch version supported TCP, UDP, and SCTP sockets, but the functional test script required support for RAW and ICMP.

Impact

Exploitation of this vulnerability could lead to a use-after-free condition, where a socket is prematurely destroyed, potentially causing memory corruption or allowing for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by creating a crypto socket and enabling the SO_REUSEPORT option. Then, trigger an RCU callback while attempting to acquire a mutex, which will cause the socket to be incorrectly destroyed. This can be automated with a script that simulates the necessary conditions, such as 'fcnal-test.sh' with added support for RAW and ICMP.

Remediation

Users should update to the latest version of the Linux kernel where this vulnerability has been addressed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.