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-40039

8.8 · HIGH
Published Oct 28, 2025 linux CWE-362 EPSS 0.30% (22th pctl)

Overview

CVE-2025-40039 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 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

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

ksmbd: Fix race condition in RPC handle list access

The 'sess->rpc_handle_list' XArray manages RPC handles within a ksmbd

session. Access to this list is intended to be protected by

'sess->rpc_lock' (an rw_semaphore). However, the locking implementation was

flawed, leading to potential race conditions.

In ksmbd_session_rpc_open(), the code incorrectly acquired only a read lock

before calling xa_store() and xa_erase(). Since these operations modify

the XArray structure, a write lock is required to ensure exclusive access

and prevent data corruption from concurrent modifications.

Furthermore, ksmbd_session_rpc_method() accessed the list using xa_load()

without holding any lock at all. This could lead to reading inconsistent

data or a potential use-after-free if an entry is concurrently removed and

the pointer is dereferenced.

Fix these issues by:

1. Using down_write() and up_write() in ksmbd_session_rpc_open()

to

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 >= 5.15.145, < 5.16 Affected

Frequently Asked Questions

What is CVE-2025-40039?

CVE-2025-40039 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 8.8 (HIGH).

How severe is CVE-2025-40039?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

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

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-40039?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-40039 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.