In the Linux kernel, the following vulnerability has been resolved:
kcm: close race conditions on sk_receive_queue
sk->sk_receive_queue is protected by skb queue lock, but for KCM sockets its RX path takes mux->rx_lock to protect more than just skb queue. However, kcm_recvmsg() still only grabs the skb queue lock, so race conditions still exist.
We can teach kcm_recvmsg() to grab mux->rx_lock too but this would introduce a potential performance regression as struct kcm_mux can be shared by multiple KCM sockets.
So we have to enforce skb queue lock in requeue_rx_msgs() and handle skb peek case carefully in kcm_wait_data(). Fortunately, skb_recv_datagram() already handles it nicely and is widely used by other sockets, we can just switch to skb_recv_datagram() after getting rid of the unnecessary sock lock in kcm_recvmsg() and kcm_splice_read(). Side note: SOCK_DONE is not used by KCM sockets, so it is safe to get rid of this check too.
I ran the original syzbot reproducer for 30 min without seeing any issue.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade perf-debuginfoUpgrade kernel-livepatch-5.10.157-139.675Upgrade kernel-tools-develUpgrade python-perf-debuginfoUpgrade kernel-livepatch-5.15.86-53.137Upgrade python-perfUpgrade perfUpgrade kernel-headersUpgrade kernel-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-develUpgrade kernel-livepatch-4.14.301-224.520Upgrade bpftoolUpgrade bpftool-debuginfoUpgrade kernelUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-toolsUpgrade kernel-debuginfo-common-x86_64 | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-lowlatency-hwe-5.15Upgrade linux-aws-5.15Upgrade linux-realtimeUpgrade linux-bluefieldUpgrade linux-riscv-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-oracleUpgrade linux-intel-iotgUpgrade linux-xilinx-zynqmpUpgrade linux-fipsUpgrade linux-gcp-5.15Upgrade linux-gcpUpgrade linux-gcp-fipsUpgrade linux-oracle-5.4Upgrade linux-kvmUpgrade linux-nvidiaUpgrade linux-intel-iotg-5.15Upgrade linux-raspi-5.4Upgrade linux-aws-hweUpgrade linux-aws-5.4Upgrade linux-azure-5.15Upgrade linux-hweUpgrade linux-ibm-5.4Upgrade linux-gkeUpgrade linux-azure-5.4Upgrade linux-iotUpgrade linux-hwe-5.4Upgrade linux-aws-fipsUpgrade linuxUpgrade linux-awsUpgrade linux-gcp-4.15Upgrade linux-lowlatencyUpgrade linux-gkeopUpgrade linux-hwe-5.15Upgrade linux-nvidia-tegra-5.15Upgrade linux-ibmUpgrade linux-azure-fipsUpgrade linux-raspiUpgrade linux-azure-4.15Upgrade linux-gcp-5.4Upgrade linux-oracle-5.15Upgrade linux-azure | May 6, 2025 | May 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | May 1, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub