Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix unprivileged local user can do privileged policy management
An unprivileged local user can load, replace, and remove profiles by opening the apparmorfs interfaces, via a confused deputy attack, by passing the opened fd to a privileged process, and getting the privileged process to write to the interface.
This does require a privileged target that can be manipulated to do the write for the unprivileged process, but once such access is achieved full policy management is possible and all the possible implications that implies: removing confinement, DoS of system or target applications by denying all execution, by-passing the unprivileged user namespace restriction, to exploiting kernel bugs for a local privilege escalation.
The policy management interface can not have its permissions simply changed from 0666 to 0600 because non-root processes need to be able to load policy to different policy namespaces.
Instead ensure the task writing the interface has privileges that are a subset of the task that opened the interface. This is already done via policy for confined processes, but unconfined can delegate access to the opened fd, by-passing the usual policy check.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Debian 10 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- linux @ 5.4.0 (+10 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| Debian 11 | Released |
37 kernels
|
| Debian 11 cloud | Released |
17 kernels
|
| Debian 12 | Released |
34 kernels
|
| Debian 13 | Ready For Release | — |
| Ubuntu 16.04 AWS HWE ESM | Planned | — |
| Ubuntu 16.04 GCP ESM | Planned | — |
| Ubuntu 16.04 HWE ESM | Planned | — |
| Ubuntu 18.04 | Planned | — |
| Ubuntu 18.04 AWS | Planned | — |
| Ubuntu 18.04 Azure | Planned | — |
| Ubuntu 18.04 GCP | Planned | — |
| Ubuntu 20.04 | Released |
32 kernels
|
| Ubuntu 20.04 AWS | Released |
31 kernels
|
| Ubuntu 20.04 Azure | Released |
30 kernels
|
| Ubuntu 24.04 | Released |
39 kernels
|