CVE-2025-38382
JSON

7.8high

btrfs: fix iteration of extrefs during log replay

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e before 539969fc472886a1d63565459514d47e27fef461, from e43eec81c5167b655b72c781b0e75e62a05e415e before 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171, from e43eec81c5167b655b72c781b0e75e62a05e415e before 7ac790dc2ba00499a8d671d4a24de4d4ad27e234, from e43eec81c5167b655b72c781b0e75e62a05e415e before aee57a0293dca675637e5504709f9f8fd8e871be, from e43eec81c5167b655b72c781b0e75e62a05e415e before 54a7081ed168b72a8a2d6ef4ba3a1259705a2926, from 6.1.57 before 6.1.144, 6.2
Not affected: before 6.2, from 6.1.144 up to 6.1.*, from 6.6.97 up to 6.6.*, from 6.12.37 up to 6.12.*, from 6.15.6 up to 6.15.*, from 6.16 up to *
CVE List
linux linux_kernelfrom 6.1.57 before 6.1.144, from 6.2 before 6.6.97, from 6.7 before 6.12.37, from 6.13 before 6.15.6, 6.16NVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38382 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-38382 changed 2026-07-30Public domain