{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139177 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139177 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139177 and fix it if it is affected.\n\nWhat it is: CVE-2026-139177 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139177 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139177/ (Markdown: https://insights.sbomify.com/CVE-2026-139177/index.md)","id":"CVE-2026-139177","markdown":"https://insights.sbomify.com/CVE-2026-139177/index.md","name":"CVE-2026-139177","record":{"aliases":["BELL-CVE-2026-139177","DEBIAN-CVE-2026-139177","GHSA-28m6-56j3-4ggq","UBUNTU-CVE-2026-139177"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Reject rq-lock-taking kfuncs in tracing programs\n\nscx_bpf_cpuperf_set() and scx_bpf_cidperf_set() are members of\nscx_kfunc_ids_any, which is registered for BPF_PROG_TYPE_TRACING.\nA tracing program can run in a context which already holds the target\nrq lock, in which case scx_cpuperf_set() attempts to acquire the same\nlock again:\n\n  __schedule()\n    rq_lock(rq);                          /* rq-\u003e__lock is held */\n    trace_sched_switch();\n      BPF tracing program\n        scx_bpf_cpuperf_set(smp_processor_id(), 1024);\n          scx_cpuperf_set();\n            locked_rq = scx_locked_rq(); /* NULL */\n            rq_lock_irqsave(rq, \u0026rf);    /* same lock */\n\nscx_locked_rq() only tracks rq locks held during SCX callback\ninvocations, so it cannot detect an rq lock held by the surrounding\nkernel code.\n\nThe deadlock can be reproduced with two BPF programs. The first is a\nminimal SCX scheduler, which only needs to be registered and enabled:\n\n  SEC(\".struct_ops.link\")\n  struct sched_ext_ops minimal_ops = {\n          .name = \"minimal\",\n  };\n\nThe second is a tracing program attached to tp_btf/sched_switch,\nwhich fires from __schedule() with rq-\u003e__lock already held:\n\n  SEC(\"tp_btf/sched_switch\")\n  int BPF_PROG(on_sched_switch, bool preempt, struct task_struct *prev,\n               struct task_struct *next, unsigned int prev_state)\n  {\n          scx_bpf_cpuperf_set(bpf_get_smp_processor_id(), 1024);\n          return 0;\n  }\n\nWith both programs attached, the next context switch on any CPU\ndeadlocks that CPU. Lockdep reports:\n\n  WARNING: possible recursive locking detected\n  7.3.0-rc7 #3 Not tainted\n  swapper/3/0 is trying to acquire lock:\n   (\u0026rq-\u003e__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x1e/0x30\n\n  but task is already holding lock:\n   (\u0026rq-\u003e__lock){-.-.}-{2:2}, at: __schedule+0xeb/0x1430\n\n   Possible unsafe locking scenario:\n\n         CPU0\n         ----\n    lock(\u0026rq-\u003e__lock);\n    lock(\u0026rq-\u003e__lock);\n\n    *** DEADLOCK ***\n\n  Call Trace:\n   \u003cTASK\u003e\n   print_deadlock_bug.cold+0xc0/0xd0\n   __lock_acquire+0x12fa/0x1b80\n   lock_acquire+0xd1/0x2f0\n   _raw_spin_lock_nested+0x32/0x40\n   raw_spin_rq_lock_nested+0x1e/0x30\n   scx_cpuperf_set+0x1e9/0x310\n   scx_bpf_cpuperf_set+0x9b/0x230\n   bpf_prog_..._on_sched_switch+0x3d/0x41\n   bpf_trace_run4+0x125/0x450\n   __traceiter_sched_switch+0x4b/0x70\n   __schedule+0x94a/0x1430\n   schedule_idle+0x26/0x50\n   cpu_startup_entry+0x2d/0x30\n   start_secondary+0xfc/0x100\n   \u003c/TASK\u003e\n\nThe CPU remains locked up with interrupts disabled.\nscx_bpf_cidperf_set() is similarly affected, as it resolves the CID\nthrough scx_cid_to_cpu() before reaching the same rq-locking path.\n\nThere is no reliable way for these kfuncs to determine whether the\nsurrounding tracing context already holds an rq lock. Reject calls to\nboth kfuncs from tracing programs at verification time, while\npreserving their availability to SCX struct_ops and syscall programs.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"sched_ext: Reject rq-lock-taking kfuncs in tracing programs","id":"CVE-2026-139177","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":3,"n_vendor_status":0,"next":{"headline":"net: lan966x: do not inject uninitialised bytes past skb-\u003elen","id":"CVE-2026-139178"},"nickname":null,"packages":[],"prev":{"headline":"bpf: Fix bpf_timer callback running on a freed map","id":"CVE-2026-139176"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139177/"}