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

7.8 · HIGH
Published Dec 8, 2025 EPSS 0.14% (4th pctl)

Overview

CVE-2025-40303 is a high-severity vulnerability. It was published on December 8, 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:

btrfs: ensure no dirty metadata is written back for an fs with errors

[BUG]

During development of a minor feature (make sure all btrfs_bio::end_io()

is called in task context), I noticed a crash in generic/388, where

metadata writes triggered new works after btrfs_stop_all_workers().

It turns out that it can even happen without any code modification, just

using RAID5 for metadata and the same workload from generic/388 is going

to trigger the use-after-free.

[CAUSE]

If btrfs hits an error, the fs is marked as error, no new

transaction is allowed thus metadata is in a frozen state.

But there are some metadata modifications before that error, and they are

still in the btree inode page cache.

Since there will be no real transaction commit, all those dirty folios

are just kept as is in the page cache, and they can not be invalidated

by invalidate_inode_pages2() call inside close_ctree(), because they are

dirty.

And 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-40303?

CVE-2025-40303 is a high-severity vulnerability. It was published on December 8, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-40303?

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

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

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