Description
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

")
Published: 2026-04-01
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption that may trigger a crash or privilege escalation
Action: Patch
AI Analysis

Impact

A double free occurs within the AppArmor subsystem of the Linux kernel when the namespace name pointer is duplicated and subsequently freed twice. This memory management flaw can corrupt kernel memory, potentially leading to a kernel crash or, if exploited, privilege escalation. The weakness is classified as CWE‑1341, indicating an unmatched deallocation error. The CVSS score of 7.8 denotes a high severity.

Affected Systems

All installations of the Linux kernel that include the AppArmor module and run versions prior to the patch commit are affected. The CPE list indicates linux:linux_kernel, so every distribution using an older kernel version that has not incorporated the fix is vulnerable. No specific vendor or version numbers are listed, so systems should treat any kernel version before the commit as vulnerable.

Risk and Exploitability

The EPSS score is below 1 %, suggesting a low probability that an exploit will appear in the near term. The vulnerability is not listed in the CISA KEV catalog, indicating no known public exploits. The attack vector is likely local, requiring the attacker to have code execution with kernel privileges or to exploit a local exploit that can run within the kernel. If successful, the attacker could cause a denial‑of‑service or elevate privileges. Due to the high CVSS score, the risk to systems that have not applied the patch remains significant.

Generated by OpenCVE AI on April 2, 2026 at 17:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that nulls out ent->ns_name after it is transferred, ensuring the double free is eliminated
  • Reboot the system to clear any state that may have been corrupted by the double free
  • Verify the running kernel version to confirm the fix is in place

Generated by OpenCVE AI on April 2, 2026 at 17:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8152-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8163-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8164-1 Linux kernel (Intel IoTG Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8165-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8163-2 Linux kernel (Azure) vulnerabilities
History

Sat, 18 Apr 2026 09:15:00 +0000


Thu, 02 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 02 Apr 2026 00:15:00 +0000


Wed, 01 Apr 2026 09:15:00 +0000

Type Values Removed Values Added
Description 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 ")
Title apparmor: Fix double free of ns_name in aa_replace_profiles()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-04-18T08:58:43.247Z

Reserved: 2026-01-13T15:37:46.013Z

Link: CVE-2026-23408

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-01T09:16:16.747

Modified: 2026-04-18T09:16:25.303

Link: CVE-2026-23408

cve-icon Redhat

Severity :

Publid Date: 2026-04-01T00:00:00Z

Links: CVE-2026-23408 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-02T20:22:29Z

Weaknesses