Look up another CVE · open CVE-2026-90246 in the interactive tracker
CVE-2026-90246
apparmor: fix integer overflow in verify_tags() bounds check
Published 2026-09-17 (31 days ago) by the Linux kernel CNA. Subsystem security/apparmor. Debian urgency: unimportant.
What to do, per Debian release
Debian's own status for CVE-2026-90246 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | not affected | 6.1.190-1 | Nothing to do. bookworm never shipped the vulnerable code. |
| Debian 13trixie | not affected | 6.12.113-1 | Nothing to do. trixie never shipped the vulnerable code. |
| Debian 14forky | fixed | 7.2.6-1 | Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 7.2.6-1 | Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
verify_tags() validates the tagset table unpacked from a policy blob. For each set it reads a count and checks that advancing the index by that count stays inside sets.table[]: u32 cnt = tags->sets.table[i]; if (i+cnt >= tags->sets.size) { i, cnt and sets.size are all u32, so i+cnt is evaluated modulo 2^32. sets.table[] is filled by unpack_tagsets() with aa_unpack_u32(), so every entry is a raw unbounded 32-bit word taken from the policy blob, and verify_tags() is the function that is supposed to validate it. A count close to U32_MAX makes the sum wrap to a small value, the guard passes, and the inner loop then walks sets.table[++i] past the end of the kcalloc(size, sizeof(u32)) allocation. Note that sets.size is bounded by 65535, because unpack_tagsets() reads it with aa_unpack_array() as a u16, so the wrap cannot be reached by growing the table; it is reached purely through the attacker-supplied count. With sets.size = 2 and sets.table = { 0, 0xffffffff }: i = 0: cnt = 0, guard 0 + 0 >= 2 is false, inner loop does not run i = 1: cnt = 0xffffffff, guard (1 + 0xffffffff) mod 2^32 == 0 >= 2 is false, so the guard is bypassed and the inner loop reads sets.table[2] -- one element past a two element allocation The walk continues until an out-of-bounds value happens to be >= hdrs.size or the access faults, so a crafted policy yields an out-of-bounds read on the policy load path (aa_replace_profiles -> aa_unpack -> unpack_policydb -> unpack_tags -> verify_tags). unpack_tags() runs before the perms and DFA tables are unpacked, so no other table needs to be well formed to reach it. Policy load is gated by aa_may_manage_policy(), which checks CAP_MAC_ADMIN relative to the subject's own user namespace rather than the init user namespace, so with the default unprivileged_userns_apparmor_policy=1 the path is reachable from an unprivileged task in a matched-level nested namespace, not only by a globally privileged one. Perform the addition in u64 so that it cannot wrap, restoring the intended i + cnt < sets.size guarantee.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
security/apparmor/policy_unpack.c
- What this is
- APPARMOR SECURITY MODULEMAINTAINERS section matched on security/apparmor/ · apparmor@lists.ubuntu.com · Supported
Check it on the machine
grep -w CONFIG_SECURITY_APPARMOR /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
Show whether Debian builds this, per release
Debian builds this code. Every release below compiles the affected file into the kernels it ships.
- bookworm, trixie, forky, sidy
- y
- built into the kernel image on every flavour - only a patch removes it
- Build switch
- CONFIG_SECURITY_APPARMOR
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2026-09-17 (31 days ago)source
- CVSS
- 7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.17%, higher than 5.5% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- unimportantsource
- Subsystem
- security/apparmor
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 7.0 | 7.2.6 | ef79a405f839 |
| 7.0 | 7.3 | 465946d3c560 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The overflowing tagset count is a u32 in the policy blob the attacker write()s to /sys/kernel/security/apparmor/.load or .replace (profile_load/profile_replace → policy_update → aa_replace_profiles → aa_unpack → unpack_profile → unpack_pdb → unpack_tags → unpack_tagsets → verify_tags). The malformed word does not arrive in a network protocol message.
- AC:LAttack complexity, low
- unpack_tagsets() stores attacker-chosen u32s from aa_unpack_u32() into sets.table[]; with sets.size=2 and table {0,0xffffffff}, i+cnt wraps modulo 2^32 to 0 so the bounds guard is skipped every time. No race or victim-side state is required.
- PR:LPrivileges required, low
- policy_update() calls aa_may_manage_policy(), which checks CAP_MAC_ADMIN via policy_ns_capable() against subj_cred->user_ns, not init_user_ns. With default unprivileged_userns_apparmor_policy=1, aa_policy_view_capable() permits a uid-0 task whose user_ns->level equals labels_view(label)->level, so unprivileged nested-namespace (container) root can load the crafted blob.
- UI:NUser interaction, none
- The attacker supplies the packed profile with a tags.sets count of 0xffffffff through their own write to .load/.replace; no other user must mount a volume, open a file, or load policy on their behalf.
- S:UScope, unchanged
- The OOB read is of the kernel slab object allocated by kcalloc() in unpack_tagsets() while unpacking policy in the host kernel; it does not cross a VM, IOMMU, or other security-authority boundary.
- C:HConfidentiality impact, high
- After the wrap, verify_tags() executes tags->sets.table[++i] for cnt near U32_MAX, walking u32s past the kcalloc(size,sizeof(u32)) allocation until a value is >= hdrs.size or the access faults. That over-read is not limited to a few bytes.
- I:NIntegrity impact, none
- The overflowing loop only reads sets.table[++i] and compares it to hdrs.size; it performs no store through the overflowing index, and aa_unpack() never installs the profile if verify_tags() returns false, oopses, or spins.
- A:HAvailability impact, high
- cnt near U32_MAX causes ~2^32 OOB reads from the sets.table slab object, which oopses when the walk hits unmapped pages; if no OOB word is >= hdrs.size, i wraps and the outer for (i < sets.size) loop in verify_tags() never terminates, hanging the policy-load task.