GHSA-8X7F-VFX6-GQQV

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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

bpf: Validate stack arg reads against caller state

check_stack_arg_read() bounds a stack argument index with the callee's BTF-derived argument count, then uses the index in the caller's stack_arg_regs[] array. The array's actual logical length is recorded in caller->out_stack_arg_cnt, so the bound and indexed object can diverge.

A crafted BPF_PROG_LOAD can use an argument mismatch to mark a static subprogram's BTF information unreliable. Later calls return from btf_check_subprog_call() before check_outgoing_stack_args(), while check_func_call() continues the static call on -EINVAL. The callee can then read a slot that the caller never allocated or initialized. The earlier commit 4286f5deee14 ("bpf: Validate outgoing stack args when btf_prepare_func_args fails") closed this hole for the first call, but not for later calls after the subprogram has been marked unreliable.

Callbacks have a related problem. The verifier can make incoming stack arguments readable from outgoing slots at the helper call site. However, helpers and kfuncs invoke callbacks through an ABI that passes at most five arguments, so the runtime callback receives no stack arguments. Async callback verification can also reach check_stack_arg_read() without a caller frame.

On x86-64, KASAN reports the direct-call out-of-bounds copy as:

BUG: KASAN: slab-out-of-bounds in check_load_mem+0xb51/0xc60 Read of size 80 at addr ffff8881009af550 by task poc/131 Call Trace: check_stack_arg_read at kernel/bpf/verifier.c:4234 (inlined by) check_load_mem at kernel/bpf/verifier.c:6645 do_check_common at kernel/bpf/verifier.c:19568 bpf_check at kernel/bpf/verifier.c:21318 bpf_prog_load at kernel/bpf/syscall.c:3134

Reject callback subprograms with incoming stack arguments before their state is pushed. For direct calls, retrieve the slot with bpf_get_spilled_stack_arg(), which validates the index against the caller's out_stack_arg_cnt and rejects uninitialized slots before copying the register state.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139202"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:39Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Validate stack arg reads against caller state\n\ncheck_stack_arg_read() bounds a stack argument index with the callee\u0027s\nBTF-derived argument count, then uses the index in the caller\u0027s\nstack_arg_regs[] array. The array\u0027s actual logical length is recorded in\ncaller-\u003eout_stack_arg_cnt, so the bound and indexed object can diverge.\n\nA crafted BPF_PROG_LOAD can use an argument mismatch to mark a static\nsubprogram\u0027s BTF information unreliable. Later calls return from\nbtf_check_subprog_call() before check_outgoing_stack_args(), while\ncheck_func_call() continues the static call on -EINVAL. The callee can\nthen read a slot that the caller never allocated or initialized. The\nearlier commit 4286f5deee14 (\"bpf: Validate outgoing stack args when\nbtf_prepare_func_args fails\") closed this hole for the first call, but\nnot for later calls after the subprogram has been marked unreliable.\n\nCallbacks have a related problem. The verifier can make incoming stack\narguments readable from outgoing slots at the helper call site. However,\nhelpers and kfuncs invoke callbacks through an ABI that passes at most five\narguments, so the runtime callback receives no stack arguments. Async\ncallback verification can also reach check_stack_arg_read() without a\ncaller frame.\n\nOn x86-64, KASAN reports the direct-call out-of-bounds copy as:\n\n  BUG: KASAN: slab-out-of-bounds in check_load_mem+0xb51/0xc60\n  Read of size 80 at addr ffff8881009af550 by task poc/131\n  Call Trace:\n   check_stack_arg_read at kernel/bpf/verifier.c:4234\n   (inlined by) check_load_mem at kernel/bpf/verifier.c:6645\n   do_check_common at kernel/bpf/verifier.c:19568\n   bpf_check at kernel/bpf/verifier.c:21318\n   bpf_prog_load at kernel/bpf/syscall.c:3134\n\nReject callback subprograms with incoming stack arguments before their\nstate is pushed. For direct calls, retrieve the slot with\nbpf_get_spilled_stack_arg(), which validates the index against the caller\u0027s\nout_stack_arg_cnt and rejects uninitialized slots before copying the\nregister state.",
  "id": "GHSA-8x7f-vfx6-gqqv",
  "modified": "2026-11-30T15:32:22Z",
  "published": "2026-11-30T15:32:22Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139202"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2baf358407edb426fc3c6d90e1df9ee9f88f8e07"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/90aedf8854c05713c02b381c41c59081b5cedbcc"
    }
  ],
  "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.