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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-06-24T16:30:18.858Z
- **Modified:** 2026-10-19T20:19:00.553Z

## Who should check

- Anyone running Linux \>= fd09af010788a884de1c39537c288830c3d305db, \< db1200ec2c3ddf119d4d9ba67982063df06bbacb; \>= fd09af010788a884de1c39537c288830c3d305db, \< 4c1c5efd9d1d74743d41ce4e1600501b4feb6827; \>= fd09af010788a884de1c39537c288830c3d305db, \< 0e6b30657bbc771f38025c828d722b6162428508; \>= fd09af010788a884de1c39537c288830c3d305db, \< 64eaf4ecda007140ddcdb28e00c48c9c69aaba39; \>= fd09af010788a884de1c39537c288830c3d305db, \< 2a2c98141e0a75f2d4a7d78b0316c88b3da784ac; \>= fd09af010788a884de1c39537c288830c3d305db, \< 22400725de070b787cd6d806c5795370ab46d269; \>= fd09af010788a884de1c39537c288830c3d305db, \< 18e3ffde1822f0b48b1753bf34aa97ce839df1d8; \>= fd09af010788a884de1c39537c288830c3d305db, \< 10f86a2a5c91fc4c4d001960f1c21abe52545ef6; 48be3df15aa19c04eadf156c9129293c9a10389f; cd4644d904e1d153d516e73e2e127e7a2fe687e1; …
- Anyone running Linux 5.9

## Description

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.

## Affected and fixed versions

- Linux: \>= fd09af010788a884de1c39537c288830c3d305db, \< db1200ec2c3ddf119d4d9ba67982063df06bbacb; \>= fd09af010788a884de1c39537c288830c3d305db, \< 4c1c5efd9d1d74743d41ce4e1600501b4feb6827; \>= fd09af010788a884de1c39537c288830c3d305db, \< 0e6b30657bbc771f38025c828d722b6162428508; \>= fd09af010788a884de1c39537c288830c3d305db, \< 64eaf4ecda007140ddcdb28e00c48c9c69aaba39; \>= fd09af010788a884de1c39537c288830c3d305db, \< 2a2c98141e0a75f2d4a7d78b0316c88b3da784ac; \>= fd09af010788a884de1c39537c288830c3d305db, \< 22400725de070b787cd6d806c5795370ab46d269; \>= fd09af010788a884de1c39537c288830c3d305db, \< 18e3ffde1822f0b48b1753bf34aa97ce839df1d8; \>= fd09af010788a884de1c39537c288830c3d305db, \< 10f86a2a5c91fc4c4d001960f1c21abe52545ef6; 48be3df15aa19c04eadf156c9129293c9a10389f; cd4644d904e1d153d516e73e2e127e7a2fe687e1; … (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53078. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53078.md
Affected: Linux >= fd09af010788a884de1c39537c288830c3d305db, < db1200ec2c3ddf119d4d9ba67982063df06bbacb; >= fd09af010788a884de1c39537c288830c3d305db, < 4c1c5efd9d1d74743d41ce4e1600501b4feb6827; >= fd09af010788a884de1c39537c288830c3d305db, < 0e6b30657bbc771f38025c828d722b6162428508; >= fd09af010788a884de1c395…
Fixed in: Linux 4c1c5efd9d1d74743d41ce4e1600501b4feb6827, Linux 0e6b30657bbc771f38025c828d722b6162428508, Linux 64eaf4ecda007140ddcdb28e00c48c9c69aaba39, Linux 2a2c98141e0a75f2d4a7d78b0316c88b3da784ac, Linux 22400725de070b787cd6d806c5795370ab46d269, Linux 18e3ffde1822f0b48b1753bf34aa97ce839df1d8, Linux 10f86…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53078 being exploited?

There is no confirmed exploitation: CVE-2026-53078 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-53078?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53078?

Linux \>= fd09af010788a884de1c39537c288830c3d305db, \< db1200ec2c3ddf119d4d9ba67982063df06bbacb; \>= fd09af010788a884de1c39537c288830c3d305db, \< 4c1c5efd9d1d74743d41ce4e1600501b4feb6827; \>= fd09af010788a884de1c39537c288830c3d305db, \< 0e6b30657bbc771f38025c828d722b6162428508; \>= fd09af010788a884de1c39537c288830c3d305db, \< 64eaf4ecda007140ddcdb28e00c48c9c69aaba39; \>= fd09af010788a884de1c39537c288830c3d305db, \< 2a2c98141e0a75f2d4a7d78b0316c88b3da784ac; \>= fd09af010788a884de1c39537c288830c3d305db, \< 22400725de070b787cd6d806c5795370ab46d269; \>= fd09af010788a884de1c39537c288830c3d305db, \< 18e3ffde1822f0b48b1753bf34aa97ce839df1d8; \>= fd09af010788a884de1c39537c288830c3d305db, \< 10f86a2a5c91fc4c4d001960f1c21abe52545ef6; 48be3df15aa19c04eadf156c9129293c9a10389f; cd4644d904e1d153d516e73e2e127e7a2fe687e1; …; Linux 5.9.

### Is there a fix for CVE-2026-53078?

Yes. Fixed in Linux 4c1c5efd9d1d74743d41ce4e1600501b4feb6827, Linux 0e6b30657bbc771f38025c828d722b6162428508, Linux 64eaf4ecda007140ddcdb28e00c48c9c69aaba39, Linux 2a2c98141e0a75f2d4a7d78b0316c88b3da784ac, Linux 22400725de070b787cd6d806c5795370ab46d269, Linux 18e3ffde1822f0b48b1753bf34aa97ce839df1d8, Linux 10f86a2a5c91fc4c4d001960f1c21abe52545ef6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-53078?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/18e3ffde1822f0b48b1753bf34aa97ce839df1d8>
- patch: <https://git.kernel.org/stable/c/10f86a2a5c91fc4c4d001960f1c21abe52545ef6>
- other: <https://git.kernel.org/stable/c/db1200ec2c3ddf119d4d9ba67982063df06bbacb>
- other: <https://git.kernel.org/stable/c/4c1c5efd9d1d74743d41ce4e1600501b4feb6827>
- other: <https://git.kernel.org/stable/c/0e6b30657bbc771f38025c828d722b6162428508>
- other: <https://git.kernel.org/stable/c/64eaf4ecda007140ddcdb28e00c48c9c69aaba39>
- other: <https://git.kernel.org/stable/c/2a2c98141e0a75f2d4a7d78b0316c88b3da784ac>
- other: <https://git.kernel.org/stable/c/22400725de070b787cd6d806c5795370ab46d269>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53078>

HTML: <https://flawdb.com/CVE-2026-53078> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53078>
