fs: Fix uninitialized value issue in from_kuid and from_kgid
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 468eedde23d6c9335935773f4f5764267d5a7763 · < 1cb5bfc5bfc651982b6203c224d49b7ddacf28bc| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ocfs2_setattr() trace point uses mode, UID, and GID fields that may be uninitialized when their corresponding attribute flags are not set. This can expose uninitialized values in the trace point; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with OCFS2 should check their versions; affected versions are not specified.