CVE-2025-38382

Source
https://cve.org/CVERecord?id=CVE-2025-38382
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38382.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38382
Downstream
Related
Published
2025-07-25T12:53:23.665Z
Modified
2026-03-20T12:42:50.277558Z
Summary
btrfs: fix iteration of extrefs during log replay
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix iteration of extrefs during log replay

At __inodeaddref() when processing extrefs, if we jump into the next label we have an undefined value of victimname.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 victimname.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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38382.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e
Fixed
539969fc472886a1d63565459514d47e27fef461
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e43eec81c5167b655b72c781b0e75e62a05e415e
Fixed
2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171
Fixed
7ac790dc2ba00499a8d671d4a24de4d4ad27e234
Fixed
aee57a0293dca675637e5504709f9f8fd8e871be
Fixed
54a7081ed168b72a8a2d6ef4ba3a1259705a2926

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38382.json"