CVE-2026-23403 PUBLISHED

apparmor: fix memory leak in verify_header

Assigner: Linux
Reserved: 13.01.2026 Published: 01.04.2026 Updated: 01.04.2026

In the Linux kernel, the following vulnerability has been resolved:

apparmor: fix memory leak in verify_header

The function sets *ns = NULL on every call, leaking the namespace string allocated in previous iterations when multiple profiles are unpacked. This also breaks namespace consistency checking since *ns is always NULL when the comparison is made.

Remove the incorrect assignment. The caller (aa_unpack) initializes *ns to NULL once before the loop, which is sufficient.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from dd51c84857630e77c139afe4d9bba65fc051dc3f to 663ce34786e759ebcbeb3060685c20bcc886d51a (excl.)
  • affected from dd51c84857630e77c139afe4d9bba65fc051dc3f to 786e2c2a87d9c505f33321d1fd23a176aa8ddeb1 (excl.)
  • affected from dd51c84857630e77c139afe4d9bba65fc051dc3f to 4f0889f2df1ab99224a5e1ac4e20437eea5fe38e (excl.)
  • affected from dd51c84857630e77c139afe4d9bba65fc051dc3f to 42fd831abfc15d0643c14688f0522556b347e7e6 (excl.)
  • affected from dd51c84857630e77c139afe4d9bba65fc051dc3f to e38c55d9f834e5b848bfed0f5c586aaf45acb825 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.12 is affected
  • unaffected from 0 to 3.12 (excl.)
  • unaffected from 6.6.130 to 6.6.* (incl.)
  • unaffected from 6.12.77 to 6.12.* (incl.)
  • unaffected from 6.18.18 to 6.18.* (incl.)
  • unaffected from 6.19.8 to 6.19.* (incl.)
  • unaffected from 7.0-rc4 to * (incl.)

References