{"api_version":"1","generated_at":"2026-12-02T21:23:08+00:00","cve":"CVE-2026-139303","urls":{"html":"https://cve.report/CVE-2026-139303","api":"https://cve.report/api/cve/CVE-2026-139303.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139303","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139303"},"summary":{"title":"bpf: Assume no bounds for buffers behind a tail call","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Assume no bounds for buffers behind a tail call\n\nThe bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key\nand the value of an element to the program as buffers.  The verifier notes\nhow far a program reaches into them, and the iterator compares that with\nthe map when the program is attached.  A program that does not touch the\nbuffers passes.  It can tail-call another program of the same target,\nwhich gets the same context, and whose reach nobody compares with the\nmap:\n\n  BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80\n\nThe program array can be filled at any time, so there is nothing to look\nat when the link is made.  For the same reason a program with a tail call\nis taken to use the whole stack and the whole packet.  Take it to reach\nas far as can be into the buffers as well, so that these iterators refuse\nit with -EACCES.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:54","updated_at":"2026-11-30 14:18:54"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/4a3b402d90231b4e0fe092cf7cc61268469c9357","name":"https://git.kernel.org/stable/c/4a3b402d90231b4e0fe092cf7cc61268469c9357","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7fa323d77688e8b62b2f0bf6c3208a2c96d4a5e7","name":"https://git.kernel.org/stable/c/7fa323d77688e8b62b2f0bf6c3208a2c96d4a5e7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eab5fefb00bdbbcf37eb53d5483c49f7079b11cd","name":"https://git.kernel.org/stable/c/eab5fefb00bdbbcf37eb53d5483c49f7079b11cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d27a5bdee454ebab3eda81ac1670d828d9bb5857","name":"https://git.kernel.org/stable/c/d27a5bdee454ebab3eda81ac1670d828d9bb5857","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139303","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139303","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d6c4503cc29638f328e1a6e6fefbdbda401c28fc eab5fefb00bdbbcf37eb53d5483c49f7079b11cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d6c4503cc29638f328e1a6e6fefbdbda401c28fc d27a5bdee454ebab3eda81ac1670d828d9bb5857 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d6c4503cc29638f328e1a6e6fefbdbda401c28fc 4a3b402d90231b4e0fe092cf7cc61268469c9357 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d6c4503cc29638f328e1a6e6fefbdbda401c28fc 7fa323d77688e8b62b2f0bf6c3208a2c96d4a5e7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/fixups.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"eab5fefb00bdbbcf37eb53d5483c49f7079b11cd","status":"affected","version":"d6c4503cc29638f328e1a6e6fefbdbda401c28fc","versionType":"git"},{"lessThan":"d27a5bdee454ebab3eda81ac1670d828d9bb5857","status":"affected","version":"d6c4503cc29638f328e1a6e6fefbdbda401c28fc","versionType":"git"},{"lessThan":"4a3b402d90231b4e0fe092cf7cc61268469c9357","status":"affected","version":"d6c4503cc29638f328e1a6e6fefbdbda401c28fc","versionType":"git"},{"lessThan":"7fa323d77688e8b62b2f0bf6c3208a2c96d4a5e7","status":"affected","version":"d6c4503cc29638f328e1a6e6fefbdbda401c28fc","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/fixups.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.9"},{"lessThan":"5.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Assume no bounds for buffers behind a tail call\n\nThe bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key\nand the value of an element to the program as buffers.  The verifier notes\nhow far a program reaches into them, and the iterator compares that with\nthe map when the program is attached.  A program that does not touch the\nbuffers passes.  It can tail-call another program of the same target,\nwhich gets the same context, and whose reach nobody compares with the\nmap:\n\n  BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80\n\nThe program array can be filled at any time, so there is nothing to look\nat when the link is made.  For the same reason a program with a tail call\nis taken to use the whole stack and the whole packet.  Take it to reach\nas far as can be into the buffers as well, so that these iterators refuse\nit with -EACCES."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:30.481Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/eab5fefb00bdbbcf37eb53d5483c49f7079b11cd"},{"url":"https://git.kernel.org/stable/c/d27a5bdee454ebab3eda81ac1670d828d9bb5857"},{"url":"https://git.kernel.org/stable/c/4a3b402d90231b4e0fe092cf7cc61268469c9357"},{"url":"https://git.kernel.org/stable/c/7fa323d77688e8b62b2f0bf6c3208a2c96d4a5e7"}],"title":"bpf: Assume no bounds for buffers behind a tail call","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139303","datePublished":"2026-11-30T13:33:30.481Z","dateReserved":"2026-11-30T13:22:15.925Z","dateUpdated":"2026-11-30T13:33:30.481Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:54","lastModifiedDate":"2026-11-30 14:18:54","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139303","Ordinal":"1","Title":"bpf: Assume no bounds for buffers behind a tail call","CVE":"CVE-2026-139303","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139303","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Assume no bounds for buffers behind a tail call\n\nThe bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key\nand the value of an element to the program as buffers.  The verifier notes\nhow far a program reaches into them, and the iterator compares that with\nthe map when the program is attached.  A program that does not touch the\nbuffers passes.  It can tail-call another program of the same target,\nwhich gets the same context, and whose reach nobody compares with the\nmap:\n\n  BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80\n\nThe program array can be filled at any time, so there is nothing to look\nat when the link is made.  For the same reason a program with a tail call\nis taken to use the whole stack and the whole packet.  Take it to reach\nas far as can be into the buffers as well, so that these iterators refuse\nit with -EACCES.","Type":"Description","Title":"bpf: Assume no bounds for buffers behind a tail call"}]}}}