{"api_version":"1","generated_at":"2026-12-04T04:10:22+00:00","cve":"CVE-2026-143381","urls":{"html":"https://cve.report/CVE-2026-143381","api":"https://cve.report/api/cve/CVE-2026-143381.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143381","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143381"},"summary":{"title":"x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address\n\nSince commit 0c3772a8db1f (\"x86/ftrace: Implement DYNAMIC_FTRACE_WITH_JMP\")\nftrace_call_replace() emits a jmp instead of a call when bit 0 of the\ntarget is set, the mark of a direct trampoline that is entered by a jmp.\nftrace_update_ftrace_func() and arch_ftrace_update_trampoline() use it\ntoo, for the call of the ftrace callback in ftrace_caller, ftrace_regs_caller\nand the ftrace trampolines, but a callback is a C function and can start\nat an odd address. It does with gcc13 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y:\ngcc13 has no -fmin-function-alignment, so CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT\nis not set, and the -falign-functions=16 used in its place does not apply\nto functions optimized for size. Here ftrace_ops_list_func() starts at:\n\n  ffffffff810e0147 T ftrace_ops_list_func\n\nftrace_regs_call then becomes a jmp to the byte before it:\n\n  ftrace_regs_call ffffffff810374f3: e9 4e 8c 0a 00\n\nThat byte is the last one of the preceding function's tail jump, and with\nthe first two of ftrace_ops_list_func() it decodes as an inc DWORD PTR\n[rcx+0x57], which swallows the push %r15 of the prologue. Entered without\na return address and one push short, the list function returns through\nthe pt_regs that ftrace_regs_caller saved, here to the saved R14:\n\n  BUG: unable to handle page fault for address: ffff888116c29f40\n  #PF: supervisor instruction fetch in kernel mode\n  RIP: 0010:0xffff888116c29f40\n  R13: 0000000000000000 R14: ffff888116c29f40 R15: 0000000000000000\n  Call Trace:\n   ? bpf_trampoline_6442499918+0x1/0x149\n   ? bpf_lsm_file_open+0x5/0x8\n   ? bpf_lsm_file_open+0x5/0x8\n   ? security_file_open+0x19/0x46\n   ? do_dentry_open+0x16c/0x32a\n\nThe list function is installed whenever two ftrace_ops are registered,\nand a function that two of them trace calls it. A kprobe next to a BPF\ntrampoline is one such case, and with the single ftrace_ops of the BPF\ntrampolines every update_ftrace_direct_mod() is another, as it registers\na stub ops for the sites it modifies. Here, detaching one of several BPF\nLSM programs from a busy hook crashed the tasks that ran the hook during\nthe update.\n\nBit 0 is free only in the direct trampolines that a dyn_ftrace record can\npoint to, but bit 63 is set in every kernel text address on x86_64. Thus,\nmark jmp mode by clearing bit 63 instead, so that ftrace_is_jmp() is false\nfor any callback, whatever its alignment, and ftrace_regs_caller sets the\nbit again where it cleared bit 0 before. A marked address is not canonical,\nso a return or indirect branch to one that missed ftrace_jmp_get() faults\ninstead of running from a byte before its target.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:31","updated_at":"2026-12-03 10:18:31"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/31ac959c915cc7f379d84cf9dadf3664cbcace02","name":"https://git.kernel.org/stable/c/31ac959c915cc7f379d84cf9dadf3664cbcace02","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/feb129f10538dfac80b9ab298fd9455d51f2e4d9","name":"https://git.kernel.org/stable/c/feb129f10538dfac80b9ab298fd9455d51f2e4d9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143381","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143381","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0c3772a8db1f697c22dd6caef1fe938fbb0e0a5b feb129f10538dfac80b9ab298fd9455d51f2e4d9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0c3772a8db1f697c22dd6caef1fe938fbb0e0a5b 31ac959c915cc7f379d84cf9dadf3664cbcace02 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143381","cve":"CVE-2026-143381","epss":"0.003490000","percentile":"0.305270000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["arch/x86/kernel/ftrace_64.S","include/linux/ftrace.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"feb129f10538dfac80b9ab298fd9455d51f2e4d9","status":"affected","version":"0c3772a8db1f697c22dd6caef1fe938fbb0e0a5b","versionType":"git"},{"lessThan":"31ac959c915cc7f379d84cf9dadf3664cbcace02","status":"affected","version":"0c3772a8db1f697c22dd6caef1fe938fbb0e0a5b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/x86/kernel/ftrace_64.S","include/linux/ftrace.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address\n\nSince commit 0c3772a8db1f (\"x86/ftrace: Implement DYNAMIC_FTRACE_WITH_JMP\")\nftrace_call_replace() emits a jmp instead of a call when bit 0 of the\ntarget is set, the mark of a direct trampoline that is entered by a jmp.\nftrace_update_ftrace_func() and arch_ftrace_update_trampoline() use it\ntoo, for the call of the ftrace callback in ftrace_caller, ftrace_regs_caller\nand the ftrace trampolines, but a callback is a C function and can start\nat an odd address. It does with gcc13 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y:\ngcc13 has no -fmin-function-alignment, so CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT\nis not set, and the -falign-functions=16 used in its place does not apply\nto functions optimized for size. Here ftrace_ops_list_func() starts at:\n\n  ffffffff810e0147 T ftrace_ops_list_func\n\nftrace_regs_call then becomes a jmp to the byte before it:\n\n  ftrace_regs_call ffffffff810374f3: e9 4e 8c 0a 00\n\nThat byte is the last one of the preceding function's tail jump, and with\nthe first two of ftrace_ops_list_func() it decodes as an inc DWORD PTR\n[rcx+0x57], which swallows the push %r15 of the prologue. Entered without\na return address and one push short, the list function returns through\nthe pt_regs that ftrace_regs_caller saved, here to the saved R14:\n\n  BUG: unable to handle page fault for address: ffff888116c29f40\n  #PF: supervisor instruction fetch in kernel mode\n  RIP: 0010:0xffff888116c29f40\n  R13: 0000000000000000 R14: ffff888116c29f40 R15: 0000000000000000\n  Call Trace:\n   ? bpf_trampoline_6442499918+0x1/0x149\n   ? bpf_lsm_file_open+0x5/0x8\n   ? bpf_lsm_file_open+0x5/0x8\n   ? security_file_open+0x19/0x46\n   ? do_dentry_open+0x16c/0x32a\n\nThe list function is installed whenever two ftrace_ops are registered,\nand a function that two of them trace calls it. A kprobe next to a BPF\ntrampoline is one such case, and with the single ftrace_ops of the BPF\ntrampolines every update_ftrace_direct_mod() is another, as it registers\na stub ops for the sites it modifies. Here, detaching one of several BPF\nLSM programs from a busy hook crashed the tasks that ran the hook during\nthe update.\n\nBit 0 is free only in the direct trampolines that a dyn_ftrace record can\npoint to, but bit 63 is set in every kernel text address on x86_64. Thus,\nmark jmp mode by clearing bit 63 instead, so that ftrace_is_jmp() is false\nfor any callback, whatever its alignment, and ftrace_regs_caller sets the\nbit again where it cleared bit 0 before. A marked address is not canonical,\nso a return or indirect branch to one that missed ftrace_jmp_get() faults\ninstead of running from a byte before its target."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:27.718Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/feb129f10538dfac80b9ab298fd9455d51f2e4d9"},{"url":"https://git.kernel.org/stable/c/31ac959c915cc7f379d84cf9dadf3664cbcace02"}],"title":"x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143381","datePublished":"2026-12-03T09:22:27.718Z","dateReserved":"2026-12-03T03:10:28.372Z","dateUpdated":"2026-12-03T09:22:27.718Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:31","lastModifiedDate":"2026-12-03 10:18:31","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143381","Ordinal":"1","Title":"x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline addre","CVE":"CVE-2026-143381","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143381","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address\n\nSince commit 0c3772a8db1f (\"x86/ftrace: Implement DYNAMIC_FTRACE_WITH_JMP\")\nftrace_call_replace() emits a jmp instead of a call when bit 0 of the\ntarget is set, the mark of a direct trampoline that is entered by a jmp.\nftrace_update_ftrace_func() and arch_ftrace_update_trampoline() use it\ntoo, for the call of the ftrace callback in ftrace_caller, ftrace_regs_caller\nand the ftrace trampolines, but a callback is a C function and can start\nat an odd address. It does with gcc13 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y:\ngcc13 has no -fmin-function-alignment, so CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT\nis not set, and the -falign-functions=16 used in its place does not apply\nto functions optimized for size. Here ftrace_ops_list_func() starts at:\n\n  ffffffff810e0147 T ftrace_ops_list_func\n\nftrace_regs_call then becomes a jmp to the byte before it:\n\n  ftrace_regs_call ffffffff810374f3: e9 4e 8c 0a 00\n\nThat byte is the last one of the preceding function's tail jump, and with\nthe first two of ftrace_ops_list_func() it decodes as an inc DWORD PTR\n[rcx+0x57], which swallows the push %r15 of the prologue. Entered without\na return address and one push short, the list function returns through\nthe pt_regs that ftrace_regs_caller saved, here to the saved R14:\n\n  BUG: unable to handle page fault for address: ffff888116c29f40\n  #PF: supervisor instruction fetch in kernel mode\n  RIP: 0010:0xffff888116c29f40\n  R13: 0000000000000000 R14: ffff888116c29f40 R15: 0000000000000000\n  Call Trace:\n   ? bpf_trampoline_6442499918+0x1/0x149\n   ? bpf_lsm_file_open+0x5/0x8\n   ? bpf_lsm_file_open+0x5/0x8\n   ? security_file_open+0x19/0x46\n   ? do_dentry_open+0x16c/0x32a\n\nThe list function is installed whenever two ftrace_ops are registered,\nand a function that two of them trace calls it. A kprobe next to a BPF\ntrampoline is one such case, and with the single ftrace_ops of the BPF\ntrampolines every update_ftrace_direct_mod() is another, as it registers\na stub ops for the sites it modifies. Here, detaching one of several BPF\nLSM programs from a busy hook crashed the tasks that ran the hook during\nthe update.\n\nBit 0 is free only in the direct trampolines that a dyn_ftrace record can\npoint to, but bit 63 is set in every kernel text address on x86_64. Thus,\nmark jmp mode by clearing bit 63 instead, so that ftrace_is_jmp() is false\nfor any callback, whatever its alignment, and ftrace_regs_caller sets the\nbit again where it cleared bit 0 before. A marked address is not canonical,\nso a return or indirect branch to one that missed ftrace_jmp_get() faults\ninstead of running from a byte before its target.","Type":"Description","Title":"x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline addre"}]}}}