CVE-2026-139780

Source
https://cve.org/CVERecord?id=CVE-2026-139780
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139780.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139780
Downstream
Published
2026-11-30T13:37:56Z
Modified
2026-11-30T15:02:30Z
Summary
bpf: Reject oversized stream read buffers
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139780.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6
Fixed
7880e414421f6317533c14e0ec686f16e71a6888
Fixed
589278b9f5b5a9d16357f9dc703d5911165e43a9
Fixed
ea0b60fae724aa1147d4a07eda5131d3a9a9977e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139780.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139780.json"