{"id":"CVE-2025-38382","aliases":["CVE-2025-38382"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix iteration of extrefs during log replay","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix iteration of extrefs during log replay\n\nAt __inode_add_ref() when processing extrefs, if we jump into the next\nlabel we have an undefined value of victim_name.len, since we haven't\ninitialized it before we did the goto. This results in an invalid memory\naccess in the next iteration of the loop since victim_name.len was not\ninitialized to the length of the name of the current extref.\n\nFix this by initializing victim_name.len with the current extref's name\nlength.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix iteration of extrefs during log replay\n\nAt __inode_add_ref() when processing extrefs, if we jump into the next\nlabel we have an undefined value of victim_name.len, since we haven't\ninitialized it before we did the goto. This results in an invalid memory\naccess in the next iteration of the loop since victim_name.len was not\ninitialized to the length of the name of the current extref.\n\nFix this by initializing victim_name.len with the current extref's name\nlength.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: corrección de la iteración de referencias externas durante la reproducción del registro. En __inode_add_ref(), al procesar referencias externas, si saltamos a la siguiente etiqueta, obtenemos un valor indefinido de victim_name.len, ya que no lo inicializamos antes de ejecutar el comando goto. Esto provoca un acceso a memoria no válido en la siguiente iteración del bucle, ya que victim_name.len no se inicializó con la longitud del nombre de la referencia externa actual. Para solucionar esto, inicialice victim_name.len con la longitud del nombre de la referencia externa actual.","source":"nvd"}],"published":"2025-07-25T12:53:23.665Z","modified":"2026-08-05T12:01:29.887Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e","fixed":"539969fc472886a1d63565459514d47e27fef461","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"7ac790dc2ba00499a8d671d4a24de4d4ad27e234","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"aee57a0293dca675637e5504709f9f8fd8e871be","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"54a7081ed168b72a8a2d6ef4ba3a1259705a2926","status":"affected"},{"type":"semver","introduced":"6.1.57","fixed":"6.1.144","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.1.144","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.97","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.37","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.6","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1.57","fixed":"6.1.144"},{"status":"affected","introduced":"6.2","fixed":"6.6.97"},{"status":"affected","introduced":"6.7","fixed":"6.12.37"},{"status":"affected","introduced":"6.13","fixed":"6.15.6"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/539969fc472886a1d63565459514d47e27fef461","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ac790dc2ba00499a8d671d4a24de4d4ad27e234","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aee57a0293dca675637e5504709f9f8fd8e871be","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54a7081ed168b72a8a2d6ef4ba3a1259705a2926","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38382","url":"https://www.cve.org/CVERecord?id=CVE-2025-38382","licence":"CVE Terms of Use","modified":"2026-08-05T12:01:29.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38382","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38382","licence":"Public domain","modified":"2026-07-30T06:23:11.367Z"}],"updatedAt":"2026-11-25T22:59:01.677Z","epss":{"score":0.00206,"percentile":0.11288,"date":"2026-12-01T12:00:22.000Z"}}