7.8high
apparmor: fix unprivileged local user can do privileged policy management
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b7fd2c0340eacbee892425e9007647568b7f2a3c before a407a078cd41b5261b99d822af784bd9f136eb4d, from b7fd2c0340eacbee892425e9007647568b7f2a3c before 4cafce4d6d0a66ec27e3af5637c11901d60189fa, from b7fd2c0340eacbee892425e9007647568b7f2a3c before 33ee909702e047c94aaf41d4eea35626d509802c, from b7fd2c0340eacbee892425e9007647568b7f2a3c before 17debf5586020790b5717f96e5e6a3ca5bb961ab, from b7fd2c0340eacbee892425e9007647568b7f2a3c before 0fc63dd9170643d15c25681fca792539e23f4640, from b7fd2c0340eacbee892425e9007647568b7f2a3c before b60b3f7a35c46b2e0ca934f9c988b8fca06d76c6, from b7fd2c0340eacbee892425e9007647568b7f2a3c before b6a94eeca9c6c8f7c55ad44c62c98324f51ec596, from b7fd2c0340eacbee892425e9007647568b7f2a3c before 6601e13e82841879406bf9f369032656f441a425 and 1 more Not affected: before 4.11, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.169 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.77 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.11 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.169, from 6.2 before 6.6.130, from 6.7 before 6.12.77, from 6.13 before 6.18.18, from 6.19 before 6.19.8, 7.0 | NVD |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: apparmor: corrección de que un usuario local sin privilegios puede realizar gestión de políticas privilegiada Un usuario local sin privilegios puede cargar, reemplazar y eliminar perfiles abriendo las interfaces de apparmorfs, a través de un ataque de adjunto confundido, pasando el descriptor de archivo (fd) abierto a un proceso privilegiado y haciendo que el proceso privilegiado escriba en la interfaz. Esto requiere un objetivo privilegiado que pueda ser manipulado para realizar la escritura en nombre del proceso sin privilegios, pero una vez que se logra dicho acceso, es posible una gestión completa de políticas y todas las posibles implicaciones que esto conlleva: eliminación del confinamiento, DoS del sistema o de las aplicaciones objetivo denegando toda ejecución, eludiendo la restricción del espacio de nombres de usuario sin privilegios, hasta la explotación de errores del kernel para una escalada de privilegios local. La interfaz de gestión de políticas no puede tener sus permisos simplemente cambiados de 0666 a 0600 porque los procesos que no son root necesitan poder cargar políticas en diferentes espacios de nombres de políticas. En su lugar, asegúrese de que la tarea que escribe en la interfaz tenga privilegios que sean un subconjunto de la tarea que abrió la interfaz. Esto ya se hace a través de políticas para procesos confinados, pero los no confinados pueden delegar acceso al descriptor de archivo (fd) abierto, eludiendo la verificación de política habitual.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23268 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-23268 changed 2026-06-17 | Public domain |