Kernel memory corruption via AppArmor invalid free
Published Dec 30, 2025 · Updated Dec 30, 2025
Memory corruption in Linux kernel AppArmor allows local users to corrupt kernel memory through AppArmor policy namespace creation. The alloc_ns() failure path passes policy.hname, an interior pointer rather than a slab-object base, to kfree_sensitive(), causing an out-of-bounds zero and invalid free. Exploitation requires local AppArmor policy-management access and an allocation failure after policy initialization; successful abuse can corrupt kernel memory or panic the host.
Summary
What happened
Memory corruption in Linux kernel AppArmor allows local users to corrupt kernel memory through AppArmor policy namespace creation. The alloc_ns() failure path passes policy.hname, an interior pointer rather than a slab-object base, to kfree_sensitive(), causing an out-of-bounds zero and invalid free. Exploitation requires local AppArmor policy-management access and an allocation failure after policy initialization; successful abuse can corrupt kernel memory or panic the host.
The record
- CVE
- CVE-2022-50860
- Published
- Dec 30, 2025
- Updated
- Dec 30, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 30, 2025CVE publishedPublication date reported by the CVE source.
- Dec 30, 2025Record 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.13
- Affected versionversion=a1bd627b46d169268a0ee5960899fb5be960a317 <0250cf8d37bb5201a117177afd24dc73a1c81657
- Affected versionversion=a1bd627b46d169268a0ee5960899fb5be960a317 <12695b4b76d437b9c0182a6f7dfb2248013a9daf
- Affected versionversion=a1bd627b46d169268a0ee5960899fb5be960a317 <5f509fa740b17307f0cba412485072f632d5af36
- Affected versionversion=a1bd627b46d169268a0ee5960899fb5be960a317 <9a32aa87a25d800b2c6f47bc2749a7bfd9a486f3
- Affected versionversion=a1bd627b46d169268a0ee5960899fb5be960a317 <e9e6fa49dbab6d84c676666f3fe7d360497fd65b
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