Medium · published November 26, 2024
In the Linux kernel, the following vulnerability has been resolved:
fs: Fix uninitialized value issue in from_kuid and from_kgid
ocfs2_setattr() uses attr->ia_mode, attr->ia_uid and attr->ia_gid in
a trace point even though ATTR_MODE, ATTR_UID and ATTR_GID aren't set.
Initialize all fields of newattrs to avoid uninitialized variables, by
checking if ATTR_MODE, ATTR_UID, ATTR_GID are initialized, otherwise 0.
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | < 4.19.324 | 4.19.324 |
| linux/linux_kernel | ≥ 4.20, < 5.4.286 | 5.4.286 |
| linux/linux_kernel | ≥ 5.5, < 5.10.230 | 5.10.230 |
| linux/linux_kernel | ≥ 5.11, < 5.15.173 | 5.15.173 |
| linux/linux_kernel | ≥ 5.16, < 6.1.118 | 6.1.118 |
| linux/linux_kernel | ≥ 6.2, < 6.6.62 | 6.6.62 |
| linux/linux_kernel | ≥ 6.7, < 6.11.9 | 6.11.9 |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |