Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-40040

7.8 · HIGH
Published Oct 28, 2025 linux EPSS 0.35% (28th pctl)

Overview

CVE-2025-40040 is a high-severity vulnerability affecting linux linux_kernel. It was published on October 28, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

mm/ksm: fix flag-dropping behavior in ksm_madvise

syzkaller discovered the following crash: (kernel BUG)

[ 44.607039] ------------[ cut here ]------------

[ 44.607422] kernel BUG at mm/userfaultfd.c:2067!

[ 44.608148] Oops: invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN NOPTI

[ 44.608814] CPU: 1 UID: 0 PID: 2475 Comm: reproducer Not tainted 6.16.0-rc6 #1 PREEMPT(none)

[ 44.609635] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014

[ 44.610695] RIP: 0010:userfaultfd_release_all+0x3a8/0x460

<snip other registers, drop unreliable trace>

[ 44.617726] Call Trace:

[ 44.617926] <TASK>

[ 44.619284] userfaultfd_release+0xef/0x1b0

[ 44.620976] __fput+0x3f9/0xb60

[ 44.621240] fput_close_sync+0x110/0x210

[ 44.622222] __x64_sys_close+0x8f/0x120

[ 44.622530] do_syscall_64+0x5b/0x2f0

[ 44.622840] entry_SYSCALL_64_after_hwfram

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.6, < 5.4.302 Affected

Frequently Asked Questions

What is CVE-2025-40040?

CVE-2025-40040 is a high-severity vulnerability affecting linux linux_kernel. It was published on October 28, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-40040?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-40040?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-40040?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-40040 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.