{"id":"CVE-2026-139780","summary":"bpf: Reject oversized stream read buffers","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject oversized stream read buffers\n\nBPF_PROG_STREAM_READ_BY_FD exposes stream_buf_len as a u32, but the\ninternal stream reader accepts an int. Values above INT_MAX therefore\nbecome negative before bpf_stream_read(), producing negative consumption\nlengths. The generic usercopy size check prevents the oversized copy, but\nemits a warning and reports EFAULT for an unchecked argument.\n\nChange bpf_prog_stream_read() to accept u32 and reject values that the\nsigned reader cannot represent.","modified":"2026-11-30T15:02:30.931628655Z","published":"2026-11-30T13:37:56.195Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139780.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/589278b9f5b5a9d16357f9dc703d5911165e43a9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7880e414421f6317533c14e0ec686f16e71a6888"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea0b60fae724aa1147d4a07eda5131d3a9a9977e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139780.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139780"}],"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}