# CVE-2026-53078: bpf: Fix same-register dst/src OOB read and pointer leak in sock\_ops

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-24 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-53078, DEBIAN-CVE-2026-53078, CGA-29cf-6f24-q726, CGA-2m55-pc64-gf3f, CGA-2mpg-93gv-w964, CGA-2p6f-m9v7-89hf, CGA-2xmv-mc9x-j92v, CGA-3h46-hfjp-j7j9, CGA-3hr8-8m85-4c3c, CGA-3j56-r8x3-jfwc, CGA-3rg2-wrwr-6g22, CGA-3rmm-w257-5xph, CGA-3v2p-6c5j-chp4, CGA-59v3-xpq4-g6w9, CGA-5c7f-qchj-52wf, CGA-5wfc-c372-3w8c, CGA-5wv2-c7m2-gf9w, CGA-6683-45v8-gr54, CGA-6g4h-w7fh-cqcm, CGA-6r7h-5244-jgj2, CGA-77qh-c676-fw6r, CGA-79gm-6m59-p677, CGA-85m2-ccm8-xhg8, CGA-88j8-7p95-mqwh, CGA-8fpr-j5j7-55h3, CGA-98qq-4p23-gp26, CGA-9mw7-76h9-rq53, CGA-c46r-9g2m-6ch4, CGA-f4w4-5r2c-34j3, CGA-g672-m287-wqxc, CGA-gfrg-9hqm-phx7, CGA-gh6j-29h9-gqw5, CGA-ghh7-wjcg-p7p4, CGA-h23x-4m4x-76j2, CGA-h7c4-jp8x-66v9, CGA-h93g-r978-82mq, CGA-hf6v-fgrr-8vfx, CGA-hfvh-4383-v56w, CGA-hm28-54rp-3px3, CGA-hpjf-v82v-f5mj, CGA-hpm8-fw9h-4w9v, CGA-j5pp-gh8p-m65v, CGA-jf85-wwpv-j6mj, CGA-jmq9-2xv3-793w, CGA-jv86-67wm-r9fc, CGA-m7c3-qhqp-6p64, CGA-m7j6-4xvx-jf7h, CGA-p5qm-5x3f-6932, CGA-ph23-564c-rwhc, CGA-ph6c-35cq-c5w5, CGA-pw32-c6w8-q3q6, CGA-pwx6-j85p-33fp, CGA-qc35-66wr-f7p5, CGA-r3rh-6967-qq96, CGA-r9r8-mjrc-q2qw, CGA-rcx4-86x7-qm96, CGA-rp52-5jp5-5r7x, CGA-v3pc-9p76-xw9p, CGA-v7x4-849v-4ccj, CGA-w3r2-3qvc-9vg7, CGA-w47w-pwpq-p3f5, CGA-wcg4-3r6q-c39v, CGA-wr98-f54x-x6jf, CGA-wxfp-vrqh-7xrg, CGA-x8vc-jch8-rcf7, CGA-xfh5-5v9f-j4c4, CGA-xpxm-ffq7-9c8g, CGA-xrc2-c79g-5ggf, CGA-xv3v-mg6g-vrgq, CGA-28v4-8j69-c6hp, CGA-333g-pq2c-wjgr, CGA-726g-2ccf-688r, CGA-jgw5-wvjf-6wpq, CGA-p46f-967q-gp73, CGA-x8r8-qm88-4r6f, CGA-9whm-rqvf-f5gr, CGA-rqw6-4vmj-4f79, CGA-682p-qj6c-x489, CGA-ppxp-28rc-jgfv
- Record: https://cvemate.com/vulnerability/CVE-2026-53078 · JSON: https://cvemate.com/vulnerability/CVE-2026-53078/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.121%, percentile 2.06%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 207)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): All versions (No fix recorded) \| \< 6.18.54-r1 \| \< 6.18.42-r0
- chainguard linux-aws-6.18-boot-installed (Chainguard): \< 6.18.42-r0
- chainguard linux-aws-6.18-bootc (Chainguard): \< 6.18.54-r1 \| \< 6.18.42-r0
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): \< 6.18.42-r0
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): \< 6.18.42-r0
- chainguard linux-aws-6.18-headers (Chainguard): \< 6.18.42-r0
- chainguard linux-aws-6.18-modules (Chainguard): \< 6.18.42-r0
- chainguard linux-azure-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)

## References (first 20 of 39)

- <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>
- <https://git.kernel.org/stable/c/18e3ffde1822f0b48b1753bf34aa97ce839df1d8>
- <https://git.kernel.org/stable/c/10f86a2a5c91fc4c4d001960f1c21abe52545ef6>
- <https://ubuntu.com/security/CVE-2026-53078>
- <https://www.cve.org/CVERecord?id=CVE-2026-53078>
- <https://git.kernel.org/linus/10f86a2a5c91fc4c4d001960f1c21abe52545ef6>
- <https://ubuntu.com/security/notices/USN-8566-1>
- <https://ubuntu.com/security/notices/USN-8568-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8593-1>
- <https://ubuntu.com/security/notices/USN-8603-1>
- <https://ubuntu.com/security/notices/USN-8618-1>
- <https://ubuntu.com/security/notices/USN-8663-1>
- <https://ubuntu.com/security/notices/USN-8664-1>
- <https://ubuntu.com/security/notices/USN-8728-1>

---

Data as of 2026-12-05T06:51:55.700Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
