bpf: Fix overflow of jump offset in constant blinding
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in constant blinding bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into: AX = imm ^ rnd AX ^= rnd if rX op AX goto off and subtracts 2 from off when the jump is backward. off is s16, so -32767 and -32768 wrap and the jump goes 32767 insns forward, past the end of the prog. The jump is inside the patch, hence bpf_adj_branches() doesn't check it. The kernel crashes when such prog runs with bpf_jit_harden=2. Return -ERANGE in such case. bpf_jit_blind_constants() fails the same way when blinding of other insns moves a jump out of range.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 7.2.10
- CVEs
- CVE-2026-98816
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 13:23 UTC · Revision 1
Source evidence
bpf: Fix overflow of jump offset in constant blinding
core-osv · Original sourcePublished 18 Oct 2026, 15:49 UTC
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in constant blinding bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into: AX = imm ^ rnd AX ^= rnd if rX op AX goto off and subtracts 2 from off when the jump is backward. off is s16, so -32767 and -32768 wrap and the jump goes 32767 insns forward, past the end of the prog. The jump is inside the patch, hence bpf_adj_branches() doesn't check it. The kernel crashes when such prog runs with bpf_jit_harden=2. Return -ERANGE in such case. bpf_jit_blind_constants() fails the same way when blinding of other insns moves a jump out of range.
osv:CVE-2026-98816
Kernel
Fixed versions: 7.2.10
Complete source record
{
"id": "a05b02bcdd13cc2895be8d33d1bd98e8c6789ed0675b9edb8386b1bbedcbb9fd",
"url": "https://osv.dev/vulnerability/CVE-2026-98816",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf: Fix overflow of jump offset in constant blinding",
"summary": "In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in constant blinding bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into: AX = imm ^ rnd AX ^= rnd if rX op AX goto off and subtracts 2 from off when the jump is backward. off is s16, so -32767 and -32768 wrap and the jump goes 32767 insns forward, past the end of the prog. The jump is inside the patch, hence bpf_adj_branches() doesn't check it. The kernel crashes when such prog runs with bpf_jit_harden=2. Return -ERANGE in such case. bpf_jit_blind_constants() fails the same way when blinding of other insns moves a jump out of range.",
"evidence": "osv:CVE-2026-98816",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.2.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98816",
"aliases": [
"CVE-2026-98816"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4f3446bb809f20ad56cadf712e6006815ae7a8f9"
},
{
"fixed": "443328237113ee0ea515e506497334d871dbc2aa"
},
{
"fixed": "ad139384ecddb6f3e7e3c3c12765aafae0e39670"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98816.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.7.0"
},
{
"fixed": "7.2.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98816.json"
}
}
],
"modified": "2026-10-28T02:30:35.575372559Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/443328237113ee0ea515e506497334d871dbc2aa",
"https://git.kernel.org/stable/c/ad139384ecddb6f3e7e3c3c12765aafae0e39670",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98816.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98816",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98816.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98816",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 503008,
"published_at": "2026-10-18T15:49:05.616+00:00"
}