Menu

Star on GitHub · 3.2k

CVE-2025-40007

In the Linux kernel, the following vulnerability has been resolved: netfs: fix reference leak Commit 20d72b00ca81 ("netfs: Fix the request's work item to not require a ref") modified netfs_alloc_…

Published Oct 20, 2025EPSS 0.22%

Overview

CVE-2025-40007 is a known-severity vulnerability. It was published on October 20, 2025.

Technical description

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

netfs: fix reference leak

Commit 20d72b00ca81 ("netfs: Fix the request's work item to not

require a ref") modified netfs_alloc_request() to initialize the

reference counter to 2 instead of 1. The rationale was that the

requet's "work" would release the second reference after completion

(via netfs_{read,write}_collection_worker()). That works most of the

time if all goes well.

However, it leaks this additional reference if the request is released

before the I/O operation has been submitted: the error code path only

decrements the reference counter once and the work item will never be

queued because there will never be a completion.

This has caused outages of our whole server cluster today because

tasks were blocked in netfs_wait_for_outstanding_io(), leading to

deadlocks in Ceph (another bug that I will address soon in another

patch). This was caused by a netfs_pgpriv2_begin_copy_to_cache() call

which failed in f

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. 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.

Frequently asked questions

What is CVE-2025-40007?

CVE-2025-40007 is a known-severity vulnerability. It was published on October 20, 2025.

How severe is CVE-2025-40007?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

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

Check the references section for vendor advisories, patches, and mitigation guidance. 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-40007?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-40007 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.