In the Linux kernel, the following vulnerability has been resolved: apparmor: remove unconfined_profile() 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 aa_profile_af_perm() being called which results in WARNING: security/apparmor/net.c:263 at aa_profile_af_perm+0x228/0x3b0 on any inet socket using basic socket mediation. Remove the AA_BUG(profile_unconfined(profile)) check, it is not needed as the code already handles the unconfined_profile() case. In addition also a comment to indicate that this case is covered.
https://git.kernel.org/stable/c/fd51e06e345d1bdafcfb6d08c6b9eea6e0b66784
https://git.kernel.org/stable/c/1f5428b9f9bfb9dab6828015a5254dcd7c582a01