Linux
LoongArch: BPF: Refactor jump offset calculation in tail call
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 17c010fe45def335fe03a0718935416b04c7f349, < 50fbc294e4e96246d60cd66f98acf043a362e3a0
- >= f83d469e16bb1f75991ca67c56786fb2aaa42bea, < 89819868cde78cb2f748533785a46a3430873f20
- >= cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3, < 882b8912b7e92341fdb115ba0e2e5142a28684ff
- >= cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3, < 96f44d493c280ea161569c43d7ed0f3b0815803a
- >= cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3, < 37d545d12f21c4d50612ecaebd7ae1e5bf91b2d8
- 1a782fa32e644aa9fbae6c8488f3e61221ac96e1
- f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f
- 9262e3e04621558e875eb5afb5e726b648cd5949
- >= 6.6.103, < 6.6.160
- >= 6.12.43, < 6.12.114
- >= 6.1.149, < 6.2
- >= 6.15.11, < 6.16
- >= 6.16.2, < 6.17
Fixed in 50fbc294e4e96246d60cd66f98acf043a362e3a0, 89819868cde78cb2f748533785a46a3430873f20, 882b8912b7e92341fdb115ba0e2e5142a28684ff, 96f44d493c280ea161569c43d7ed0f3b0815803a, 37d545d12f21c4d50612ecaebd7ae1e5bf91b2d8, 6.6.160, 6.12.114, 6.2, 6.16, 6.17
- 6.17
Fixed in 0, 6.6.160, 6.12.114, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to 50fbc294e4e96246d60cd66f98acf043a362e3a0 or 89819868cde78cb2f748533785a46a3430873f20 or 882b8912b7e92341fdb115ba0e2e5142a28684ff or 96f44d493c280ea161569c43d7ed0f3b0815803a or 37d545d12f21c4d50612ecaebd7ae1e5bf91b2d8 or 6.6.160 or 6.12.114 or 6.2 or 6.16 or 6.17 or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.114 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.