CVE-2025-38382
btrfs: fix iteration of extrefs during log replay
Mitigation
- Upgrade Linux to 6.1.144 or later.
Who should check
- Anyone running Linux >= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 539969fc472886a1d63565459514d47e27fef461; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < aee57a0293dca675637e5504709f9f8fd8e871be; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926; >= 6.1.57, < 6.1.144
- Anyone running Linux 6.2
Vulnerability facts
- Affected
- Linux >= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 539969fc472886a1d63565459514d47e27fef461; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < aee57a0293dca675637e5504709f9f8fd8e871be; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926; >= 6.1.57, < 6.1.144; Linux 6.2
- Fixed in
- Linux 539969fc472886a1d63565459514d47e27fef461, Linux 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171, Linux 7ac790dc2ba00499a8d671d4a24de4d4ad27e234, Linux 54a7081ed168b72a8a2d6ef4ba3a1259705a2926, Linux 6.1.144
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-908
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 539969fc472886a1d63565459514d47e27fef461; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < aee57a0293dca675637e5504709f9f8fd8e871be; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926; >= 6.1.57, < 6.1.144 | — | cvelist |
| Linux | 6.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38382. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38382.md Affected: Linux >= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 539969fc472886a1d63565459514d47e27fef461; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234; >= e43eec81c5167b655b72c78… Fixed in: Linux 539969fc472886a1d63565459514d47e27fef461, Linux 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171, Linux 7ac790dc2ba00499a8d671d4a24de4d4ad27e234, Linux 54a7081ed168b72a8a2d6ef4ba3a1259705a2926, Linux 6.1.144 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/539969fc472886a1d63565459514d47e27fef461
- https://git.kernel.org/stable/c/2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171
- https://git.kernel.org/stable/c/7ac790dc2ba00499a8d671d4a24de4d4ad27e234
- https://git.kernel.org/stable/c/aee57a0293dca675637e5504709f9f8fd8e871be
- https://git.kernel.org/stable/c/54a7081ed168b72a8a2d6ef4ba3a1259705a2926
FAQ
Is CVE-2025-38382 being exploited?
There is no confirmed exploitation: CVE-2025-38382 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38382?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38382?
Linux >= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 539969fc472886a1d63565459514d47e27fef461; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 7ac790dc2ba00499a8d671d4a24de4d4ad27e234; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < aee57a0293dca675637e5504709f9f8fd8e871be; >= e43eec81c5167b655b72c781b0e75e62a05e415e, < 54a7081ed168b72a8a2d6ef4ba3a1259705a2926; >= 6.1.57, < 6.1.144; Linux 6.2.
Is there a fix for CVE-2025-38382?
Yes. Fixed in Linux 539969fc472886a1d63565459514d47e27fef461, Linux 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171, Linux 7ac790dc2ba00499a8d671d4a24de4d4ad27e234, Linux 54a7081ed168b72a8a2d6ef4ba3a1259705a2926, Linux 6.1.144. Upgrade Linux to 6.1.144 or later.
How do I check if I'm affected by CVE-2025-38382?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.