AZL-116884: CVE-2026-139108 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix tablesize() integer overflow on 32 bit
tablesize() checks ALIGN(sizeof(struct tableheader) + len elsize, 8) in sizet, where @len is tdlolen, a u32 user-provided value from the policy blob. On 32 bit kernels both operations can overflow.
Triggering this bug allows to: - overflow a 16 byte allocation with up to 4GiB of policy data - store the table header at address ZEROSIZEPTR (kvzalloc(0))
However, this bug requires CAPMACADMIN, only affects 32 bit kernels, and the copy runs until the machine is destroyed, so it gives no controllable primitive and is therefore not a security issue.
Compute the size with the checked helpers and return 0 when the result is not representable, so the callers can reject the table. A valid table is never 0 bytes, the header alone is 12.
64 bit kernels cannot overflow (these structs are 32 bit), and are hence not affected.
Affected Software
Event History
Frequently Asked Questions
Which systems are affected by this issue?
Only 32-bit Linux kernels are affected. 64-bit kernels cannot overflow because the relevant structure fields are 32-bit values.
What access does an attacker need to trigger the overflow?
Triggering it requires CAP_MAC_ADMIN and a user-provided AppArmor policy blob. This is a privileged capability, so unprivileged users cannot directly exploit the condition.
How can I determine whether a system is exposed?
Check whether the system is running a 32-bit kernel and whether an actor can load AppArmor policy data with CAP_MAC_ADMIN. Systems running a 64-bit kernel are not affected.
What is the practical impact if the vulnerable code is triggered?
The overflow can lead to a 16-byte allocation being overrun with up to 4 GiB of policy data or place a table header at ZERO_SIZE_PTR. The copy continues until the machine is destroyed, and the description states that this does not provide a controllable exploitation primitive.