Menu

Star on GitHub · 3.4k

CVE-2025-37931

7.3 · HIGH

In the Linux kernel, the following vulnerability has been resolved: btrfs: adjust subpage bit start based on sectorsize When running machines with 64k page size and a 16k nodesize we started seei…

Published May 20, 2025EPSS 0.22%

Overview

CVE-2025-37931 is a high-severity vulnerability. It was published on May 20, 2025 and has a CVSS 3.1 base score of 7.3 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.3, 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: adjust subpage bit start based on sectorsize

When running machines with 64k page size and a 16k nodesize we started

seeing tree log corruption in production. This turned out to be because

we were not writing out dirty blocks sometimes, so this in fact affects

all metadata writes.

When writing out a subpage EB we scan the subpage bitmap for a dirty

range. If the range isn't dirty we do

bit_start++;

to move onto the next bit. The problem is the bitmap is based on the

number of sectors that an EB has. So in this case, we have a 64k

pagesize, 16k nodesize, but a 4k sectorsize. This means our bitmap is 4

bits for every node. With a 64k page size we end up with 4 nodes per

page.

To make this easier this is how everything looks

[0 16k 32k 48k ] logical address

[0 4 8 12 ] radix tree offset

[ 64k page ] folio

[ 16k eb ][ 16k e

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

CVE-2025-37931 is a high-severity vulnerability. It was published on May 20, 2025 and has a CVSS 3.1 base score of 7.3 (HIGH).

How severe is CVE-2025-37931?

This vulnerability has a CVSS 3.1 base score of 7.3, 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-37931?

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

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-37931 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.

Related HIGH CVEs from 2025

View all
Watch the demo →