FKIE_CVE-2026-143367

Vulnerability from fkie_nvd - Published: 2026-12-03 10:18 - Updated: 2026-12-03 10:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Fix bpf_throw() in a prog with a private stack When the main prog has a private stack and the prog calls bpf_throw(), it returns to the kernel with wrong values in r12, rbx, r13, r14 and r15. The kernel crashes soon after that, for example: BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:__bpf_prog_test_run_raw_tp+0x125/0x380 The main prog of a prog that can throw saves these five registers at its entry. bpf_throw() walks the stack to the frame of the main prog and gives the stack pointer of that frame to the exception callback, which pops the registers from there. In a function with a private stack r9 is the frame pointer, and the JIT emits 'push r9' in front of every call and 'pop r9' after it. So the stack pointer that bpf_throw() finds is 8 bytes too low: r12 rbx r13 r14 r15 <- the callback has to pop from here r9 <- rsp of the main prog at the call r15 gets the address of the private stack and every other register gets the value of its neighbour. This happens in tracepoint, raw_tp, perf_event and tracing progs, except iterators, and in struct_ops progs that ask for a private stack, when the main prog has more than 48 bytes of stack. The throw can be in the main prog or in a subprog. aux->stack_arg_sp_adjust already moves the stack pointer from the outgoing stack arguments up to the saved registers. Add the 8 bytes of r9 to it when the main prog has a private stack. A constant is enough. Calls of helpers, kfuncs and subprogs and callx all have the push. A prog with tail calls has no private stack, and a callback cannot throw. Only the frame of the main prog matters: the frames of subprogs are dropped, with or without a private stack. On x86-64 a function with stack arguments has no private stack, hence only one of the two parts is not zero. The JITed code does not change.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/net/bpf_jit_comp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "66b2255211e67e4c7a4fc625566f90763fb6b966",
              "status": "affected",
              "version": "7d1cd70d4b16ff0216a5f6c2ae7d0fa9fa978c07",
              "versionType": "git"
            },
            {
              "lessThan": "91068ed2d3ee0713d7566c7977b995f8a0936bea",
              "status": "affected",
              "version": "7d1cd70d4b16ff0216a5f6c2ae7d0fa9fa978c07",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/net/bpf_jit_comp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "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"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, x86: Fix bpf_throw() in a prog with a private stack\n\nWhen the main prog has a private stack and the prog calls bpf_throw(), it\nreturns to the kernel with wrong values in r12, rbx, r13, r14 and r15. The\nkernel crashes soon after that, for example:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000010\n  RIP: 0010:__bpf_prog_test_run_raw_tp+0x125/0x380\n\nThe main prog of a prog that can throw saves these five registers at its\nentry. bpf_throw() walks the stack to the frame of the main prog and\ngives the stack pointer of that frame to the exception callback, which\npops the registers from there. In a function with a private stack r9 is\nthe frame pointer, and the JIT emits \u0027push r9\u0027 in front of every call\nand \u0027pop r9\u0027 after it. So the stack pointer that bpf_throw() finds is\n8 bytes too low:\n\n  r12\n  rbx\n  r13\n  r14\n  r15  \u003c- the callback has to pop from here\n  r9   \u003c- rsp of the main prog at the call\n\nr15 gets the address of the private stack and every other register gets\nthe value of its neighbour.\n\nThis happens in tracepoint, raw_tp, perf_event and tracing progs, except\niterators, and in struct_ops progs that ask for a private stack, when\nthe main prog has more than 48 bytes of stack. The throw can be in the\nmain prog or in a subprog.\n\naux-\u003estack_arg_sp_adjust already moves the stack pointer from the\noutgoing stack arguments up to the saved registers. Add the 8 bytes of\nr9 to it when the main prog has a private stack.\n\nA constant is enough. Calls of helpers, kfuncs and subprogs and callx\nall have the push. A prog with tail calls has no private stack, and a\ncallback cannot throw. Only the frame of the main prog matters: the\nframes of subprogs are dropped, with or without a private stack. On\nx86-64 a function with stack arguments has no private stack, hence only\none of the two parts is not zero.\n\nThe JITed code does not change."
    }
  ],
  "id": "CVE-2026-143367",
  "lastModified": "2026-12-03T10:18:26.327",
  "metrics": {},
  "published": "2026-12-03T10:18:26.327",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/66b2255211e67e4c7a4fc625566f90763fb6b966"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/91068ed2d3ee0713d7566c7977b995f8a0936bea"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



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.