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.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 6.1.57 | 6.1.144 |
| linux / linux_kernel | 6.2 | 6.6.97 |
| linux / linux_kernel | 6.7 | 6.12.37 |
| linux / linux_kernel | 6.13 | 6.15.6 |
| linux / linux_kernel | 6.16-rc1 | 6.16-rc1.x |
| linux / linux_kernel | 6.16-rc2 | 6.16-rc2.x |
| linux / linux_kernel | 6.16-rc3 | 6.16-rc3.x |
| linux / linux_kernel | 6.16-rc4 | 6.16-rc4.x |
| debian / debian_linux | 11.0 | 11.0.x |