In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix request_sock leak in sk lookup helpers
A customer reported a request_socket leak in a Calico cloud environment. We found that a BPF program was doing a socket lookup with takes a refcnt on the socket and that it was finding the request_socket but returning the parent LISTEN socket via sk_to_full_sk() without decrementing the child request socket 1st, resulting in request_sock slab object leak. This patch retains the existing behaviour of returning full socks to the caller but it also decrements the child request_socket if one is present before doing so to prevent the leak.
Thanks to Curtis Taylor for all the help in diagnosing and testing this. And thanks to Antoine Tenart for the reproducer and patch input.
v2 of this patch contains, refactor as per Daniel Borkmann's suggestions to validate RCU flags on the listen socket so that it balances with bpf_sk_release() and update comments as per Martin KaFai Lau's suggestion. One small change to Daniels suggestion, put "sk = sk2" under "if (sk2 != sk)" to avoid an extra instruction.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-livepatch-5.10.130-118.517Upgrade kernel-headersUpgrade python-perf-debuginfoUpgrade kernelUpgrade kernel-livepatch-5.15.54-25.126Upgrade kernel-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-toolsUpgrade kernel-debuginfo-common-aarch64Upgrade perf-debuginfoUpgrade bpftoolUpgrade bpftool-debuginfoUpgrade kernel-develUpgrade kernel-tools-develUpgrade python-perfUpgrade perf | May 22, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade kernelUpgrade python3-perfUpgrade kernel-tools-libsUpgrade bpftoolUpgrade kernel-abi-stablelistsUpgrade kernel-tools | Jul 1, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-ibm-5.4Upgrade linux-gkeopUpgrade linux-gcp-fipsUpgrade linux-gcp-5.4Upgrade linux-awsUpgrade linux-oracle-5.4Upgrade linux-lowlatencyUpgrade linux-azure-fipsUpgrade linuxUpgrade linux-gkeUpgrade linux-nvidiaUpgrade linux-oracle-5.15Upgrade linux-azureUpgrade linux-oracleUpgrade linux-realtimeUpgrade linux-intel-iotgUpgrade linux-fipsUpgrade linux-raspi-5.4Upgrade linux-lowlatency-hwe-5.15Upgrade linux-ibmUpgrade linux-azure-5.4Upgrade linux-kvmUpgrade linux-gcp-5.15Upgrade linux-aws-fipsUpgrade linux-gcpUpgrade linux-hwe-5.15Upgrade linux-iotUpgrade linux-aws-5.15Upgrade linux-bluefieldUpgrade linux-aws-5.4Upgrade linux-raspiUpgrade linux-riscv-5.15Upgrade linux-intel-iotg-5.15Upgrade linux-hwe-5.4Upgrade linux-azure-5.15 | Mar 3, 2025 | Feb 26, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Feb 26, 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