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 kernel-tools-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-livepatch-4.14.301-224.520Upgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-toolsUpgrade bpftoolUpgrade kernel-develUpgrade kernel-debuginfoUpgrade kernelUpgrade perf-debuginfoUpgrade python-perf-debuginfoUpgrade perfUpgrade kernel-tools-develUpgrade kernel-headersUpgrade kernel-livepatch-5.10.157-139.675Upgrade kernel-livepatch-5.15.86-53.137Upgrade python-perf | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-oracleUpgrade linux-kvmUpgrade linux-xilinx-zynqmpUpgrade linux-raspi-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-realtimeUpgrade linux-fipsUpgrade linux-nvidiaUpgrade linux-gcp-fipsUpgrade linux-gcpUpgrade linux-gcp-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-oracle-5.4Upgrade linux-lowlatency-hwe-5.15Upgrade linux-riscv-5.15Upgrade linux-aws-5.15Upgrade linux-intel-iotgUpgrade linux-bluefieldUpgrade linux-aws-fipsUpgrade linux-gkeUpgrade linux-oracle-5.15Upgrade linux-ibm-5.4Upgrade linux-hwe-5.4Upgrade linux-azure-5.15Upgrade linux-nvidia-tegra-5.15Upgrade linux-ibmUpgrade linux-hweUpgrade linuxUpgrade linux-gcp-4.15Upgrade linux-lowlatencyUpgrade linux-gcp-5.4Upgrade linux-iotUpgrade linux-azure-4.15Upgrade linux-azure-5.4Upgrade linux-azure-fipsUpgrade linux-azureUpgrade linux-raspiUpgrade linux-awsUpgrade linux-gkeopUpgrade linux-aws-5.4Upgrade linux-hwe-5.15Upgrade linux-aws-hwe | 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