{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-53036","id":"CVE-2026-53036","title":"bpf, arm64: Fix off-by-one in check_imm signed range check","description":"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 &","descriptionLong":"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.","published":"2026-06-24T16:29:43.449Z","updated":"2026-10-28T02:31:06.305955403Z","reserved":"2026-06-09T07:44:35.380Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"a5dfeb3b61065039488342d43ae06d4729d955d4","status":"affected","versionType":"git"},{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"7fd3b41260c6120e7b60164afea5d961af6224f9","status":"affected","versionType":"git"},{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"6927f0d6794aa73318bbfa929f1ff6065b0620df","status":"affected","versionType":"git"},{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"1a113b5497297871699cd498b1b83542e0db7f15","status":"affected","versionType":"git"},{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"fb74defa1cca1a73177c0c761e641332e4f979a3","status":"affected","versionType":"git"},{"version":"e54bcde3d69d40023ae77727213d14f920eb264a","lessThan":"1dd8be4ec722ce54e4cace59f3a4ba658111b3ec","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","lessThan":"3.18","status":"unaffected","versionType":"semver"},{"version":"6.1.175","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.141","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.91","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.33","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.10","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-193"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a5dfeb3b61065039488342d43ae06d4729d955d4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7fd3b41260c6120e7b60164afea5d961af6224f9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6927f0d6794aa73318bbfa929f1ff6065b0620df","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1a113b5497297871699cd498b1b83542e0db7f15","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fb74defa1cca1a73177c0c761e641332e4f979a3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1dd8be4ec722ce54e4cace59f3a4ba658111b3ec","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53036.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53036","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00139,"epssPercentile":0.03306,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-53036","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53036","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-53036","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-53036","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}