{"id":"CVE-2026-139300","state":"PUBLISHED","title":"bpf: Don't take an extension for a writable raw tracepoint program","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take an extension for a writable raw tracepoint program\n\nbpf_probe_register() compares max_tp_access of the program that is\nattached with the size of the buffer that the tracepoint lets programs\nwrite to.  An extension of that program, or of one of its global\nfunctions, gets the same context and the same pointer to the buffer.  What\nit accesses is noted in its own max_tp_access, which nobody looks at.  So\nit reads and writes behind the buffer, of a tracepoint that may have none:\n\n  BUG: KASAN: stack-out-of-bounds in bpf_prog_5843f2b820eb4929_tr26_ext_far+0xf4/0x10c\n  Write of size 4 at addr ffffc90000d8f894 by task wext/103\n\nRefuse such extensions.","publishedAt":"2026-11-30T13:33:28.825Z","updatedAt":"2026-11-30T13:33:28.825Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"d8fc1e57bbc1643f11f879d5949f6656b77f5822","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"0c8326070fdab676f598637d30951aa8c0aaa932","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"853a52778354426bafbcb2f02de77a381b47dd05","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"189e329c62250c9cf7e16eaa5e9630d4a6440a9f","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"7fe348f18b37b3f4c8beb981ef3f84564047380a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":["https://git.kernel.org/stable/c/d8fc1e57bbc1643f11f879d5949f6656b77f5822","https://git.kernel.org/stable/c/0c8326070fdab676f598637d30951aa8c0aaa932","https://git.kernel.org/stable/c/853a52778354426bafbcb2f02de77a381b47dd05","https://git.kernel.org/stable/c/189e329c62250c9cf7e16eaa5e9630d4a6440a9f","https://git.kernel.org/stable/c/7fe348f18b37b3f4c8beb981ef3f84564047380a"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139300.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139300","state":"PUBLISHED","datePublished":"2026-11-30T13:33:28.825Z","dateUpdated":"2026-11-30T13:33:28.825Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Don't take an extension for a writable raw tracepoint program","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take an extension for a writable raw tracepoint program\n\nbpf_probe_register() compares max_tp_access of the program that is\nattached with the size of the buffer that the tracepoint lets programs\nwrite to.  An extension of that program, or of one of its global\nfunctions, gets the same context and the same pointer to the buffer.  What\nit accesses is noted in its own max_tp_access, which nobody looks at.  So\nit reads and writes behind the buffer, of a tracepoint that may have none:\n\n  BUG: KASAN: stack-out-of-bounds in bpf_prog_5843f2b820eb4929_tr26_ext_far+0xf4/0x10c\n  Write of size 4 at addr ffffc90000d8f894 by task wext/103\n\nRefuse such extensions."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"d8fc1e57bbc1643f11f879d5949f6656b77f5822","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"0c8326070fdab676f598637d30951aa8c0aaa932","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"853a52778354426bafbcb2f02de77a381b47dd05","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"189e329c62250c9cf7e16eaa5e9630d4a6440a9f","versionType":"git"},{"version":"be8704ff07d2374bcc5c675526f95e70c6459683","status":"affected","lessThan":"7fe348f18b37b3f4c8beb981ef3f84564047380a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d8fc1e57bbc1643f11f879d5949f6656b77f5822"},{"url":"https://git.kernel.org/stable/c/0c8326070fdab676f598637d30951aa8c0aaa932"},{"url":"https://git.kernel.org/stable/c/853a52778354426bafbcb2f02de77a381b47dd05"},{"url":"https://git.kernel.org/stable/c/189e329c62250c9cf7e16eaa5e9630d4a6440a9f"},{"url":"https://git.kernel.org/stable/c/7fe348f18b37b3f4c8beb981ef3f84564047380a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:28.825Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}