af_unix: Fix a data-race in unix_dgram_peer_wake_me().
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7d267278a9ece963d77eefec61630223fce08c6c · < 8801eb3ccd2e4e3b1a01449383e3321ae6dbd9d6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
af_unix: Fix a data-race in unix_dgram_peer_wake_me().
unix_dgram_poll() calls unix_dgram_peer_wake_me() without `other`'s lock held and check if its receive queue is full. Here we need to use unix_recvq_full_lockless() instead of unix_recvq_full(), otherwise KCSAN will report a data-race.
From the CVE record · Linux
The Linux kernel has a data race in unix_dgram_peer_wake_me() when unix_dgram_poll() checks another socket’s receive queue without holding its lock. KCSAN can report the race; the input does not describe an attacker outcome or specify access, authentication, or user-interaction requirements.
Teams running the Linux kernel should check their versions; affected versions are not specified.