CVE-2025-68359

CRITICAL

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double free of qgroup record after failure to add delayed ref head In the previous code it was possible to incur int...

Affects 1 product across 3 vendors.

CVSS 3.19.8
EPSS0.5%
Percentile43th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
◆ AI Analysis — automated analysis, not human-reviewed

A double free vulnerability in the Linux kernel's btrfs file system could lead to memory corruption, potentially allowing an attacker to execute arbitrary code or cause a system crash.

BSID: BS-2025-GLOBAL-032714-I • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2025-68359?
A double free vulnerability in the Linux kernel's btrfs file system could lead to memory corruption, potentially allowing an attacker to execute arbitrary code or cause a system crash.
What is the CVSS score for CVE-2025-68359?
CVE-2025-68359 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2025-68359 actively exploited?
No confirmed active exploitation of CVE-2025-68359 as of 2026-10-16.
How do I remediate CVE-2025-68359?
Priority: HIGH.
What systems are affected by CVE-2025-68359?
CVE-2025-68359 affects Cannot; Kernel; Linux Linux.
Vulnerability Details
CVE IDCVE-2025-68359
BSIDBS-2025-GLOBAL-032714-I BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2025-12-24
Last Modified2026-10-14
ICS Relevance0%
SourceNVD
Official Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double free of qgroup record after failure to add delayed ref head In the previous code it was possible to incur into a double kfree() scenario when calling add_delayed_ref_head(). This could happen if the record was reported to already exist in the btrfs_qgroup_trace_extent_nolock() call, but then there was an error later on add_delayed_ref_head(). In this case, since add_delayed_ref_head() returned an error, the caller went to free the record. Since add_delayed_ref_head() couldn't set this kfree'd pointer to NULL, then kfree() would have acted on a non-NULL 'record' object which was pointing to memory already freed by the callee. The problem comes from the fact that the responsibility to kfree the object is on both the caller and the callee at the same time. Hence, the fix for this is to shift the ownership of the 'qrecord' object out of the add_delayed_ref_head(). That is, we will never attempt to kfree() the given object inside of this function, and will expect the caller to act on the 'qrecord' object on its own. The only exception where the 'qrecord' object cannot be kfree'd is if it was inserted into the tracing logic, for which we already have the 'qrecord_inserted_ret' boolean to account for this. Hence, the caller has to kfree the object only if add_delayed_ref_head() reports not to have inserted it on the tracing logic. As a side-effect of the above, we must guarantee that 'qrecord_inserted_ret' is properly initialized at the start of the function, not at the end, and then set when an actual insert happens. This way we avoid 'qrecord_inserted_ret' having an invalid value on an early exit. The documentation from the add_delayed_ref_head() has also been updated to reflect on the exact ownership of the 'qrecord' object.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

The vulnerability occurs in the btrfs file system when a double kfree() is triggered during the add_delayed_ref_head() function call, specifically after a failure in btrfs_qgroup_trace_extent_nolock(). This could be exploited by a local user with sufficient privileges to manipulate file system operations.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Cannot — —
Kernel — —
Linux Linux 6.12
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 295 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceMEDIUM
Enriched At2026-05-24
SHA-512 Audit Hashce8815767c476a09d5d45b5290012d802121336b64cc0a2dd604ea78d83c7007573e82c08be39a8e79f5d6cf33e774447b019b3f2a010aab353307a84f574950
Related CVEs affecting Cannot
CVE-2025-43982 9.8 Shenzhen Tuoshi NR500-EA RG500UEAABxCOMSLICv3.4.2731.16.43 devices enable the... CVE-2025-30519 9.8 Dover Fueling Solutions ProGauge MagLink LX4 Devices have default root creden... CVE-2025-40343 9.8 In the Linux kernel, the following vulnerability has been resolved: nvmet-fc... CVE-2025-40350 9.8 In the Linux kernel, the following vulnerability has been resolved: net/mlx5... CVE-2020-36846 9.8 A buffer overflow, as described in CVE-2020-8927, exists in the embedded Brot...
View all Cannot CVEs →

Critical Severity - Know Your Exposure

A CVSS 9.8 vulnerability in your ICS environment cannot wait. BreachSpider maps critical CVEs to your specific assets and tells you what to fix first.

Create a free account →