{"id":25655,"date":"2026-09-18T04:31:41","date_gmt":"2026-09-17T20:31:41","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90246"},"modified":"2026-09-18T04:31:41","modified_gmt":"2026-09-17T20:31:41","slug":"cve-2026-90246","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90246","title":{"rendered":"CVE-2026-90246 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix integer"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>apparmor: fix integer overflow in verify_tags() bounds check<\/p>\n<p>verify_tags() validates the tagset table unpacked from a policy blob.<br \/>\nFor each set it reads a count and checks that advancing the index by<br \/>\nthat count stays inside sets.table[]:<\/p>\n<p>\tu32 cnt = tags-&gt;sets.table[i];<\/p>\n<p>\tif (i+cnt &gt;= tags-&gt;sets.size) {<\/p>\n<p>i, cnt and sets.size are all u32, so i+cnt is evaluated modulo 2^32.<br \/>\nsets.table[] is filled by unpack_tagsets() with aa_unpack_u32(), so<br \/>\nevery entry is a raw unbounded 32-bit word taken from the policy blob,<br \/>\nand verify_tags() is the function that is supposed to validate it.  A<br \/>\ncount close to U32_MAX makes the sum wrap to a small value, the guard<br \/>\npasses, and the inner loop then walks sets.table[++i] past the end of<br \/>\nthe kcalloc(size, sizeof(u32)) allocation.<\/p>\n<p>Note that sets.size is bounded by 65535, because unpack_tagsets() reads<br \/>\nit with aa_unpack_array() as a u16, so the wrap cannot be reached by<br \/>\ngrowing the table; it is reached purely through the attacker-supplied<br \/>\ncount.<\/p>\n<p>With sets.size = 2 and sets.table = { 0, 0xffffffff }:<\/p>\n<p>  i = 0: cnt = 0, guard 0 + 0 &gt;= 2 is false, inner loop does not run<br \/>\n  i = 1: cnt = 0xffffffff, guard (1 + 0xffffffff) mod 2^32 == 0 &gt;= 2 is<br \/>\n         false, so the guard is bypassed and the inner loop reads<br \/>\n         sets.table[2] &#8212; one element past a two element allocation<\/p>\n<p>The walk continues until an out-of-bounds value happens to be &gt;=<br \/>\nhdrs.size or the access faults, so a crafted policy yields an<br \/>\nout-of-bounds read on the policy load path<br \/>\n(aa_replace_profiles -&gt; aa_unpack -&gt; unpack_policydb -&gt; unpack_tags -&gt;<br \/>\nverify_tags).  unpack_tags() runs before the perms and DFA tables are<br \/>\nunpacked, so no other table needs to be well formed to reach it.<\/p>\n<p>Policy load is gated by aa_may_manage_policy(), which checks<br \/>\nCAP_MAC_ADMIN relative to the subject&#8217;s own user namespace rather than<br \/>\nthe init user namespace, so with the default<br \/>\nunprivileged_userns_apparmor_policy=1 the path is reachable from an<br \/>\nunprivileged task in a matched-level nested namespace, not only by a<br \/>\nglobally privileged one.<\/p>\n<p>Perform the addition in u64 so that it cannot wrap, restoring the<br \/>\nintended i + cnt &lt; sets.size guarantee.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>apparmor: fix integer overflow in verify_tags() bounds check<\/p>\n<p>verify_tags() validates the tagset table unpacked from a policy blob.<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-25655","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/25655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}