apparmor: remove fs entries created by a failed policy load

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

apparmor: remove fs entries created by a failed policy load

aa_replace_profiles() creates the raw_data/<rev> directory for the loaddata and the profile directories for new profiles before the last checks that can fail. When one of those checks fails, the fail path releases the ns lock without removing what this load created.

The raw_data directory is named after the current ns revision, and the revision is only bumped by a successful load. The stale directory is only removed once the loaddata's last profile reference is dropped, from a workqueue. Until then, every load fails to create raw_data/<rev> with -EEXIST. If the new profiles are never freed, which is the case when their dents are left behind pinning the proxy, that never happens and no policy can be loaded until reboot.

While still holding the ns lock in the fail path, remove the profile directories of the new profiles and, if this load created it, the raw_data directory.

ProductVersions
Linux Linux5d5182cae40115c03933989473288e54afb39c7c to before 3a7ea2442232e8c0412c2f7991f21446212523ed Affected5d5182cae40115c03933989473288e54afb39c7c to before 655f3ab3bd40582e5bc108f76424ba5522e47a43 Affected5d5182cae40115c03933989473288e54afb39c7c to before 4a8d7dafcb5cb34d8ff5a1849687d679e0f84f30 Affected5d5182cae40115c03933989473288e54afb39c7c to before 1d0514f58613edcd1c143cf371010769a7aacd87 Affected5d5182cae40115c03933989473288e54afb39c7c to before 619e86e1cbba6fd72afa8c338b52f23356f3e8a1 Affected5d5182cae40115c03933989473288e54afb39c7c to before a08cef6d1aead92a85dea5a8b7a826b4355d0303 Affected5d5182cae40115c03933989473288e54afb39c7c to before 1ef534f49b193036fff65a8270b7afd990cb57c3 Affected5d5182cae40115c03933989473288e54afb39c7c to before 6ec46f8f1977d218bf2494ce276152b2d01424af Affected
Linux Linux4.13 Affectedbefore 4.13 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.