{"id":"CVE-2026-98084","aliases":["CVE-2026-98084"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: backtracking shouldn't clear outer frame R1-R5 for callbacks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: backtracking shouldn't clear outer frame R1-R5 for callbacks\n\nWhen processing calls to bpf_loop() verifier marks R1 (and R4) as\nprecise. R1 tracks loop iterations number and because of the\n'callback_depth < R1' mechanics in check_helper_call() must be marked\nprecise. However, precision propagation for R1 was broken,\nwhen bpf_loop() call was verified on a second iteration.\n\nConsider the following verification trace:\n- main: bpf_loop(nr_loops, callback ...)\n- callback: BPF_EXIT\n- main: bpf_loop(nr_loops, callback ...)\n- ...\n\nWhile the first visit of the call to bpf_loop() propagated R1\nprecision as expected, the second call to mark_chain_precision() in\nthe check_helper_call() set R1, but it was immediately reset when\nbacktrack_insn() processed preceding BPF_EXIT in the loop deleted in\nthis patch.\n\nBecause of that, the second visit of the call to bpf_loop() injected\ncheckpoint with R1 not marked as precise. Which could trick the\nverifier into accepting unsafe programs. See the next patch for an\nexample of such program.\n\nCommit is structured in a way to minimize conflicts when\n'bpf' would be eventually merged with 'bpf-next'.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: backtracking shouldn't clear outer frame R1-R5 for callbacks\n\nWhen processing calls to bpf_loop() verifier marks R1 (and R4) as\nprecise. R1 tracks loop iterations number and because of the\n'callback_depth < R1' mechanics in check_helper_call() must be marked\nprecise. However, precision propagation for R1 was broken,\nwhen bpf_loop() call was verified on a second iteration.\n\nConsider the following verification trace:\n- main: bpf_loop(nr_loops, callback ...)\n- callback: BPF_EXIT\n- main: bpf_loop(nr_loops, callback ...)\n- ...\n\nWhile the first visit of the call to bpf_loop() propagated R1\nprecision as expected, the second call to mark_chain_precision() in\nthe check_helper_call() set R1, but it was immediately reset when\nbacktrack_insn() processed preceding BPF_EXIT in the loop deleted in\nthis patch.\n\nBecause of that, the second visit of the call to bpf_loop() injected\ncheckpoint with R1 not marked as precise. Which could trick the\nverifier into accepting unsafe programs. See the next patch for an\nexample of such program.\n\nCommit is structured in a way to minimize conflicts when\n'bpf' would be eventually merged with 'bpf-next'.","source":"cvelist"}],"published":"2026-09-25T10:24:19.881Z","modified":"2026-11-17T20:23:15.893Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b43550d7d58e7ae6618aaab18c1e912fa4d6e3dd","fixed":"1ac58dab0a83d2c64e3b807a3a0b399f17a74110","status":"affected"},{"type":"git","introduced":"ab5cfac139ab8576fb54630d4cca23c3e690ee90","fixed":"cdc93c6370f792d0649df2a145ac0cdcd430e411","status":"affected"},{"type":"git","introduced":"ab5cfac139ab8576fb54630d4cca23c3e690ee90","fixed":"3a39bc9707fbd1bef4df7318a9d02222741dda5b","status":"affected"},{"type":"git","introduced":"ab5cfac139ab8576fb54630d4cca23c3e690ee90","fixed":"f83890dfed9efc5e19df1dbc1ad707a142936923","status":"affected"},{"type":"git","introduced":"ab5cfac139ab8576fb54630d4cca23c3e690ee90","fixed":"e3e4f66cc4b72333d0886ae2673c360248987889","status":"affected"},{"type":"semver","introduced":"6.6.15","fixed":"6.6.160","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.15","fixed":"6.6.160"},{"status":"affected","introduced":"6.7.1","fixed":"6.12.114"},{"status":"affected","introduced":"6.13","fixed":"6.18.57"},{"status":"affected","introduced":"6.19","fixed":"7.2.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"},{"status":"affected","version":"7.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1ac58dab0a83d2c64e3b807a3a0b399f17a74110","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cdc93c6370f792d0649df2a145ac0cdcd430e411","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a39bc9707fbd1bef4df7318a9d02222741dda5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f83890dfed9efc5e19df1dbc1ad707a142936923","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3e4f66cc4b72333d0886ae2673c360248987889","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98084","url":"https://www.cve.org/CVERecord?id=CVE-2026-98084","licence":"CVE Terms of Use","modified":"2026-10-21T12:54:25.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98084","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98084","licence":"Public domain","modified":"2026-11-17T20:23:15.893Z"}],"updatedAt":"2026-11-25T22:59:41.052Z","epss":{"score":0.00122,"percentile":0.0216,"date":"2026-12-01T12:00:22.000Z"}}