CVE-2026-23268: apparmor: fix unprivileged local user can do privileged policy management
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-23268 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.11 with commit b7fd2c0340eacbee892425e9007647568b7f2a3c and fixed in 6.12.77 with commit 0fc63dd9170643d15c25681fca792539e23f4640 Issue introduced in 4.11 with commit b7fd2c0340eacbee892425e9007647568b7f2a3c and fixed in 6.18.18 with commit b60b3f7a35c46b2e0ca934f9c988b8fca06d76c6 Issue introduced in 4.11 with commit b7fd2c0340eacbee892425e9007647568b7f2a3c and fixed in 6.19.8 with commit b6a94eeca9c6c8f7c55ad44c62c98324f51ec596 Issue introduced in 4.11 with commit b7fd2c0340eacbee892425e9007647568b7f2a3c and fixed in 7.0-rc4 with commit 6601e13e82841879406bf9f369032656f441a425
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23268
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
security/apparmor/apparmorfs.c
security/apparmor/include/policy.h
security/apparmor/policy.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0fc63dd9170643d15c25681fca792539e23f4640 https://git.kernel.org/stable/c/b60b3f7a35c46b2e0ca934f9c988b8fca06d76c6 https://git.kernel.org/stable/c/b6a94eeca9c6c8f7c55ad44c62c98324f51ec596 https://git.kernel.org/stable/c/6601e13e82841879406bf9f369032656f441a425