{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-40151 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-40151 is a high-severity vulnerability in Linux, published on 12 Nov 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40151 and fix it if it is affected.\n\nWhat it is: CVE-2025-40151 is a high-severity vulnerability in Linux, published on 12 Nov 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-40151 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-2025-40151/ (Markdown: https://insights.sbomify.com/CVE-2025-40151/index.md)","id":"CVE-2025-40151","markdown":"https://insights.sbomify.com/CVE-2025-40151/index.md","name":"CVE-2025-40151","record":{"aliases":["BELL-CVE-2025-40151","GHSA-3fjx-g9c9-m3qf","UBUNTU-CVE-2025-40151"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel","requires_auth":"low_privilege","summary":"A null pointer dereference in the LoongArch BPF trampoline implementation causes a kernel oops and system crash when handling struct arguments.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Linux","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: BPF: No support of struct argument in trampoline programs\n\nThe current implementation does not support struct argument. This causes\na oops when running bpf selftest:\n\n  $ ./test_progs -a tracing_struct\n  Oops[#1]:\n  CPU -1 Unable to handle kernel paging request at virtual address 0000000000000018, era == 9000000085bef268, ra == 90000000844f3938\n  rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:\n  rcu:     1-...0: (19 ticks this GP) idle=1094/1/0x4000000000000000 softirq=1380/1382 fqs=801\n  rcu:     (detected by 0, t=5252 jiffies, g=1197, q=52 ncpus=4)\n  Sending NMI from CPU 0 to CPUs 1:\n  rcu: rcu_preempt kthread starved for 2495 jiffies! g1197 f0x0 RCU_GP_DOING_FQS(6) -\u003estate=0x0 -\u003ecpu=2\n  rcu:     Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.\n  rcu: RCU grace-period kthread stack dump:\n  task:rcu_preempt     state:I stack:0     pid:15    tgid:15    ppid:2      task_flags:0x208040 flags:0x00000800\n  Stack : 9000000100423e80 0000000000000402 0000000000000010 90000001003b0680\n          9000000085d88000 0000000000000000 0000000000000040 9000000087159350\n          9000000085c2b9b0 0000000000000001 900000008704a000 0000000000000005\n          00000000ffff355b 00000000ffff355b 0000000000000000 0000000000000004\n          9000000085d90510 0000000000000000 0000000000000002 7b5d998f8281e86e\n          00000000ffff355c 7b5d998f8281e86e 000000000000003f 9000000087159350\n          900000008715bf98 0000000000000005 9000000087036000 900000008704a000\n          9000000100407c98 90000001003aff80 900000008715c4c0 9000000085c2b9b0\n          00000000ffff355b 9000000085c33d3c 00000000000000b4 0000000000000000\n          9000000007002150 00000000ffff355b 9000000084615480 0000000007000002\n          ...\n  Call Trace:\n  [\u003c9000000085c2a868\u003e] __schedule+0x410/0x1520\n  [\u003c9000000085c2b9ac\u003e] schedule+0x34/0x190\n  [\u003c9000000085c33d38\u003e] schedule_timeout+0x98/0x140\n  [\u003c90000000845e9120\u003e] rcu_gp_fqs_loop+0x5f8/0x868\n  [\u003c90000000845ed538\u003e] rcu_gp_kthread+0x260/0x2e0\n  [\u003c900000008454e8a4\u003e] kthread+0x144/0x238\n  [\u003c9000000085c26b60\u003e] ret_from_kernel_thread+0x28/0xc8\n  [\u003c90000000844f20e4\u003e] ret_from_kernel_thread_asm+0xc/0x88\n\n  rcu: Stack dump where RCU GP kthread last ran:\n  Sending NMI from CPU 0 to CPUs 2:\n  NMI backtrace for cpu 2 skipped: idling at idle_exit+0x0/0x4\n\nReject it for now.","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":"LoongArch: BPF: No support of struct argument in trampoline programs","id":"CVE-2025-40151","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"null_dereference","year":"2025"},"n_packages":0,"n_references":2,"next":{"headline":"drm/msm: Fix bootup splat with separate_gpu_drm modparam","id":"CVE-2025-40152"},"packages":[],"prev":{"headline":"f2fs: fix to avoid migrating empty section","id":"CVE-2025-40150"},"products":["Linux"],"published":"2025-11-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-08-05","vendors":["Linux"]},"summary":"A null pointer dereference in the LoongArch BPF trampoline implementation causes a kernel oops and system crash when handling struct arguments.","url":"https://insights.sbomify.com/CVE-2025-40151/"}