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-38382

published high CVSS 3.1 · 7.8

btrfs: fix iteration of extrefs during log replay

Published
25 Jul 2025, 12:53:23 UTC
Updated
05 Aug 2026, 12:01:29 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e to < 539969fc472886a1d63565459514d47e27fef461 · e43eec81c5167b655b72c781b0e75e62a05e415e to < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171 · e43eec81c5167b655b72c781b0e75e62a05e415e to < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234 · e43eec81c5167b655b72c781b0e75e62a05e415e to < aee57a0293dca675637e5504709f9f8fd8e871be · e43eec81c5167b655b72c781b0e75e62a05e415e to < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926 · 6.1.57 to < 6.1.144 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.1.144 through 6.1.* (unaffected · semver) · 6.6.97 through 6.6.* (unaffected · semver) · 6.12.37 through 6.12.* (unaffected · semver) · 6.15.6 through 6.15.* (unaffected · semver) · 6.16 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 evaluationALAS2023-2025-1111 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1130 Fixed Not stated Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.147-1 DSA-5973-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Debian bullseye linux-6.1 Advisory build 6.1.153-1~deb11u1 DLA-4328-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551

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 iteration of extrefs during log replay At __inode_add_ref() when processing extrefs, if we jump into the next label we have an undefined value of victim_name.len, since we haven't initialized it before we did the goto. This results in an invalid memory access in the next iteration of the loop since victim_name.len was not initialized to the length of the name of the current extref. Fix this by initializing victim_name.len with the current extref's name length.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

43

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 vulnerable code is only reached through tree-log replay during `mount(2)` of a btrfs volume (open_ctree → btrfs_replay_log → __add_inode_ref), so the attacker needs local access to present the crafted image via a block device, loop file, or removable media. There is no network-facing path into btrfs log replay. AC:L - Triggering is fully deterministic — the tree-checker's `check_inode_extref()` never validates the embedded `parent_objectid` against the item's hash key, so the attacker simply places a mismatching-parent extref first in the item and sets `super_log_root` so replay runs automatically. No race, timing window, or unpredictable memory layout is involved in reaching the invalid access. PR:L - btrfs does not set `FS_USERNS_MOUNT`, but an unprivileged session user routinely causes attacker-supplied btrfs media to be mounted by udisks2/systemd automounters on desktops, kiosks, and shared workstations, and image-processing services loop-mount untrusted images on behalf of low-privileged callers. No elevated capability of the attacker's own is needed in that scenario. UI:N - Once the crafted volume is attached, the automounter mounts it and log replay runs unconditionally because `btrfs_super_log_root(disk_super) != 0` is checked with no operator prompt. The attacker performs the mount-triggering action themselves; no separate victim action is required. S:U - The out-of-bounds access and the resulting corruption stay within the kernel's own security authority. No hypervisor, IOMMU, or sandbox boundary is crossed. C:H - The uninitialized `victim_name.len` makes `btrfs_get_64()` read past `eb->len`, and with the accessor's `ASSERT(check_setget_bounds(...))` compiled out on production kernels, `get_eb_folio_index()` runs off the end of `eb->folios[]` (index 16 with an attacker-chosen 64K nodesize on 4K pages), turning adjacent slab contents into a `struct folio *` that `folio_address()` dereferences — an unbounded wild kernel read, not a few-byte bounded one. I:H - The out-of-bounds and uninitialized data is interpreted as inode backref metadata and then acted upon: `read_one_inode()` on a garbage `parent_objectid`, `inc_nlink()` on the inode, and `unlink_inode_for_log_replay()` removing directory entries, so kernel memory read out of bounds directly drives modification of filesystem state. Combined with the wild-pointer arithmetic on `eb->folios[]`, this is memory corruption that must be treated as leverageable for control-flow influence. A:H - In the common configurations the bogus folio index yields a NULL or wild `folio_address()` dereference during mount, producing a kernel oops, and with `CONFIG_BTRFS_ASSERT=y` the bounds assertion calls `BUG()` outright. Either outcome is a kernel crash in the mount path.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e to < 539969fc472886a1d63565459514d47e27fef461 (affected · git)e43eec81c5167b655b72c781b0e75e62a05e415e to < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171 (affected · git)e43eec81c5167b655b72c781b0e75e62a05e415e to < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234 (affected · git)e43eec81c5167b655b72c781b0e75e62a05e415e to < aee57a0293dca675637e5504709f9f8fd8e871be (affected · git)e43eec81c5167b655b72c781b0e75e62a05e415e to < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926 (affected · git)6.1.57 to < 6.1.144 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)6.1.144 through 6.1.* (unaffected · semver)6.6.97 through 6.6.* (unaffected · semver)6.12.37 through 6.12.* (unaffected · semver)6.15.6 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

btrfs: fix iteration of extrefs during log replay

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
ff62dc209015e10e621800bd8375601601752097092615fed8caf78d94459986
Ingested
23 Sep 2026, 08:46:47 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