CVE-2026-142889: apparmor: remove unconfined_profile() check in inet socket mediation
In the Linux kernel, the following vulnerability has been resolved:
apparmor: remove unconfinedprofile() check in inet socket mediation
When a stacked label is used the early bailout !unconfined(label) fails, and the individual profile components of the label are checked. This can lead to aaprofileafperm() being called which results in
WARNING: security/apparmor/net.c:263 at aaprofileafperm+0x228/0x3b0
on any inet socket using basic socket mediation.
Remove the AABUG(profileunconfined(profile)) check, it is not needed as the code already handles the unconfinedprofile() case. In addition also a comment to indicate that this case is covered.
Affected Software
Event History
Frequently Asked Questions
Which systems are affected in practice?
Systems using AppArmor stacked labels and basic socket mediation for inet sockets are affected. The issue occurs when the stacked label causes individual profile components to be checked.
How can I tell whether this condition has been triggered?
A kernel warning at security/apparmor/net.c:263 in aa_profile_af_perm() is an indicator. The described warning can occur on an inet socket using basic socket mediation.