{"id":25588,"date":"2026-09-18T04:31:35","date_gmt":"2026-09-17T20:31:35","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90179"},"modified":"2026-09-18T04:31:35","modified_gmt":"2026-09-17T20:31:35","slug":"cve-2026-90179","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90179","title":{"rendered":"CVE-2026-90179 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix deadloc"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>apparmor: fix deadlock in complain-mode change_hat<\/p>\n<p>The use of change_hat when in complain mode can cause a deadlock<br \/>\nwhen the hat doesn&#8217;t exist and a new learning profile is created<br \/>\nfor the missing profile. This is because change_hat() has taken<br \/>\nthe lock to search the hat list and creating the new learning<br \/>\nprofile needs to take the lock to add it to the list.<\/p>\n<p>From the bug report:<\/p>\n<p>Originally found in 7.0.0 in LTS ubuntu 26.04 with pam_apparmor + su<br \/>\nin complain mode set to change hats.  Then verified in newest<br \/>\navailable vanilla kernel I&#8217;ve compiled to see if still present:<\/p>\n<p>7.2-rc7 vanilla -&gt; affected<\/p>\n<p>checked also some other kernels:<br \/>\n6.18.44 vanilla -&gt; affected<br \/>\n6.12.95 with debian patches -&gt; unaffected<\/p>\n<p>On systems without bug (for example 6.12.95 debian) it just prints:<\/p>\n<p>aa_change_hat rc=0<\/p>\n<p>On systems with bug, the executable always hangs, prints nothing and<br \/>\nbecomes unkillable.  (And once stuck this way, it will cause any<br \/>\nfurther hat changes to also cause the changing process to get stuck)<\/p>\n<p>Then in syslog you can find hint about cause:<\/p>\n<p>kernel: INFO: task hat:3409 blocked for more than 483 seconds.<br \/>\nkernel:       Not tainted 7.2.0-rc7 #1<br \/>\nkernel: &#8220;echo 0 &gt; \/proc\/sys\/kernel\/hung_task_timeout_secs&#8221; disables this message.<br \/>\nkernel: task:hat             state:D stack:0     pid:3409  tgid:3409  ppid:2605   task_flags:0x400000 flags:0x00080800<br \/>\nkernel: Call Trace:<br \/>\nkernel:<br \/>\nkernel:  __schedule+0x48f\/0xfe0<br \/>\nkernel:  schedule+0x27\/0xa0<br \/>\nkernel:  schedule_preempt_disabled+0x15\/0x30<br \/>\nkernel:  __mutex_lock.constprop.0+0x569\/0xa10<br \/>\nkernel:  aa_new_learning_profile+0x15f\/0x210<br \/>\nkernel:  build_change_hat+0x19f\/0x3b0<br \/>\nkernel:  change_hat.isra.0+0x5dd\/0xd60<br \/>\nkernel:  aa_change_hat+0x2f3\/0x710<br \/>\nkernel:  aa_setprocattr_changehat+0x121\/0x1f0<br \/>\nkernel:  do_setattr+0x28c\/0x340<br \/>\nkernel:  apparmor_setselfattr+0x20\/0x50<br \/>\nkernel:  security_setselfattr+0xf6\/0x110<br \/>\nkernel:  __x64_sys_lsm_set_self_attr+0x53\/0x90<br \/>\nkernel:  do_syscall_64+0xdd\/0x5e0<br \/>\nkernel:  ? __mod_memcg_lruvec_state+0xfd\/0x260<br \/>\nkernel:  ? lruvec_stat_mod_folio+0x8d\/0xd0<br \/>\nkernel:  ? __folio_mod_stat+0x2d\/0x90<br \/>\nkernel:  ? map_anon_folio_pte_nopf+0xd1\/0x1f0<br \/>\nkernel:  ? do_anonymous_page+0x184\/0xa10<br \/>\nkernel:  ? __handle_mm_fault+0x805\/0x870<br \/>\nkernel:  ? count_memcg_events+0xef\/0x230<br \/>\nkernel:  ? handle_mm_fault+0x1f0\/0x2f0<br \/>\nkernel:  ? do_user_addr_fault+0x2bb\/0x7b0<br \/>\nkernel:  ? do_syscall_64+0x94\/0x5e0<br \/>\nkernel:  ? exc_page_fault+0x75\/0x160<br \/>\nkernel:  entry_SYSCALL_64_after_hwframe+0x76\/0x7e<br \/>\nkernel: RIP: 0033:0x7f815e134c8d<br \/>\nkernel: RSP: 002b:00007fff6df94ea8 EFLAGS: 00000246 ORIG_RAX: 00000000000001cc<br \/>\nkernel: RAX: ffffffffffffffda RBX: 0000556d8c81d040 RCX: 00007f815e134c8d<br \/>\nkernel: RDX: 0000000000000046 RSI: 0000556d8c81d040 RDI: 0000000000000064<br \/>\nkernel: RBP: 00007fff6df94ef0 R08: 00007f815e212ac8 R09: 000000000000000c<br \/>\nkernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000556d8c81d010<br \/>\nkernel: R13: 0000000000000026 R14: 0000000000000046 R15: 0000000000000064<br \/>\nkernel:<br \/>\nkernel: INFO: task hat:3409 is blocked on a mutex likely owned by task hat:3409.<\/p>\n<p>To fix the issue, lift the locking out of the core of<br \/>\naa_new_learning_profile(), introduce a wrapper function that takes the<br \/>\nlock where needed, and have build_change_hat() call the core function<br \/>\nthat no longer takes the lock.<\/p>\n<p>In addition fix 4 other issues introduced by commit<br \/>\n32e92764d6f8d (&#8220;apparmor: grab ns lock and refresh when looking up changehat child profiles&#8221;)<br \/>\n&#8211; aa_get_profile_rcu() was replaced-by: aa_get_profile without the<br \/>\n  accompanying rcu_dereference_protected()<br \/>\n&#8211; an extra aa_get_label(label) was introduced at the start of<br \/>\n  change_hat() without an accompanying aa_put_label() causing a<br \/>\n  reference count leak.<br \/>\n&#8211; a reference count leak was introduced in the label_is_stale(label)<br \/>\n  case, where the newest profile would be leaked instead of the<br \/>\n  label passed to the function.<br \/>\n&#8211; a potential UAF when the lookup walks up the tree with new_ns != ns<br \/>\n  the new label refere<br \/>\n&#8212;truncated&#8212;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>apparmor: fix deadlock in complain-mode change_hat<\/p>\n<p>The use of change_hat when in complain mode can cause a deadlock<br \/>\nwhen the hat d<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-25588","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/25588","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=25588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}