{"id":"CVE-2026-53036","aliases":["CVE-2026-53036"],"related":[],"kind":"vulnerability","state":"published","title":"bpf, arm64: Fix off-by-one in check_imm signed range check","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, arm64: Fix off-by-one in check_imm signed range check\n\ncheck_imm(bits, imm) is used in the arm64 BPF JIT to verify that\na branch displacement (in arm64 instruction units) fits into the\nsigned N-bit immediate field of a B, B.cond or CBZ/CBNZ encoding\nbefore it is handed to the encoder. The macro currently tests for\n(imm > 0 && imm >> bits) || (imm < 0 && ~imm >> bits) which admits\nvalues in [-2^N, 2^N) — effectively a signed (N+1)-bit range. A\nsigned N-bit field only holds [-2^(N-1), 2^(N-1)), so the check\nadmits one extra bit of range on each side.\n\nIn particular, for check_imm19(), values in [2^18, 2^19) slip past\nthe check but do not fit into the 19-bit signed imm19 field of\nB.cond. aarch64_insn_encode_immediate() then masks the raw value\ninto the 19-bit field, setting bit 18 (the sign bit) and flipping\na forward branch into a backward one. Same class of issue exists\nfor check_imm26() and the B/BL encoding. Shift by (bits - 1)\ninstead of bits so the actual signed N-bit range is enforced.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, arm64: Fix off-by-one in check_imm signed range check\n\ncheck_imm(bits, imm) is used in the arm64 BPF JIT to verify that\na branch displacement (in arm64 instruction units) fits into the\nsigned N-bit immediate field of a B, B.cond or CBZ/CBNZ encoding\nbefore it is handed to the encoder. The macro currently tests for\n(imm > 0 && imm >> bits) || (imm < 0 && ~imm >> bits) which admits\nvalues in [-2^N, 2^N) — effectively a signed (N+1)-bit range. A\nsigned N-bit field only holds [-2^(N-1), 2^(N-1)), so the check\nadmits one extra bit of range on each side.\n\nIn particular, for check_imm19(), values in [2^18, 2^19) slip past\nthe check but do not fit into the 19-bit signed imm19 field of\nB.cond. aarch64_insn_encode_immediate() then masks the raw value\ninto the 19-bit field, setting bit 18 (the sign bit) and flipping\na forward branch into a backward one. Same class of issue exists\nfor check_imm26() and the B/BL encoding. Shift by (bits - 1)\ninstead of bits so the actual signed N-bit range is enforced.","source":"cvelist"}],"published":"2026-06-24T16:29:43.449Z","modified":"2026-11-23T08:17:17.393Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-193"],"affected":[{"ranges":[{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"6ec3fec39fe4ac8910de5c30749e19e66f86a901","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"09789251d5d222fb60086a3645cd16799e29e6b4","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"a5dfeb3b61065039488342d43ae06d4729d955d4","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"7fd3b41260c6120e7b60164afea5d961af6224f9","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"6927f0d6794aa73318bbfa929f1ff6065b0620df","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"1a113b5497297871699cd498b1b83542e0db7f15","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"fb74defa1cca1a73177c0c761e641332e4f979a3","status":"affected"},{"type":"git","introduced":"e54bcde3d69d40023ae77727213d14f920eb264a","fixed":"1dd8be4ec722ce54e4cace59f3a4ba658111b3ec","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.91","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","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":"3.18","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.141"},{"status":"affected","introduced":"6.7","fixed":"6.12.91"},{"status":"affected","introduced":"6.13","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6ec3fec39fe4ac8910de5c30749e19e66f86a901","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09789251d5d222fb60086a3645cd16799e29e6b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5dfeb3b61065039488342d43ae06d4729d955d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fd3b41260c6120e7b60164afea5d961af6224f9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6927f0d6794aa73318bbfa929f1ff6065b0620df","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a113b5497297871699cd498b1b83542e0db7f15","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb74defa1cca1a73177c0c761e641332e4f979a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1dd8be4ec722ce54e4cace59f3a4ba658111b3ec","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53036","url":"https://www.cve.org/CVERecord?id=CVE-2026-53036","licence":"CVE Terms of Use","modified":"2026-11-23T07:58:46.935Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53036","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53036","licence":"Public domain","modified":"2026-11-23T08:17:17.393Z"}],"updatedAt":"2026-11-25T22:59:25.667Z","epss":{"score":0.00144,"percentile":0.03878,"date":"2026-12-01T12:00:22.000Z"}}