{"id":"CVE-2026-139622","state":"PUBLISHED","title":"bpf: Fix overflow of jump offset in may_goto expansion","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix overflow of jump offset in may_goto expansion\n\nmay_goto is expanded into 'if AX == 0 goto off + 5' when it's timed,\noff + 2 when it's not and off - 1 when it jumps backward. The sum is\nstored into 16-bit off without a range check, so may_goto +32763\nturns into:\n\n  if r12 == 0x0 goto pc-32768\n\nand the prog jumps backward when may_goto expires.\n\nEmit 'if AX != 0 goto +1; gotol' when the offset doesn't fit and\ncompute the offset from the number of insns in the expansion.\nJITs that don't support gotol will reject such prog.","publishedAt":"2026-11-30T13:36:27.171Z","updatedAt":"2026-11-30T13:36:27.171Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"90bf9ec4c063f478a0a822f664b819eb0a7b4a00","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"cd6f4f06637dff4df789ff733585c93ddbec8fb8","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"65014bb72d9ad73118ca2fe1936e1847b4556762","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"8a12a00f6c5dba70a6d908fe27a3c980d42b9515","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.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","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/90bf9ec4c063f478a0a822f664b819eb0a7b4a00","https://git.kernel.org/stable/c/cd6f4f06637dff4df789ff733585c93ddbec8fb8","https://git.kernel.org/stable/c/65014bb72d9ad73118ca2fe1936e1847b4556762","https://git.kernel.org/stable/c/8a12a00f6c5dba70a6d908fe27a3c980d42b9515"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139622.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139622","state":"PUBLISHED","datePublished":"2026-11-30T13:36:27.171Z","dateUpdated":"2026-11-30T13:36:27.171Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.944Z"},"containers":{"cna":{"title":"bpf: Fix overflow of jump offset in may_goto expansion","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix overflow of jump offset in may_goto expansion\n\nmay_goto is expanded into 'if AX == 0 goto off + 5' when it's timed,\noff + 2 when it's not and off - 1 when it jumps backward. The sum is\nstored into 16-bit off without a range check, so may_goto +32763\nturns into:\n\n  if r12 == 0x0 goto pc-32768\n\nand the prog jumps backward when may_goto expires.\n\nEmit 'if AX != 0 goto +1; gotol' when the offset doesn't fit and\ncompute the offset from the number of insns in the expansion.\nJITs that don't support gotol will reject such prog."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"90bf9ec4c063f478a0a822f664b819eb0a7b4a00","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"cd6f4f06637dff4df789ff733585c93ddbec8fb8","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"65014bb72d9ad73118ca2fe1936e1847b4556762","versionType":"git"},{"version":"011832b97b311bb9e3c27945bc0d1089a14209c9","status":"affected","lessThan":"8a12a00f6c5dba70a6d908fe27a3c980d42b9515","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.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","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/90bf9ec4c063f478a0a822f664b819eb0a7b4a00"},{"url":"https://git.kernel.org/stable/c/cd6f4f06637dff4df789ff733585c93ddbec8fb8"},{"url":"https://git.kernel.org/stable/c/65014bb72d9ad73118ca2fe1936e1847b4556762"},{"url":"https://git.kernel.org/stable/c/8a12a00f6c5dba70a6d908fe27a3c980d42b9515"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:27.171Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}