{"id":"CVE-2026-23408","aliases":["CVE-2026-23408"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: Fix double free of ns_name in aa_replace_profiles()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: Fix double free of ns_name in aa_replace_profiles()\n\nif ns_name is NULL after\n1071         error = aa_unpack(udata, &lh, &ns_name);\n\nand if ent->ns_name contains an ns_name in\n1089                 } else if (ent->ns_name) {\n\nthen ns_name is assigned the ent->ns_name\n1095                         ns_name = ent->ns_name;\n\nhowever ent->ns_name is freed at\n1262                 aa_load_ent_free(ent);\n\nand then again when freeing ns_name at\n1270         kfree(ns_name);\n\nFix this by NULLing out ent->ns_name after it is transferred to ns_name\n\n\")","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: Fix double free of ns_name in aa_replace_profiles()\n\nif ns_name is NULL after\n1071         error = aa_unpack(udata, &lh, &ns_name);\n\nand if ent->ns_name contains an ns_name in\n1089                 } else if (ent->ns_name) {\n\nthen ns_name is assigned the ent->ns_name\n1095                         ns_name = ent->ns_name;\n\nhowever ent->ns_name is freed at\n1262                 aa_load_ent_free(ent);\n\nand then again when freeing ns_name at\n1270         kfree(ns_name);\n\nFix this by NULLing out ent->ns_name after it is transferred to ns_name\n\n\")","source":"cvelist"}],"published":"2026-04-01T08:36:37.873Z","modified":"2026-08-05T12:21:29.316Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"c053ae381ce227577567d1ef10090ce7506d7a28","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"35f4caec1352054b9a61cfdf2bf1898073637aa0","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"86feeccd6b93ed94bd6655f30de80f163f8d5a45","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"7998ab3010d2317643f91828f1853d954ef31387","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"18b5233e860c294a847ee07869d93c0b8673a54b","status":"affected"},{"type":"git","introduced":"145a0ef21c8e944957f58e2c8ffcd8a10f46266a","fixed":"5df0c44e8f5f619d3beb871207aded7c78414502","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.169","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.77","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.18","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.8","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.5.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.169"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.77"},{"status":"affected","introduced":"6.13","fixed":"6.18.18"},{"status":"affected","introduced":"6.19","fixed":"6.19.8"},{"status":"affected","version":"5.5"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c053ae381ce227577567d1ef10090ce7506d7a28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35f4caec1352054b9a61cfdf2bf1898073637aa0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86feeccd6b93ed94bd6655f30de80f163f8d5a45","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7998ab3010d2317643f91828f1853d954ef31387","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18b5233e860c294a847ee07869d93c0b8673a54b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5df0c44e8f5f619d3beb871207aded7c78414502","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23408","url":"https://www.cve.org/CVERecord?id=CVE-2026-23408","licence":"CVE Terms of Use","modified":"2026-08-05T12:21:29.316Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23408","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23408","licence":"Public domain","modified":"2026-06-17T10:21:31.487Z"}],"updatedAt":"2026-11-25T22:59:17.680Z","epss":{"score":0.00201,"percentile":0.10631,"date":"2026-12-01T12:00:22.000Z"}}