CVE-2026-139108

apparmor: fix table_size() integer overflow on 32 bit

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

apparmor: fix table_size() integer overflow on 32 bit

table_size() checks ALIGN(sizeof(struct table_header) + len * el_size, 8)
in size_t, where @len is td_lolen, 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 ZERO_SIZE_PTR (kvzalloc(0))

However, this bug requires CAP_MAC_ADMIN, 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.

Analysis

AI-generated

Technical impact

The flaw is an integer overflow in the Linux kernel’s AppArmor module. table_size() incorrectly computes the memory needed for a policy table when a 32‑bit kernel receives a user‑supplied policy size or len value that is up to 4 GiB. The computed size overflows a size_t, causing a 16‑byte allocation to be exceeded, and the resulting memory overwrite places the table header at a zero pointer, corrupting the kernel heap. No attacker can control the overflow to execute code; the overflow simply triggers a crash.

Affected Systems

Affected systems are 32‑bit Linux kernels that include the AppArmor subsystem and run with CAP_MAC_ADMIN. The vulnerability does not exist on 64‑bit kernels because the relevant structures are 32‑bit, and the overflow cannot occur. No specific kernel versions or vendor patches are listed; the fix is in the kernel source repository.

Risk and Exploitability

The CVSS and EPSS scores are not available, but the mitigation status indicates that the flaw is not currently listed in the CISA KEV catalog. The bug requires administrative capabilities and only crashes the kernel when a superuser loads a malicious policy. Because the overflow does not provide a code‑execution path, the practical risk is limited to a denial‑of‑service event and is unlikely to be exploited in the wild.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel release that includes the AppArmor table_size() integer overflow fix.
  • Restrict CAP_MAC_ADMIN privileges to trusted administrative accounts only.
  • Prefer 64‑bit kernels where the overflow cannot occur.

Generated by OpenCVE AI on November 30, 2026 at 19:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-122
CWE-680
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: apparmor: fix table_size() integer overflow on 32 bit table_size() checks ALIGN(sizeof(struct table_header) + len * el_size, 8) in size_t, where @len is td_lolen, 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 ZERO_SIZE_PTR (kvzalloc(0)) However, this bug requires CAP_MAC_ADMIN, 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.
Title apparmor: fix table_size() integer overflow on 32 bit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-680

    Integer Overflow to Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM