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-tools-develUpgrade python-perfUpgrade perf-debuginfoUpgrade kernel-toolsUpgrade kernel-develUpgrade perfUpgrade bpftoolUpgrade kernel-debuginfo-common-aarch64Upgrade bpftool-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfoUpgrade kernel-livepatch-5.10.130-118.517Upgrade kernel-livepatch-5.15.54-25.126Upgrade kernelUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-headers | May 22, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade python3-perfUpgrade kernelUpgrade kernel-tools-libsUpgrade kernel-abi-stablelistsUpgrade bpftoolUpgrade kernel-tools | Jul 1, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-aws-fipsUpgrade linux-bluefieldUpgrade linux-oracleUpgrade linux-intel-iotgUpgrade linux-iotUpgrade linux-kvmUpgrade linux-ibmUpgrade linux-aws-5.4Upgrade linux-riscv-5.15Upgrade linux-fipsUpgrade linux-hwe-5.4Upgrade linux-gcpUpgrade linux-intel-iotg-5.15Upgrade linux-aws-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-azure-5.4Upgrade linux-oracle-5.15Upgrade linux-azure-5.15Upgrade linux-hwe-5.15Upgrade linux-gcp-5.15Upgrade linux-realtimeUpgrade linux-raspi-5.4Upgrade linux-nvidiaUpgrade linux-azureUpgrade linux-raspiUpgrade linux-azure-fipsUpgrade linux-awsUpgrade linux-oracle-5.4Upgrade linux-ibm-5.4Upgrade linux-lowlatencyUpgrade linux-gcp-5.4Upgrade linuxUpgrade linux-gkeopUpgrade linux-gkeUpgrade linux-gcp-fips | 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