# CVE-2026-89906: LoongArch: BPF: Refactor jump offset calculation in tail call

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-09-16T10:32:05.157Z
- Modified: 2026-10-21T13:20:31.497Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: BPF: Refactor jump offset calculation in tail call

The old macro-based jmp_offset calculation derives the jump distance
from a stale prior-pass code stride, which can lead to wrong branch
offsets and soft lockups under extra JIT passes.

Fix this by calculating the offset directly on the absolute target:
"ctx->offset[insn + 1] - ctx->idx".

To avoid a false 16-bit range check abort during size estimation, add
a "ctx->image == NULL" guard to inject a safe dummy offset.

(As written by CVE List.)

## Affected

- Linux Linux: from 17c010fe45def335fe03a0718935416b04c7f349 before 50fbc294e4e96246d60cd66f98acf043a362e3a0; from f83d469e16bb1f75991ca67c56786fb2aaa42bea before 89819868cde78cb2f748533785a46a3430873f20; from cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3 before 882b8912b7e92341fdb115ba0e2e5142a28684ff; from cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3 before 96f44d493c280ea161569c43d7ed0f3b0815803a; from cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3 before 37d545d12f21c4d50612ecaebd7ae1e5bf91b2d8; 1a782fa32e644aa9fbae6c8488f3e61221ac96e1; f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f; 9262e3e04621558e875eb5afb5e726b648cd5949; from 6.6.103 before 6.6.160; from 6.12.43 before 6.12.114; from 6.1.149 before 6.2; from 6.15.11 before 6.16; and 2 more (not affected: before 6.17; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/50fbc294e4e96246d60cd66f98acf043a362e3a0>
- <https://git.kernel.org/stable/c/89819868cde78cb2f748533785a46a3430873f20>
- <https://git.kernel.org/stable/c/882b8912b7e92341fdb115ba0e2e5142a28684ff>
- <https://git.kernel.org/stable/c/96f44d493c280ea161569c43d7ed0f3b0815803a>
- <https://git.kernel.org/stable/c/37d545d12f21c4d50612ecaebd7ae1e5bf91b2d8>

## Sources

- CVE List: [CVE-2026-89906](https://www.cve.org/CVERecord?id=CVE-2026-89906), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-89906](https://nvd.nist.gov/vuln/detail/CVE-2026-89906), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-89906 · Whole record: https://cve.day/CVE-2026-89906.json · Rebuilt by cve.day 2026-11-25T22:59:38.974Z
