Service interruption via AppArmor policy-write memory leak
Published Jun 18, 2025 · Updated May 11, 2026
Memory leak in the Linux kernel AppArmor subsystem allows local users to consume kernel memory through failed policy writes. aa_simple_write_to_buffer frees only the aa_loaddata management structure with kvfree when copy_from_user fails, orphaning its separately allocated data blob. Repeated triggering can exhaust kernel memory and interrupt service; exploitation requires local access to an AppArmor policy-write path.
Summary
What happened
Memory leak in the Linux kernel AppArmor subsystem allows local users to consume kernel memory through failed policy writes. aa_simple_write_to_buffer frees only the aa_loaddata management structure with kvfree when copy_from_user fails, orphaning its separately allocated data blob. Repeated triggering can exhaust kernel memory and interrupt service; exploitation requires local access to an AppArmor policy-write path.
The record
- CVE
- CVE-2022-50074
- Published
- Jun 18, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-401, T1499.001
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.17
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <417ea9fe972d2654a268ad66e89c8fcae67017c3
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <6500eb3a48ac221051b1791818a1ac74744ef617
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <6583edbf459de2e06b9759f264c0ae27e452b97a
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <7db182a2ebeefded86fea542fcc5d6a68bb77f58
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <8aab4295582eb397a125d2788b829fa62b88dbf7
- Affected versionversion=a6a52579e52b55448326db88bd9a5740e7c1a037 <bf7ebebce2c25071c719fd8a2f1307e0c243c2d7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo