CVE-2025-22114
published high CVSS 3.1 · 7.8btrfs: don't clobber ret in btrfs_validate_super()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2a9bb78cfd367fdeff74f15b1e98969912292d9e to < ef6800a2015e706e9852a5ec15263fec9990d012 · 2a9bb78cfd367fdeff74f15b1e98969912292d9e to < 9db9c7dd5b4e1d3205137a094805980082c37716 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.14.2 through 6.14.* (unaffected · semver) · 6.15 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 | Not required | Amazon Linux assessment |
| Ubuntu | plucky | bpftool | Advisory build | 7.6.0+6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-aws-cloud-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | plucky | linux-aws-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-aws-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-azure-cloud-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-azure-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-azure-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-bpf-dev | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-oracle-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1007-raspi | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1008-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-1008-gcp-64k | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-buildinfo-6.14.0-22-generic-64k | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-22 | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-cloud-tools-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-cloud-tools-common | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-gcp-headers-6.14.0-1008 | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-gcp-tools-6.14.0-1008 | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-oracle-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-headers-6.14.0-1007-raspi | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-1008-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-1008-gcp-64k | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-22 | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-headers-6.14.0-22-generic-64k | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-image-6.14.0-1007-raspi | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-image-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1007-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1007-oracle-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1008-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-1008-gcp-64k | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-image-unsigned-6.14.0-22-generic-64k | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-lib-rust-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-libc-dev | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-oracle-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-6.14.0-1007-raspi | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-1008-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-1008-gcp-64k | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-6.14.0-22-generic-64k | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1007-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1007-oracle-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1008-gcp | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-1008-gcp-64k | Advisory build | 6.14.0-1008.8 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-extra-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-ipu6-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-ipu7-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-iwlwifi-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-iwlwifi-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-usbio-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-modules-vision-6.14.0-22-generic | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-oracle | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-oracle-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-oracle-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-perf | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-raspi | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-raspi-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-raspi-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7594-1 |
| Ubuntu | plucky | linux-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-realtime-cloud-tools-6.14.0-1004 | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-realtime-headers-6.14.0-1004 | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-realtime-tools-6.14.0-1004 | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-source-6.14.0 | Advisory build | 6.14.0-22.22 | USN-7594-1 |
| Ubuntu | plucky | linux-tools-6.14.0-1004-realtime | Advisory build | 6.14.0-1004.4 | USN-7594-1 |
| Ubuntu | plucky | linux-tools-6.14.0-1007-aws | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-tools-6.14.0-1007-aws-64k | Advisory build | 6.14.0-1007.7 | USN-7594-3 |
| Ubuntu | plucky | linux-tools-6.14.0-1007-azure | Advisory build | 6.14.0-1007.7 | USN-7594-2 |
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: don't clobber ret in btrfs_validate_super() Commit 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") introduces a call to validate_sys_chunk_array() in btrfs_validate_super(), which clobbers the value of ret set earlier. This has the effect of negating the validity checks done earlier, making it so btrfs could potentially try to mount invalid filesystems.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached by mounting a crafted btrfs image via the mount(2) path (open_ctree → btrfs_validate_mount_super), requiring local system access. Desktop distros brokering loop-device setup and mounting to active local sessions through udisks2/polkit make this a genuine local (not merely physical) path, alongside removable-media automount on kiosks and shared workstations. AC:L - The entire image is crafted deterministically offline — a valid superblock checksum, a legitimate 65+ byte sys_chunk_array so validate_sys_chunk_array() returns 0 and clobbers ret, sectorsize=4096 to satisfy alignment checks, and nodesize=1 MiB to overflow the 16-entry page/folio arrays. There is no race, no memory-layout dependency, and no condition outside the attacker's control. PR:L - On default desktop configurations an unprivileged local user in an active session can create a loop device and mount an arbitrary filesystem image through udisks2/polkit without additional authentication, and containers or fstab "user" entries provide equivalent paths. No real root in the init namespace is needed. UI:N - In the loop-device scenario the attacker performs the mount themselves; no separate victim has to open a file, click a prompt, or take any action. S:U - The corruption occurs in kernel memory during filesystem mount and is confined to the kernel's own security authority — there is no VM, IOMMU, or sandbox boundary crossed. C:H - The bypassed nodesize check yields an extent_buffer whose len vastly exceeds its backing storage, giving out-of-bounds reads of kernel memory, and BTRFS_MAX_ITEM_SIZE/csums_per_leaf underflow to enormous values; the bypassed fsid/metadata_uuid/dev_item.fsid checks additionally let a crafted device impersonate another filesystem. The resulting heap and stack corruption is leverageable for arbitrary kernel memory disclosure. I:H - btrfs_alloc_page_array() writes an attacker-chosen number of struct page pointers past a 16-entry on-stack array and past the extent_buffer slab object, an out-of-bounds write primitive exploitable for control-flow hijack. The same clobber also defeats btrfs_validate_write_super(), permitting corrupt superblocks to be committed to disk. A:H - The overflow reliably panics the kernel — via BUG() from the ASSERT where CONFIG_BTRFS_ASSERT is set, via stack-protector panic, or via oops from the nonsensical geometry (invalid sectorsize_bits shifts, zero/oversized nodesize) propagated throughout the mounted filesystem.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2a9bb78cfd367fdeff74f15b1e98969912292d9e to < ef6800a2015e706e9852a5ec15263fec9990d012 (affected · git)2a9bb78cfd367fdeff74f15b1e98969912292d9e to < 9db9c7dd5b4e1d3205137a094805980082c37716 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.14.2 through 6.14.* (unaffected · semver)6.15 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
btrfs: don't clobber ret in btrfs_validate_super()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ac7309dede8c2df924e4373668eade9c620658c8a513c5ad16bbb67c2bdae7e2
- Ingested
- 23 Sep 2026, 08:40:04 UTC
- Source record
- Official CVE record