bpf: Fix same-register dst/src OOB read and pointer leak in sock_ops
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.7.18 to before 5.8; 5.8.4 to before 5.9; 5.4.61 to before 5.5 | 5.8, 5.9, 5.5 | Patch available | CNA |
| Linux | Linux | 5.9 and later | 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.101, 6.18.42, 7.0.10, 7.1 | Patch available | CNA |
- Linux VendorLinux Affected 5.7.18 to before 5.8; 5.8.4 to before 5.9; 5.4.61 to before 5.5 Fixed in 5.8, 5.9, 5.5 Patch available CNA
- Linux VendorLinux Affected 5.9 and later Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.101, 6.18.42, 7.0.10, 7.1 Patch available CNA
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.61 to before 5.5; 5.7.18 to before 5.8; 5.8.4 to before 5.9; 5.9.1 to before 7.0.10 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:* | 5.9 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc2:*:*:*:*:*:* | 5.9 rc2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:* | 5.9 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:* | 5.9 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:* | 5.9 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:* | 5.9 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:* | 5.9 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:* | 5.9 rc8 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.4.61 to before 5.5; 5.7.18 to before 5.8; 5.8.4 to before 5.9; 5.9.1 to before 7.0.10 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:* Versions 5.9 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc2:*:*:*:*:*:* Versions 5.9 rc2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:* Versions 5.9 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:* Versions 5.9 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:* Versions 5.9 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:* Versions 5.9 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:* Versions 5.9 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:* Versions 5.9 rc8 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.8, 5.9, 5.5
- Fix · CNA Linux (Linux) Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.101, 6.18.42, 7.0.10, 7.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
Not affected: 1 product
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53078
- 2026-10-03 Alias added: GHSA-pwr6-cvf5-35f3
- 2026-10-16 CISA SSVC decision points changed
- 2026-10-19 Weakness changed · CISA ADP
- 2026-11-06 CVSS score changed · Red Hat
References
Patch 2
Other 6
- https://git.kernel.org/stable/c/db1200ec2c3ddf119d4d9ba67982063df06bbacb
- https://git.kernel.org/stable/c/4c1c5efd9d1d74743d41ce4e1600501b4feb6827
- https://git.kernel.org/stable/c/0e6b30657bbc771f38025c828d722b6162428508
- https://git.kernel.org/stable/c/64eaf4ecda007140ddcdb28e00c48c9c69aaba39
- https://git.kernel.org/stable/c/2a2c98141e0a75f2d4a7d78b0316c88b3da784ac
- https://git.kernel.org/stable/c/22400725de070b787cd6d806c5795370ab46d269
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2026-53078 · CVE Program
- CVE-2026-53078 · NVD
- FIRST EPSS
- GHSA-pwr6-cvf5-35f3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-53078 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences