CVE-2022-50860

apparmor: Fix memleak in alloc_ns()

HIGH
7.8
CVSS Score
Published: December 30, 2025 at 12:15 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in alloc_ns() After changes in commit a1bd627b46d1 ("apparmor: share profile name on replacement"), the hname member of struct aa_policy is not valid slab object, but a subset of that, it can not be freed by kfree_sensitive(), use aa_policy_destroy() to fix it.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.13 ≤ v < 5.10.1634.13 ≤ v < 5.15.864.13 ≤ v < 6.0.164.13 ≤ v < 6.1.24.13 ≤ v < 6.24.13a1bd627b46d169268a0ee5960899fb5be960a317
Vendor states this is fixed in 0250cf8d37bb5201a117177afd24dc73a1c81657 (fixed)
Vendor states this is fixed in 12695b4b76d437b9c0182a6f7dfb2248013a9daf (fixed)
Vendor states this is fixed in 5f509fa740b17307f0cba412485072f632d5af36 (fixed)
Vendor states this is fixed in 9a32aa87a25d800b2c6f47bc2749a7bfd9a486f3 (fixed)
Vendor states this is fixed in e9e6fa49dbab6d84c676666f3fe7d360497fd65b (fixed)
Vendor states this is fixed in 4.13 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card