Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 6.4.0-11989-g6843306689af, < 6.4.0-11989-g6843306689af
A data-race vulnerability has been identified in the Linux kernel's af_unix implementation, specifically in how the unix_inflight variable is managed. The issue arises because unix_inflight is updated under a lock, while the too_many_unix_fds function reads it without synchronization. This vulnerability was reported by the Kernel Concurrency Sanitizer and involves concurrent write and read operations on unix_inflight, leading to inconsistent states.
Exploitation of this vulnerability can cause data corruption by allowing unsynchronized access to the unix_inflight variable, which tracks the number of file descriptors in use. This could potentially disrupt the normal operation of applications relying on Unix domain sockets, by misrepresenting the number of active file descriptors and possibly leading to resource management issues.
The vulnerability can be reproduced by sending Unix domain socket messages that trigger the unix_attach_fds function, which increments the unix_inflight counter. Simultaneously, the too_many_unix_fds function can be called to read the unix_inflight value without the proper synchronization, creating a data-race condition. This sequence can be automated with a script that uses the Unix domain socket API to send messages while concurrently checking the file descriptor limits.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.