apparmor: fix memory leak in verify_header (Linux Linux)

CVE-2026-23403
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected dd51c84857630e77c139afe4d9bba65fc051dc3f < 9d678eb0fe55c9195d9a253e8c5b82a87b930737 ; affected dd51c84857630e77c139afe4d9bba65fc051dc3f < 6b79abcb3c985e153fcf9d395e1d4336081aabc2 ; affected dd51c84857630e77c139afe4d9bba65fc051dc3f < bcf82c0c5a8b383fd2d5d8f3fd880cdcab2ac557 ; affected dd51c84857630e77c139afe4d9bba65fc051dc3f < 663ce34786e759ebcbeb3060685c20bcc886d51a ; affected dd51c84857630e77c139afe4d9bba65fc051dc3f < 786e2c2a87d9c505f33321d1fd23a176aa8ddeb1 ; affected dd51c84857630e77c139afe4d9bba65fc051dc3f < 4f0889f2df1ab99224a5e1ac4e20437eea5fe38e
Linux · Linuxaffected 3.12 ; unaffected 0 < 3.12 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.169 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD