BreachSpiderVerified, not vibes

CVE-2022-50860 in Apparmor products

High 7.8

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()...

Affects 1 product from 5 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.2%
EPSS percentile8th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apparmor — —
Kernel — —
Linux Linux 4.13
Slab — —
Valid — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-50860
BreachSpider IDBS-2025-GLOBAL-341146-I
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2025-12-30
Last modified2026-08-04
SourceNVD

Analysis AI-written, not human-reviewed

A memory leak vulnerability was identified in the AppArmor module of the Linux kernel, specifically in the alloc_ns() function. The issue arises due to incorrect handling of the hname member of the struct aa_policy, which is not a valid slab object and should not be freed using kfree_sensitive(). This has been resolved by using aa_policy_destroy() instead.

The vulnerability is related to improper memory management, specifically a memory leak. It does not directly expose a remote or local attack vector but could lead to resource exhaustion if exploited over time.

Questions

What is CVE-2022-50860?

A memory leak vulnerability was identified in the AppArmor module of the Linux kernel, specifically in the alloc_ns() function. The issue arises due to incorrect handling of the hname member of the struct aa_policy, which is not a valid slab object and should not be freed using kfree_sensitive(). This has been resolved by using aa_policy_destroy() instead.

What is the CVSS score for CVE-2022-50860?

CVE-2022-50860 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.2%.

Is CVE-2022-50860 actively exploited?

No confirmed active exploitation of CVE-2022-50860 as of 2026-08-05.

How do I remediate CVE-2022-50860?

Priority: MEDIUM.

What systems are affected by CVE-2022-50860?

CVE-2022-50860 affects Apparmor; Kernel; Linux Linux; Slab; Valid.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apparmor","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-08-04.