FKIE_CVE-2026-139558

Vulnerability from fkie_nvd - Published: 2026-11-30 14:19 - Updated: 2026-11-30 14:19
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: sched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched() set_tsk_need_resched() tests TIF_NEED_RESCHED, calls __trace_set_need_resched() if the flag is clear, then sets it via set_tsk_thread_flag(). A BPF raw_tp program attached to sched_set_need_resched executes synchronously inside __bpf_trace_run(). On return, __bpf_trace_run() drops the RCU lock with rcu_read_unlock_migrate(), which on the preempt-or-BH-disabled path calls set_need_resched_current() -> set_tsk_need_resched() again. set_tsk_thread_flag() follows the tracepoint call, so every re-entrant frame sees TIF_NEED_RESCHED clear and calls __trace_set_need_resched() again: BUG: TASK stack guard page was hit at ffffc9001224ff98 Oops: stack guard page: 0000 [#1] SMP KASAN PTI RIP: 0010:__bpf_trace_sched_set_need_resched_tp+0x1c/0x190 Call Trace: trace_sched_set_need_resched_tp+0x110/0x130 set_tsk_need_resched include/linux/sched.h:2076 set_need_resched_current include/linux/sched.h:2094 rcu_read_unlock_special+0x43a/0x440 __rcu_read_unlock+0x9e/0x120 rcu_read_unlock_migrate+0xa9/0x240 __bpf_trace_run+0x131/0x180 bpf_trace_run3+0x333/0x430 __bpf_trace_sched_set_need_resched_tp+0x13a/0x190 trace_sched_set_need_resched_tp+0x110/0x130 set_tsk_need_resched include/linux/sched.h:2076 ... __resched_curr() has the same ordering, firing the tracepoint before setting the flag via set_ti_thread_flag() or set_nr_and_not_polling(). Fix it for consistency. Replace the separate test_tsk_thread_flag() + set_tsk_thread_flag() pair in set_tsk_need_resched() with test_and_set_tsk_thread_flag(). In __resched_curr(), move the tracepoint call after the flag is set in each path.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/sched.h",
            "kernel/sched/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "cce90cef0abc44caab7c2c5a6e775424537ffa84",
              "status": "affected",
              "version": "adcc3bfa8806761ac21aa271f78454113ec6936e",
              "versionType": "git"
            },
            {
              "lessThan": "d9079e8eb14188f57d6553a7433ced6875c83711",
              "status": "affected",
              "version": "adcc3bfa8806761ac21aa271f78454113ec6936e",
              "versionType": "git"
            },
            {
              "lessThan": "53bc5c556b82a3ca32b62ba349c4511f91526b9f",
              "status": "affected",
              "version": "adcc3bfa8806761ac21aa271f78454113ec6936e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/sched.h",
            "kernel/sched/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "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\nsched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched()\n\nset_tsk_need_resched() tests TIF_NEED_RESCHED, calls\n__trace_set_need_resched() if the flag is clear, then sets it via\nset_tsk_thread_flag().  A BPF raw_tp program attached to\nsched_set_need_resched executes synchronously inside __bpf_trace_run().\nOn return, __bpf_trace_run() drops the RCU lock with\nrcu_read_unlock_migrate(), which on the preempt-or-BH-disabled path\ncalls set_need_resched_current() -\u003e set_tsk_need_resched() again.\n\nset_tsk_thread_flag() follows the tracepoint call, so every re-entrant\nframe sees TIF_NEED_RESCHED clear and calls __trace_set_need_resched()\nagain:\n\n  BUG: TASK stack guard page was hit at ffffc9001224ff98\n  Oops: stack guard page: 0000 [#1] SMP KASAN PTI\n  RIP: 0010:__bpf_trace_sched_set_need_resched_tp+0x1c/0x190\n  Call Trace:\n   trace_sched_set_need_resched_tp+0x110/0x130\n   set_tsk_need_resched include/linux/sched.h:2076\n   set_need_resched_current include/linux/sched.h:2094\n   rcu_read_unlock_special+0x43a/0x440\n   __rcu_read_unlock+0x9e/0x120\n   rcu_read_unlock_migrate+0xa9/0x240\n   __bpf_trace_run+0x131/0x180\n   bpf_trace_run3+0x333/0x430\n   __bpf_trace_sched_set_need_resched_tp+0x13a/0x190\n   trace_sched_set_need_resched_tp+0x110/0x130\n   set_tsk_need_resched include/linux/sched.h:2076\n   ...\n\n__resched_curr() has the same ordering, firing the tracepoint before\nsetting the flag via set_ti_thread_flag() or set_nr_and_not_polling().\nFix it for consistency.\n\nReplace the separate test_tsk_thread_flag() + set_tsk_thread_flag() pair\nin set_tsk_need_resched() with test_and_set_tsk_thread_flag().  In\n__resched_curr(), move the tracepoint call after the flag is set in\neach path."
    }
  ],
  "id": "CVE-2026-139558",
  "lastModified": "2026-11-30T14:19:36.457",
  "metrics": {},
  "published": "2026-11-30T14:19:36.457",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/53bc5c556b82a3ca32b62ba349c4511f91526b9f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/cce90cef0abc44caab7c2c5a6e775424537ffa84"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/d9079e8eb14188f57d6553a7433ced6875c83711"
    }
  ],
  "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.