Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-68359

published critical CVSS 3.1 · 9.8

btrfs: fix double free of qgroup record after failure to add delayed ref head

Published
24 Dec 2025, 10:32:48 UTC
Updated
21 Oct 2026, 12:38:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 82d46660ebd94c269e3f25a77eb563621d8e67e3 · 6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 7617680769e3119dfb3b43a2b7c287ce2242211c · 6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 364685c4c2d9c9f4408d95451bcf42fdeebc3ebb · 6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 725e46298876a2cc1f1c3fb22ba69d29102c3ddf · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.114 through 6.12.* (unaffected · semver) · 6.17.13 through 6.17.* (unaffected · semver) · 6.18.2 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Debian bookworm linux-6.12 Advisory build 6.12.115-2~deb12u1 DLA-4904-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
Debian trixie linux Advisory build 6.12.115-2 DSA-6602-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-16 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 dlm-kmp-defaults390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaults390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20615-1
SUSE / openSUSE SLE-16 kernel-64kbaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-64kb-develaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-64kb-extraaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azureaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azurex86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azure-develaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azure-develx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azure-extraaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azure-extrax86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-azure-vdsox86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-defaultaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-defaultppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-defaults390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-defaultx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-baseaarch64 Advisory build 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-baseppc64le Advisory build 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-basex86_64 Advisory build 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-develaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-develppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-devels390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-develx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-extraaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-extrappc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-extras390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-extrax86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-livepatchppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-livepatchs390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-livepatchx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-default-vdsox86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-develnoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-docsnoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-docs-htmlnoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmallaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmallppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmallx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-vdsox86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-macrosnoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-obs-qaaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-obs-qappc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-obs-qas390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-obs-qax86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-sourcenoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-source-vanillanoarch Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-symsaarch64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-symsppc64le Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-symss390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-symsx86_64 Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE SLE-16 kernel-zfcpdumps390x Advisory build 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-64kbaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-azureaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-azurex86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-defaultaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-rtaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 cluster-md-kmp-rtx86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-64kbaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-azureaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-azurex86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-defaultaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-defaults390x Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-rtaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dlm-kmp-rtx86_64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-allwinneraarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-alteraaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-amazonaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-amdaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-amlogicaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-apmaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-appleaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-armaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-broadcomaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-caviumaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-exynosaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-freescaleaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-hisiliconaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1
SUSE / openSUSE openSUSE-Leap-16.0 dtb-lgaarch64 Advisory build 6.12.0-160000.26.1 OPENSUSE-SU-2026:20287-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

16

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - NFSv4.2 DEALLOCATE and ksmbd FSCTL_SET_ZERO_DATA can remotely invoke hole punching on exported Btrfs files, reaching the vulnerable delayed-reference path. AC:L - An attacker can repeatedly manipulate shared extents, issue concurrent deallocations, and drive delayed-reference processing and memory pressure; both sides of the required race are attacker-influenceable. PR:N - An anonymous writable NFS export or writable ksmbd guest share permits the required operations without credentials or kernel capabilities. UI:N - Once qgroup accounting and the writable export are configured, exploitation requires no action by another user. S:U - The corruption compromises the same host-kernel security authority and does not cross a virtualization or other security-scope boundary. C:H - The double free can corrupt the slab freelist and produce overlapping allocations, enabling kernel-memory disclosure and arbitrary reads. I:H - Freelist corruption and overlapping allocations can provide attacker-controlled kernel writes and control-flow hijacking. A:H - Freelist hardening can immediately trigger a BUG, while unhardened allocators suffer freelist corruption that can crash or panic the kernel repeatedly.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 82d46660ebd94c269e3f25a77eb563621d8e67e3 (affected · git)6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 7617680769e3119dfb3b43a2b7c287ce2242211c (affected · git)6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 364685c4c2d9c9f4408d95451bcf42fdeebc3ebb (affected · git)6ef8fbce010421bf742b12b8f8f2b2d2ff154845 to < 725e46298876a2cc1f1c3fb22ba69d29102c3ddf (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.114 through 6.12.* (unaffected · semver)6.17.13 through 6.17.* (unaffected · semver)6.18.2 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

btrfs: fix double free of qgroup record after failure to add delayed ref head

Provenance

Schema
5.2
Searchable
yes
Content hash
cda928f4ffb4ac2db283bf7fe1e2d19350f92daabb8f34cb9223563e6c1c0554
Ingested
21 Oct 2026, 12:48:59 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected