{"id":"CVE-2026-139301","state":"PUBLISHED","title":"bpf: Assume no bounds for a writable tp with tail calls","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Assume no bounds for a writable tp with tail calls\n\nA writable raw tracepoint hands a buffer to the program.  The verifier\nnotes how far the program reaches into it, and bpf_probe_register() refuses\na program that reaches further than the tracepoint allows.  A program that\ndoes not touch the buffer passes, and can tail-call one of its type that\nreads and writes behind it.\n\nTake a BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE program with a tail call to\nreach as far as can be, as for the stack, the packet and the buffers of\niterators.  It cannot be attached any more.  Plain raw tracepoint programs,\nfor which the limit is zero, cannot get at the buffer, and a tail call\nstays within one type: they are left alone.","publishedAt":"2026-11-30T13:33:29.388Z","updatedAt":"2026-11-30T13:33:29.388Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"d4aa50725e53d5bb924adede6081d641a0203cc0","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"f1863768d15944d3856d539c0c4044c94555150f","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"6c6b5ec860b71e17d38304a6def192ce49f2d159","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"cd0490e671d70326d70c7d36e82388939fd9b071","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/fixups.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","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/fixups.c"]}],"references":["https://git.kernel.org/stable/c/d4aa50725e53d5bb924adede6081d641a0203cc0","https://git.kernel.org/stable/c/f1863768d15944d3856d539c0c4044c94555150f","https://git.kernel.org/stable/c/6c6b5ec860b71e17d38304a6def192ce49f2d159","https://git.kernel.org/stable/c/cd0490e671d70326d70c7d36e82388939fd9b071"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139301.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139301","state":"PUBLISHED","datePublished":"2026-11-30T13:33:29.388Z","dateUpdated":"2026-11-30T13:33:29.388Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Assume no bounds for a writable tp with tail calls","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Assume no bounds for a writable tp with tail calls\n\nA writable raw tracepoint hands a buffer to the program.  The verifier\nnotes how far the program reaches into it, and bpf_probe_register() refuses\na program that reaches further than the tracepoint allows.  A program that\ndoes not touch the buffer passes, and can tail-call one of its type that\nreads and writes behind it.\n\nTake a BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE program with a tail call to\nreach as far as can be, as for the stack, the packet and the buffers of\niterators.  It cannot be attached any more.  Plain raw tracepoint programs,\nfor which the limit is zero, cannot get at the buffer, and a tail call\nstays within one type: they are left alone."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"d4aa50725e53d5bb924adede6081d641a0203cc0","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"f1863768d15944d3856d539c0c4044c94555150f","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"6c6b5ec860b71e17d38304a6def192ce49f2d159","versionType":"git"},{"version":"9df1c28bb75217b244257152ab7d788bb2a386d0","status":"affected","lessThan":"cd0490e671d70326d70c7d36e82388939fd9b071","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/fixups.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","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/fixups.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4aa50725e53d5bb924adede6081d641a0203cc0"},{"url":"https://git.kernel.org/stable/c/f1863768d15944d3856d539c0c4044c94555150f"},{"url":"https://git.kernel.org/stable/c/6c6b5ec860b71e17d38304a6def192ce49f2d159"},{"url":"https://git.kernel.org/stable/c/cd0490e671d70326d70c7d36e82388939fd9b071"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:29.388Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}