{"id":"CVE-2026-143306","state":"PUBLISHED","title":"bpf: Emit timed may_goto for JITed progs only","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Emit timed may_goto for JITed progs only\n\nThe timed form of may_goto calls arch_bpf_timed_may_goto(). This function\ntakes its argument and returns its result in BPF_REG_AX, in a register of\nthe cpu. Only JITed code can call it.\n\nThe verifier emits the timed form when the arch has a JIT that supports it.\nIt does not look at the prog. With CONFIG_BPF_JIT_ALWAYS_ON=n the\ninterpreter can run such a prog: the JIT is off, or it fails. The\ninterpreter calls the function like a helper. The function takes what the C\ncode left in that register for a pointer, and bpf_check_timed_may_goto()\nreads and writes through it.\n\nEmit the timed form only when the prog asks for a JIT, and make the JIT\nmandatory for such a prog. All other progs get the form that counts down\nfrom BPF_MAX_LOOPS.\n\nOne test of verifier_may_goto_1 shows the insns of the timed form. Load it\nonly when progs are JITed.","publishedAt":"2026-12-03T09:21:36.249Z","updatedAt":"2026-12-03T09:21:36.249Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e723608bf428014b15d9904e062f44f5fe473ad6","status":"affected","lessThan":"4373cf52166e170c8e4f24919240fbc6d8d346ab","versionType":"git"},{"version":"e723608bf428014b15d9904e062f44f5fe473ad6","status":"affected","lessThan":"1ddffb57b36239e84b8224b12e34b87f6031b29c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/fixups.c","tools/testing/selftests/bpf/progs/verifier_may_goto_1.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","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","tools/testing/selftests/bpf/progs/verifier_may_goto_1.c"]}],"references":["https://git.kernel.org/stable/c/4373cf52166e170c8e4f24919240fbc6d8d346ab","https://git.kernel.org/stable/c/1ddffb57b36239e84b8224b12e34b87f6031b29c"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143306.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143306","state":"PUBLISHED","datePublished":"2026-12-03T09:21:36.249Z","dateUpdated":"2026-12-03T09:21:36.249Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.365Z"},"containers":{"cna":{"title":"bpf: Emit timed may_goto for JITed progs only","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Emit timed may_goto for JITed progs only\n\nThe timed form of may_goto calls arch_bpf_timed_may_goto(). This function\ntakes its argument and returns its result in BPF_REG_AX, in a register of\nthe cpu. Only JITed code can call it.\n\nThe verifier emits the timed form when the arch has a JIT that supports it.\nIt does not look at the prog. With CONFIG_BPF_JIT_ALWAYS_ON=n the\ninterpreter can run such a prog: the JIT is off, or it fails. The\ninterpreter calls the function like a helper. The function takes what the C\ncode left in that register for a pointer, and bpf_check_timed_may_goto()\nreads and writes through it.\n\nEmit the timed form only when the prog asks for a JIT, and make the JIT\nmandatory for such a prog. All other progs get the form that counts down\nfrom BPF_MAX_LOOPS.\n\nOne test of verifier_may_goto_1 shows the insns of the timed form. Load it\nonly when progs are JITed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e723608bf428014b15d9904e062f44f5fe473ad6","status":"affected","lessThan":"4373cf52166e170c8e4f24919240fbc6d8d346ab","versionType":"git"},{"version":"e723608bf428014b15d9904e062f44f5fe473ad6","status":"affected","lessThan":"1ddffb57b36239e84b8224b12e34b87f6031b29c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/fixups.c","tools/testing/selftests/bpf/progs/verifier_may_goto_1.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","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","tools/testing/selftests/bpf/progs/verifier_may_goto_1.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4373cf52166e170c8e4f24919240fbc6d8d346ab"},{"url":"https://git.kernel.org/stable/c/1ddffb57b36239e84b8224b12e34b87f6031b29c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:36.249Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}