# CVE-2026-139780: bpf: Reject oversized stream read buffers

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:56.195Z
- **Modified:** 2026-11-30T14:20:11.270Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can call the BPF stream read interface with a huge buffer size can trigger a negative length bug in the Linux kernel's BPF stream reader.

## Who should check

- Anyone running Linux \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 7880e414421f6317533c14e0ec686f16e71a6888; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 589278b9f5b5a9d16357f9dc703d5911165e43a9; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< ea0b60fae724aa1147d4a07eda5131d3a9a9977e
- Anyone running Linux 6.17

## Description

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

bpf: Reject oversized stream read buffers

BPF\_PROG\_STREAM\_READ\_BY\_FD exposes stream\_buf\_len as a u32, but the
internal stream reader accepts an int. Values above INT\_MAX therefore
become negative before bpf\_stream\_read(), producing negative consumption
lengths. The generic usercopy size check prevents the oversized copy, but
emits a warning and reports EFAULT for an unchecked argument.

Change bpf\_prog\_stream\_read() to accept u32 and reject values that the
signed reader cannot represent.

## Affected and fixed versions

- Linux: \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 7880e414421f6317533c14e0ec686f16e71a6888; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 589278b9f5b5a9d16357f9dc703d5911165e43a9; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< ea0b60fae724aa1147d4a07eda5131d3a9a9977e (cvelist)
- Linux: 6.17 (cvelist)

## Technologies

Linux kernel

## 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-139780. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139780.md
Affected: Linux >= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, < 7880e414421f6317533c14e0ec686f16e71a6888; >= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, < 589278b9f5b5a9d16357f9dc703d5911165e43a9; >= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, < ea0b60fae724aa1147d4a07eda5131d3a9a9977e; Linux 6.17
Fixed in: Linux 7880e414421f6317533c14e0ec686f16e71a6888, Linux 589278b9f5b5a9d16357f9dc703d5911165e43a9

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

There is no confirmed exploitation: CVE-2026-139780 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 7880e414421f6317533c14e0ec686f16e71a6888; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< 589278b9f5b5a9d16357f9dc703d5911165e43a9; \>= 5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6, \< ea0b60fae724aa1147d4a07eda5131d3a9a9977e; Linux 6.17.

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

Yes. Fixed in Linux 7880e414421f6317533c14e0ec686f16e71a6888, Linux 589278b9f5b5a9d16357f9dc703d5911165e43a9. No fix listed yet: follow the vendor advisory.

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

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/7880e414421f6317533c14e0ec686f16e71a6888>
- other: <https://git.kernel.org/stable/c/589278b9f5b5a9d16357f9dc703d5911165e43a9>
- other: <https://git.kernel.org/stable/c/ea0b60fae724aa1147d4a07eda5131d3a9a9977e>

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

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