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 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.
[
{
"deprecated": false,
"id": "CVE-2025-38382-1d2538c7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@539969fc472886a1d63565459514d47e27fef461",
"signature_version": "v1",
"target": {
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97839142000092708686418402606190685295",
"239359335038048719090106665502007296318",
"301342049198555224650986509842978436860",
"170739274321669448806633500480961346605",
"153366285489433734147881222656959064855",
"209917606109212435437775539035229759605",
"92256024664935876960913538303896158974",
"231697365403224895261626283952658693543",
"224026571442606522496233406550259380868"
]
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-1e0e6a82",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aee57a0293dca675637e5504709f9f8fd8e871be",
"signature_version": "v1",
"target": {
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97839142000092708686418402606190685295",
"239359335038048719090106665502007296318",
"301342049198555224650986509842978436860",
"170739274321669448806633500480961346605",
"153366285489433734147881222656959064855",
"209917606109212435437775539035229759605",
"92256024664935876960913538303896158974",
"231697365403224895261626283952658693543",
"224026571442606522496233406550259380868"
]
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-4670395a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171",
"signature_version": "v1",
"target": {
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97839142000092708686418402606190685295",
"239359335038048719090106665502007296318",
"301342049198555224650986509842978436860",
"170739274321669448806633500480961346605",
"153366285489433734147881222656959064855",
"209917606109212435437775539035229759605",
"92256024664935876960913538303896158974",
"231697365403224895261626283952658693543",
"224026571442606522496233406550259380868"
]
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-7ac40661",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ac790dc2ba00499a8d671d4a24de4d4ad27e234",
"signature_version": "v1",
"target": {
"function": "__add_inode_ref",
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "222869568993725145470533584215879468067",
"length": 2937.0
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-98e5c657",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ac790dc2ba00499a8d671d4a24de4d4ad27e234",
"signature_version": "v1",
"target": {
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97839142000092708686418402606190685295",
"239359335038048719090106665502007296318",
"301342049198555224650986509842978436860",
"170739274321669448806633500480961346605",
"153366285489433734147881222656959064855",
"209917606109212435437775539035229759605",
"92256024664935876960913538303896158974",
"231697365403224895261626283952658693543",
"224026571442606522496233406550259380868"
]
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-bd6328da",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54a7081ed168b72a8a2d6ef4ba3a1259705a2926",
"signature_version": "v1",
"target": {
"function": "__add_inode_ref",
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "332690249484569596348508770370340075174",
"length": 2939.0
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-c084c738",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54a7081ed168b72a8a2d6ef4ba3a1259705a2926",
"signature_version": "v1",
"target": {
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97839142000092708686418402606190685295",
"239359335038048719090106665502007296318",
"301342049198555224650986509842978436860",
"170739274321669448806633500480961346605",
"153366285489433734147881222656959064855",
"209917606109212435437775539035229759605",
"92256024664935876960913538303896158974",
"231697365403224895261626283952658693543",
"224026571442606522496233406550259380868"
]
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-d90a64d0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171",
"signature_version": "v1",
"target": {
"function": "__add_inode_ref",
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "222869568993725145470533584215879468067",
"length": 2937.0
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-de984b8c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@539969fc472886a1d63565459514d47e27fef461",
"signature_version": "v1",
"target": {
"function": "__add_inode_ref",
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "222869568993725145470533584215879468067",
"length": 2937.0
}
},
{
"deprecated": false,
"id": "CVE-2025-38382-ef389738",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aee57a0293dca675637e5504709f9f8fd8e871be",
"signature_version": "v1",
"target": {
"function": "__add_inode_ref",
"file": "fs/btrfs/tree-log.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "332690249484569596348508770370340075174",
"length": 2939.0
}
}
]