GHSA-6HVH-PXXM-3HGR

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address

Since commit 0c3772a8db1f ("x86/ftrace: Implement DYNAMIC_FTRACE_WITH_JMP") ftrace_call_replace() emits a jmp instead of a call when bit 0 of the target is set, the mark of a direct trampoline that is entered by a jmp. ftrace_update_ftrace_func() and arch_ftrace_update_trampoline() use it too, for the call of the ftrace callback in ftrace_caller, ftrace_regs_caller and the ftrace trampolines, but a callback is a C function and can start at an odd address. It does with gcc13 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y: gcc13 has no -fmin-function-alignment, so CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT is not set, and the -falign-functions=16 used in its place does not apply to functions optimized for size. Here ftrace_ops_list_func() starts at:

ffffffff810e0147 T ftrace_ops_list_func

ftrace_regs_call then becomes a jmp to the byte before it:

ftrace_regs_call ffffffff810374f3: e9 4e 8c 0a 00

That byte is the last one of the preceding function's tail jump, and with the first two of ftrace_ops_list_func() it decodes as an inc DWORD PTR [rcx+0x57], which swallows the push %r15 of the prologue. Entered without a return address and one push short, the list function returns through the pt_regs that ftrace_regs_caller saved, here to the saved R14:

BUG: unable to handle page fault for address: ffff888116c29f40 #PF: supervisor instruction fetch in kernel mode RIP: 0010:0xffff888116c29f40 R13: 0000000000000000 R14: ffff888116c29f40 R15: 0000000000000000 Call Trace: ? bpf_trampoline_6442499918+0x1/0x149 ? bpf_lsm_file_open+0x5/0x8 ? bpf_lsm_file_open+0x5/0x8 ? security_file_open+0x19/0x46 ? do_dentry_open+0x16c/0x32a

The list function is installed whenever two ftrace_ops are registered, and a function that two of them trace calls it. A kprobe next to a BPF trampoline is one such case, and with the single ftrace_ops of the BPF trampolines every update_ftrace_direct_mod() is another, as it registers a stub ops for the sites it modifies. Here, detaching one of several BPF LSM programs from a busy hook crashed the tasks that ran the hook during the update.

Bit 0 is free only in the direct trampolines that a dyn_ftrace record can point to, but bit 63 is set in every kernel text address on x86_64. Thus, mark jmp mode by clearing bit 63 instead, so that ftrace_is_jmp() is false for any callback, whatever its alignment, and ftrace_regs_caller sets the bit again where it cleared bit 0 before. A marked address is not canonical, so a return or indirect branch to one that missed ftrace_jmp_get() faults instead of running from a byte before its target.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143381"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:18:31Z",
    "severity": null
  },
  "details": "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\u0027s 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.",
  "id": "GHSA-6hvh-pxxm-3hgr",
  "modified": "2026-12-03T12:31:14Z",
  "published": "2026-12-03T12:31:14Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143381"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/31ac959c915cc7f379d84cf9dadf3664cbcace02"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/feb129f10538dfac80b9ab298fd9455d51f2e4d9"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.