lsm: hold cred_guard_mutex for lsm_set_self_attr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
lsm: hold cred_guard_mutex for lsm_set_self_attr()
Just as proc_pid_attr_write() already does before calling the LSM hook. This only matters for SELinux and AppArmor which check whether the process is being ptraced and if so, whether to allow the transition.
From the CVE record · Linux
The Linux kernel did not hold cred_guard_mutex when lsm_set_self_attr() ran. This matters for SELinux and AppArmor checks that determine whether a ptraced process may make a security transition; a local process setting its own attributes could encounter a race in those checks. The input does not specify an authentication requirement or user interaction.
Engineers running Linux kernels with SELinux or AppArmor should check their installations; affected versions were not specified.