{"id":"CVE-2026-139780","aliases":["CVE-2026-139780"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Reject oversized stream read buffers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:37:56.195Z","modified":"2026-11-30T14:20:11.270Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6","fixed":"7880e414421f6317533c14e0ec686f16e71a6888","status":"affected"},{"type":"git","introduced":"5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6","fixed":"589278b9f5b5a9d16357f9dc703d5911165e43a9","status":"affected"},{"type":"git","introduced":"5ab154f1463a111e1dc8fd5d31eaa7a2a71fe2e6","fixed":"ea0b60fae724aa1147d4a07eda5131d3a9a9977e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7880e414421f6317533c14e0ec686f16e71a6888","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/589278b9f5b5a9d16357f9dc703d5911165e43a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ea0b60fae724aa1147d4a07eda5131d3a9a9977e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139780","url":"https://www.cve.org/CVERecord?id=CVE-2026-139780","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:56.195Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139780","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139780","licence":"Public domain","modified":"2026-11-30T14:20:11.270Z"}],"updatedAt":"2026-11-30T14:33:32.974Z","epss":{"score":0.00348,"percentile":0.3038,"date":"2026-12-01T12:00:22.000Z"}}