apparmor: Fix double free of ns_name in aa_replace_profiles()
In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix double free of ns_name in aa_replace_profiles() if ns_name is NULL after 1071 error = aa_unpack(udata, &lh, &ns_name); and if ent->ns_name contains an ns_name in 1089 } else if (ent->ns_name) { then ns_name is assigned the ent->ns_name 1095 ns_name = ent->ns_name; however ent->ns_name is freed at 1262 aa_load_ent_free(ent); and then again when freeing ns_name at 1270 kfree(ns_name); Fix this by NULLing out ent->ns_name after it is transferred to ns_name ")
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.253, 5.15.203, 6.1.169, 6.12.77, 6.18.18, 6.19.8, 6.6.130
- CVEs
- CVE-2026-23408
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 04:15 UTC · Revision 1
Source evidence
apparmor: Fix double free of ns_name in aa_replace_profiles()
core-osv · Original sourcePublished 1 Apr 2026, 08:36 UTC
In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix double free of ns_name in aa_replace_profiles() if ns_name is NULL after 1071 error = aa_unpack(udata, &lh, &ns_name); and if ent->ns_name contains an ns_name in 1089 } else if (ent->ns_name) { then ns_name is assigned the ent->ns_name 1095 ns_name = ent->ns_name; however ent->ns_name is freed at 1262 aa_load_ent_free(ent); and then again when freeing ns_name at 1270 kfree(ns_name); Fix this by NULLing out ent->ns_name after it is transferred to ns_name ")
osv:CVE-2026-23408
Kernel
Fixed versions: 5.10.253, 5.15.203, 6.1.169, 6.6.130, 6.12.77, 6.18.18, 6.19.8
Complete source record
{
"id": "96dff7dac026b2c98facfd1c3062a9846e07cc1f897d1264c62e71bff4d1724c",
"url": "https://osv.dev/vulnerability/CVE-2026-23408",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "apparmor: Fix double free of ns_name in aa_replace_profiles()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix double free of ns_name in aa_replace_profiles() if ns_name is NULL after 1071 error = aa_unpack(udata, &lh, &ns_name); and if ent->ns_name contains an ns_name in 1089 } else if (ent->ns_name) { then ns_name is assigned the ent->ns_name 1095 ns_name = ent->ns_name; however ent->ns_name is freed at 1262 aa_load_ent_free(ent); and then again when freeing ns_name at 1270 kfree(ns_name); Fix this by NULLing out ent->ns_name after it is transferred to ns_name \")",
"evidence": "osv:CVE-2026-23408",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.253",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.203",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.169",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.130",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.77",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.18",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-23408",
"aliases": [
"CVE-2026-23408"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "145a0ef21c8e944957f58e2c8ffcd8a10f46266a"
},
{
"fixed": "c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689"
},
{
"fixed": "c053ae381ce227577567d1ef10090ce7506d7a28"
},
{
"fixed": "35f4caec1352054b9a61cfdf2bf1898073637aa0"
},
{
"fixed": "55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a"
},
{
"fixed": "86feeccd6b93ed94bd6655f30de80f163f8d5a45"
},
{
"fixed": "7998ab3010d2317643f91828f1853d954ef31387"
},
{
"fixed": "18b5233e860c294a847ee07869d93c0b8673a54b"
},
{
"fixed": "5df0c44e8f5f619d3beb871207aded7c78414502"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23408.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.253"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.203"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.169"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.130"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.77"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23408.json"
}
}
],
"modified": "2026-10-28T02:30:42.709741042Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/18b5233e860c294a847ee07869d93c0b8673a54b",
"https://git.kernel.org/stable/c/35f4caec1352054b9a61cfdf2bf1898073637aa0",
"https://git.kernel.org/stable/c/55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a",
"https://git.kernel.org/stable/c/5df0c44e8f5f619d3beb871207aded7c78414502",
"https://git.kernel.org/stable/c/7998ab3010d2317643f91828f1853d954ef31387",
"https://git.kernel.org/stable/c/86feeccd6b93ed94bd6655f30de80f163f8d5a45",
"https://git.kernel.org/stable/c/c053ae381ce227577567d1ef10090ce7506d7a28",
"https://git.kernel.org/stable/c/c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23408.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23408",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23408.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23408",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 510208,
"published_at": "2026-04-01T08:36:37.873+00:00"
}