Menu

Star on GitHub · 3.2k

CVE-2025-38059

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: btrfs: avoid NULL pointer dereference if no valid csum tree [BUG] When trying read-only scrub on a btrfs with rescue=idatacsums…

Published Jun 18, 2025CWE-476EPSS 0.19%

Overview

CVE-2025-38059 is a medium-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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: avoid NULL pointer dereference if no valid csum tree

[BUG]

When trying read-only scrub on a btrfs with rescue=idatacsums mount

option, it will crash with the following call trace:

BUG: kernel NULL pointer dereference, address: 0000000000000208

#PF: supervisor read access in kernel mode

#PF: error_code(0x0000) - not-present page

CPU: 1 UID: 0 PID: 835 Comm: btrfs Tainted: G O 6.15.0-rc3-custom+ #236 PREEMPT(full)

Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022

RIP: 0010:btrfs_lookup_csums_bitmap+0x49/0x480 [btrfs]

Call Trace:

<TASK>

scrub_find_fill_first_stripe+0x35b/0x3d0 [btrfs]

scrub_simple_mirror+0x175/0x290 [btrfs]

scrub_stripe+0x5f7/0x6f0 [btrfs]

scrub_chunk+0x9a/0x150 [btrfs]

scrub_enumerate_chunks+0x333/0x660 [btrfs]

btrfs_scrub_dev+0x23e/0x600 [btrfs]

btrfs_ioctl+0x1dcf/0x2f80 [btrfs]

__x64_sys_ioctl+0x97/0xc0

do_

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

CVE-2025-38059 is a medium-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2025-38059?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-38059?

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

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

View all