# CVE-2026-98643: bpf: Fix out-of-bounds read of rtt\_min in sock\_ops

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:20:14.561Z
- **Modified:** 2026-10-19T10:19:28.573Z

## Who should check

- Anyone running Linux \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 0c796efa919f52f788c22c79d1f1b70321696b3d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fc9d0e6e9d86fbefe7b8fe6ee49f4cf102add79d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fd6bf2721933d8c90bc4ce57f3e204c9295e7e3f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< a8a9becbac93a9f54f4d565f1f3005eb08a7912f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 6785313d4fac96afb21ef193610c1fa88b1a9e64; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< cba54d142c43ec96d8c4d566f66439e8c0afded7; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03
- Anyone running Linux 4.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix out-of-bounds read of rtt\_min in sock\_ops

A sockops prog reading skops-\>rtt\_min never checks the sk type: on the
tcp\_conn\_request() path sock\_ops-\>sk is a request\_sock (non-full), and the
ctx rewrite casts it to a tcp\_sock (full) and reads rtt\_min past the end of
the request\_sock, returning dirty adjacent memory.

	SEC("sockops")
	int prog(struct bpf\_sock\_ops \*skops)
	{
		switch (skops-\>op) {
		case BPF\_SOCK\_OPS\_RWND\_INIT:
			leak = skops-\>rtt\_min;   /\* reads the request\_sock OOB \*/
		...
		}
	}

For instance one such read returned rtt\_min=0xffff8881, the high half of a
leaked kernel pointer.

Guarding that cast is exactly what SOCK\_OPS\_GET\_FIELD() does -- it checks
is\_locked\_tcp\_sock and returns 0 when sock\_ops-\>sk is not a locked full
socket. Every other tcp\_sock field in sock\_ops goes through it; rtt\_min is
the only one open-coded, so it skips the check.

Read rtt\_min through SOCK\_OPS\_GET\_FIELD() too. rtt\_min is a bit special:
it is a struct minmax and we only want the current min, so pass
rtt\_min.s\[0\].v. That is equivalent to the old hand-computed offset

	offsetof(struct tcp\_sock, rtt\_min) + sizeof\_field(struct minmax\_sample, t)

(s\[0\] sits at rtt\_min + 0 and .v at + sizeof(.t), i.e. what minmax\_get()
returns), so the loaded field is unchanged and only the full-sock guard is
added. The two BUILD\_BUG\_ON()s that protected the hand-computed offset
are no longer needed.

Before patch:

	0: r1 = \*(u64 \*)(r1 +0)      ; r1 = skops-\>sk
	1: r1 = \*(u32 \*)(r1 +2324)   ; ((tcp\_sock \*)sk)-\>rtt\_min.s\[0\].v

After patch:

	0: \*(u64 \*)(r1 +56) = r9
	1: r9 = \*(u8 \*)(r1 +50)      ; is\_locked\_tcp\_sock
	2: if r9 == 0 goto pc+4      ; not a locked full sock -\> 0
	3: r9 = \*(u64 \*)(r1 +56)
	4: r1 = \*(u64 \*)(r1 +0)      ; r1 = skops-\>sk
	5: r1 = \*(u32 \*)(r1 +2324)   ; rtt\_min.s\[0\].v
	6: goto pc+2
	7: r9 = \*(u64 \*)(r1 +56)
	8: r1 = 0

## Affected and fixed versions

- Linux: \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 0c796efa919f52f788c22c79d1f1b70321696b3d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fc9d0e6e9d86fbefe7b8fe6ee49f4cf102add79d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fd6bf2721933d8c90bc4ce57f3e204c9295e7e3f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< a8a9becbac93a9f54f4d565f1f3005eb08a7912f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 6785313d4fac96afb21ef193610c1fa88b1a9e64; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< cba54d142c43ec96d8c4d566f66439e8c0afded7; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98643.md
Affected: Linux >= 44f0e43037d3a17b043843ba67610ac7c7e37db6, < 0c796efa919f52f788c22c79d1f1b70321696b3d; >= 44f0e43037d3a17b043843ba67610ac7c7e37db6, < fc9d0e6e9d86fbefe7b8fe6ee49f4cf102add79d; >= 44f0e43037d3a17b043843ba67610ac7c7e37db6, < fd6bf2721933d8c90bc4ce57f3e204c9295e7e3f; >= 44f0e43037d3a17b043843b…
Fixed in: Linux 0c796efa919f52f788c22c79d1f1b70321696b3d, Linux 3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8, Linux 6785313d4fac96afb21ef193610c1fa88b1a9e64, Linux 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03

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-98643 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 0c796efa919f52f788c22c79d1f1b70321696b3d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fc9d0e6e9d86fbefe7b8fe6ee49f4cf102add79d; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< fd6bf2721933d8c90bc4ce57f3e204c9295e7e3f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< a8a9becbac93a9f54f4d565f1f3005eb08a7912f; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 6785313d4fac96afb21ef193610c1fa88b1a9e64; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< cba54d142c43ec96d8c4d566f66439e8c0afded7; \>= 44f0e43037d3a17b043843ba67610ac7c7e37db6, \< 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03; Linux 4.16.

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

Yes. Fixed in Linux 0c796efa919f52f788c22c79d1f1b70321696b3d, Linux 3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8, Linux 6785313d4fac96afb21ef193610c1fa88b1a9e64, Linux 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03. Upgrade Linux to 75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03 or later.

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

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

- other: <https://git.kernel.org/stable/c/0c796efa919f52f788c22c79d1f1b70321696b3d>
- other: <https://git.kernel.org/stable/c/fc9d0e6e9d86fbefe7b8fe6ee49f4cf102add79d>
- other: <https://git.kernel.org/stable/c/fd6bf2721933d8c90bc4ce57f3e204c9295e7e3f>
- other: <https://git.kernel.org/stable/c/a8a9becbac93a9f54f4d565f1f3005eb08a7912f>
- other: <https://git.kernel.org/stable/c/3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8>
- other: <https://git.kernel.org/stable/c/6785313d4fac96afb21ef193610c1fa88b1a9e64>
- other: <https://git.kernel.org/stable/c/cba54d142c43ec96d8c4d566f66439e8c0afded7>
- other: <https://git.kernel.org/stable/c/75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03>

## 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-98643>

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