{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-98641", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.361Z", "datePublished": "2026-10-18T15:20:12.730Z", "dateUpdated": "2026-10-19T09:23:10.965Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-10-19T09:23:10.965Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, arm64: set up the frame pointer for the exception callback\n\nA program acting as exception boundary saves all callee-saved registers,\nso build_prologue() takes the exception_cb path and never calls\npush_callee_regs(). That is the only place find_used_callee_regs() runs,\nand with it the only place ctx->fp_used is set, so the callback prologue\ndoes not emit the\n\n mov x25, sp\n\nthat points BPF_REG_FP at the frame the callback runs on. x25 keeps\nwhatever it held when bpf_throw() was called. If the throw came from a\nsubprogram that uses its own BPF stack, that is the subprogram's frame\npointer, and since the subprogram never returns it never restores x25\neither.\n\nStack accesses through BPF_REG_FP are rewritten to be stack pointer\nrelative, so those still land in the callback's own frame. Materializing\nthe register does not: a callback that passes the address of a local\nvariable to a helper hands over an address in the dead subprogram's\nframe. That address is below the callback's stack pointer by then, and\nthe helper's own call chain covers it, so the helper can write over its\nown return address. 0x1234 below is the value the helper was asked to\nstore:\n\n pc : 0x1234\n lr : 0x1234\n Call trace:\n 0x1234 (P)\n bpf_test_run+0x188/0x3e0\n bpf_prog_test_run_skb+0x47c/0x998\n __sys_bpf+0xbdc/0xdd8\n Kernel panic - not syncing: Oops: Fatal exception in interrupt\n\nSet ctx->fp_used on the exception callback path so that the existing code\nfurther down sets x25 from the stack pointer. The epilogue restores it\nfrom the main program's save area along with the other callee-saved\nregisters, as it already does. x86 sets the frame pointer for the\ncallback from the argument it is passed, and powerpc computes it from\nthe stack pointer." } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "arch/arm64/net/bpf_jit_comp.c" ], "versions": [ { "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff", "lessThan": "ecdd770a9fc3eaf6c3127c5991312b84774a7b0f", "status": "affected", "versionType": "git" }, { "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff", "lessThan": "b67b4c763f211e7a6391c356fef552e2ea63f08a", "status": "affected", "versionType": "git" }, { "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff", "lessThan": "d7cd5ebe13989f265015910faa25e5d50faa4c22", "status": "affected", "versionType": "git" }, { "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff", "lessThan": "ef1fb82f12186dd26153b14d9fbcf4ec98db81b3", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "arch/arm64/net/bpf_jit_comp.c" ], "versions": [ { "version": "6.12", "status": "affected" }, { "version": "0", "lessThan": "6.12", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.112", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.55", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.2.9", "lessThanOrEqual": "7.2.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.12", "versionEndExcluding": "6.12.112" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.12", "versionEndExcluding": "6.18.55" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.12", "versionEndExcluding": "7.2.9" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.12", "versionEndExcluding": "7.3" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/ecdd770a9fc3eaf6c3127c5991312b84774a7b0f" }, { "url": "https://git.kernel.org/stable/c/b67b4c763f211e7a6391c356fef552e2ea63f08a" }, { "url": "https://git.kernel.org/stable/c/d7cd5ebe13989f265015910faa25e5d50faa4c22" }, { "url": "https://git.kernel.org/stable/c/ef1fb82f12186dd26153b14d9fbcf4ec98db81b3" } ], "title": "bpf, arm64: set up the frame pointer for the exception callback", "x_generator": { "engine": "bippy-1.2.0" } } } }