AZL-117361: CVE-2026-99836 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
apparmor: check accept index + 1 is in bounds
aalookupcondperms() returns perms[index + 1] when an accept entry has ACCEPTFLAGOWNER set and the subject uid does not match the file uid, so such an entry consumes two slots in the perms table. But verifydfaacceptindex() only checks that index is within the perms table, so a policy that sets the owner flag on the last entry is accepted, and the runtime lookup then reads perms[index + 1] one entry past the end of the table.
The perms table is allocated by unpackpermstable() with a u16 size read from the policy blob, so a crafted policy can place the owner flag at index size - 1 to reach the out-of-bounds read.
Check that index + 1 is also in bounds when the owner flag is set.
Affected Software
Event History
Frequently Asked Questions
What must an attacker control to trigger this issue?
An attacker needs to supply or load a crafted AppArmor policy blob whose permissions table has an ACCEPT_FLAG_OWNER entry at its final index. During permission lookup, a UID mismatch between the subject and file causes the kernel to read one entry beyond that table.
Are systems without AppArmor policies using owner-flagged accept entries exposed?
The described out-of-bounds read requires an AppArmor policy containing an accept entry with ACCEPT_FLAG_OWNER set at the last permissions-table slot. The available information does not establish exposure for systems that cannot load crafted policies or do not use such policy content.
How can I determine whether a policy is affected?
Inspect AppArmor policy blobs or their source and compiled representation for ACCEPT_FLAG_OWNER accept entries. A policy is affected by the described condition when that entry occupies the final index of its permissions table, allowing index + 1 to exceed the table bounds on a subject/file UID mismatch.