{"id":"CVE-2026-139607","state":"PUBLISHED","title":"bpf: Rebase the exception callback subprog when dead subprogs are removed","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Rebase the exception callback subprog when dead subprogs are removed\n\nadjust_subprog_starts_after_remove() compacts subprog_info[] and the\nfunc_info when whole subprograms are removed as dead code, but leaves\nenv->exception_callback_subprog alone, so an exception callback declared\nthrough the exception_callback decl tag which sits behind a removed\nsubprogram keeps its old index. jit_subprogs() then takes the exception\ncallback from func[] at that index, which is past the end when the\ncallback was the last subprogram, or another subprogram otherwise.\n\nRebase the index along with the entries it refers to.","publishedAt":"2026-11-30T13:36:18.898Z","updatedAt":"2026-11-30T13:36:18.898Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"2aea71e5eaafa8a07cd72458a5fe9d8b3d917484","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"8c22349f05366cd5ab04c16ed8132e570f0fe2e6","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"1969470a530e376e87e9497a00ff25e32da922e1","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"8608ec8e981974b18834e2d67ed39638a9ec2e63","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":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","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/2aea71e5eaafa8a07cd72458a5fe9d8b3d917484","https://git.kernel.org/stable/c/8c22349f05366cd5ab04c16ed8132e570f0fe2e6","https://git.kernel.org/stable/c/1969470a530e376e87e9497a00ff25e32da922e1","https://git.kernel.org/stable/c/8608ec8e981974b18834e2d67ed39638a9ec2e63"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139607.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139607","state":"PUBLISHED","datePublished":"2026-11-30T13:36:18.898Z","dateUpdated":"2026-11-30T13:36:18.898Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.943Z"},"containers":{"cna":{"title":"bpf: Rebase the exception callback subprog when dead subprogs are removed","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Rebase the exception callback subprog when dead subprogs are removed\n\nadjust_subprog_starts_after_remove() compacts subprog_info[] and the\nfunc_info when whole subprograms are removed as dead code, but leaves\nenv->exception_callback_subprog alone, so an exception callback declared\nthrough the exception_callback decl tag which sits behind a removed\nsubprogram keeps its old index. jit_subprogs() then takes the exception\ncallback from func[] at that index, which is past the end when the\ncallback was the last subprogram, or another subprogram otherwise.\n\nRebase the index along with the entries it refers to."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"2aea71e5eaafa8a07cd72458a5fe9d8b3d917484","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"8c22349f05366cd5ab04c16ed8132e570f0fe2e6","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"1969470a530e376e87e9497a00ff25e32da922e1","versionType":"git"},{"version":"b9ae0c9dd0aca79bffc17be51c2dc148d1f72708","status":"affected","lessThan":"8608ec8e981974b18834e2d67ed39638a9ec2e63","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":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","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/2aea71e5eaafa8a07cd72458a5fe9d8b3d917484"},{"url":"https://git.kernel.org/stable/c/8c22349f05366cd5ab04c16ed8132e570f0fe2e6"},{"url":"https://git.kernel.org/stable/c/1969470a530e376e87e9497a00ff25e32da922e1"},{"url":"https://git.kernel.org/stable/c/8608ec8e981974b18834e2d67ed39638a9ec2e63"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:18.898Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}