In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix same-register dst/src OOB read and pointer leak in sock_ops
When a BPF sock_ops program accesses ctx fields with dst_reg == src_reg, the SOCK_OPS_GET_SK() and SOCK_OPS_GET_FIELD() macros fail to zero the destination register in the !fullsock / !locked_tcp_sock path.
Both macros borrow a temporary register to check is_fullsock / is_locked_tcp_sock when dst_reg == src_reg, because dst_reg holds the ctx pointer. When the check is false (e.g., TCP_NEW_SYN_RECV state with a request_sock), dst_reg should be zeroed but is not, leaving the stale ctx pointer:
- SOCK_OPS_GET_SK: dst_reg retains the ctx pointer, passes NULL checks as PTR_TO_SOCKET_OR_NULL, and can be used as a bogus socket pointer, leading to stack-out-of-bounds access in helpers like bpf_skc_to_tcp6_sock().
- SOCK_OPS_GET_FIELD: dst_reg retains the ctx pointer which the verifier believes is a SCALAR_VALUE, leaking a kernel pointer.
Fix both macros by: - Changing JMP_A(1) to JMP_A(2) in the fullsock path to skip the added instruction. - Adding BPF_MOV64_IMM(si->dst_reg, 0) after the temp register restore in the !fullsock path, placed after the restore because dst_reg == src_reg means we need src_reg intact to read ctx->temp.
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 python-perfUpgrade bpftoolUpgrade perf-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade perfUpgrade kernel-toolsUpgrade kernel-tools-develUpgrade kernel-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-headersUpgrade kernel-debuginfo-common-x86_64Upgrade kernelUpgrade kernel-tools-debuginfoUpgrade kernel-develUpgrade kernel-livepatch-5.10.260-259.1053 | Jul 21, 2026 | Jul 21, 2026 |
| Amazon_linux_2023 | — | Upgrade bpftool6.12-debuginfoUpgrade bpftool6.12Upgrade kernel6.12-modules-extraUpgrade kernel-debuginfo-common-x86_64Upgrade kernel6.12-modules-extra-commonUpgrade kernel6.12-debuginfo-common-aarch64Upgrade kernel6.18-debuginfoUpgrade perf6.12Upgrade bpftool-debuginfoUpgrade kernel6.18-develUpgrade python3-perf6.18-debuginfoUpgrade kernel-modules-extra-commonUpgrade kernelUpgrade kernel-toolsUpgrade bpftool6.18Upgrade kernel-headersUpgrade perf6.18-debuginfoUpgrade kernel6.12-tools-debuginfoUpgrade kernel6.12-debuginfoUpgrade kernel6.12Upgrade kernel6.12-headersUpgrade perf6.18Upgrade python3-perf6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade perf-debuginfoUpgrade kernel6.18-tools-debuginfoUpgrade bpftool6.18-debuginfoUpgrade kernel-livepatch-6.12.94-123.190Upgrade kernel6.18-toolsUpgrade kernel6.18Upgrade kernel-tools-develUpgrade kernel6.18-modules-extraUpgrade kernel-tools-debuginfoUpgrade python3-perf6.12-debuginfoUpgrade kernel6.12-develUpgrade bpftoolUpgrade kernel6.18-headersUpgrade microvm-kernel6.18Upgrade kernel-debuginfo-common-aarch64Upgrade python3-perfUpgrade perfUpgrade kernel6.12-tools-develUpgrade kernel-develUpgrade python3-perf6.12Upgrade kernel-modules-extraUpgrade kernel-debuginfoUpgrade kernel6.18-modules-extra-commonUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel6.12-toolsUpgrade kernel-livepatch-6.1.176-221.367Upgrade kernel-livepatch-6.18.38-73.137Upgrade python3-perf-debuginfoUpgrade kernel6.18-tools-develUpgrade perf6.12-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64 | Jul 21, 2026 | Jun 24, 2026 |
| Debian | — | Upgrade linuxUpgrade linux-6.12 | Aug 9, 2026 | Aug 9, 2026 |
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Jun 24, 2026 |
| Ubuntu | — | Upgrade linux-image-aws-7.0Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-28-generic-64kUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-1008-gcpUpgrade linux-image-azure-fde-7.0Upgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1009-oemUpgrade linux-image-oem-26.04Upgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-realtime-7.0Upgrade linux-image-6.8.0-1035-nvidia-tegra-rtUpgrade linux-image-oem-26.04aUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-gke-7.0Upgrade linux-image-7.0.0-28-realtime-64kUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-nvidia-7.0Upgrade linux-image-nvidia-tegra-rtUpgrade linux-image-nvidia-tegra-6.8Upgrade linux-image-7.0.0-28-realtimeUpgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-gke-64k-7.0Upgrade linux-image-genericUpgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-7.0.0-1010-azureUpgrade linux-image-raspiUpgrade linux-image-awsUpgrade linux-image-gke-64kUpgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-azureUpgrade linux-image-azure-fdeUpgrade linux-image-nvidiaUpgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-28-genericUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-6.8.0-1035-nvidia-tegraUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-oracle-7.0Upgrade linux-image-oem-24.04Upgrade linux-image-nvidia-tegraUpgrade linux-image-7.0.0-1009-awsUpgrade linux-image-virtualUpgrade linux-image-raspi-realtimeUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-oem-24.04dUpgrade linux-image-virtual-7.0Upgrade linux-image-gkeUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-7.0.0-1003-gke-64kUpgrade linux-image-7.0.0-1003-gkeUpgrade linux-image-generic-7.0Upgrade linux-image-oem-24.04cUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-nvidia-64kUpgrade linux-image-oem-24.04aUpgrade linux-image-nvidia-tegra-rt-6.8Upgrade linux-image-generic-64kUpgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-7.0.0-1008-gcp-64kUpgrade linux-image-oem-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-realtime-64kUpgrade linux-image-gcpUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-realtimeUpgrade linux-image-oem-24.04bUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-ibmUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-aws-64kUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-oracle-64kUpgrade linux-image-generic-64k-7.0Upgrade linux-image-azure-7.0Upgrade linux-image-oracleUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-ibm-7.0 | Jul 20, 2026 | Jun 24, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 14, 2026 | Jun 24, 2026 |
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