Kernel memory corruption via oversized xattr copy
Published Feb 26, 2025 · Updated Aug 5, 2026
An out-of-bounds write in Linux 5.17 through 5.17.3 allows local users to corrupt kernel memory through CacheFiles volume creation. cachefiles_set_volume_xattr passes the xattr structure size instead of the coherency-data length to memcpy, writing four bytes beyond the allocated buffer. CacheFiles must already be bound and a new FS-Cache-enabled network-filesystem volume created; exploitation can panic the host or corrupt adjacent slab objects for kernel-context control flow.
Summary
What happened
An out-of-bounds write in Linux 5.17 through 5.17.3 allows local users to corrupt kernel memory through CacheFiles volume creation. cachefiles_set_volume_xattr passes the xattr structure size instead of the coherency-data length to memcpy, writing four bytes beyond the allocated buffer. CacheFiles must already be bound and a new FS-Cache-enabled network-filesystem volume created; exploitation can panic the host or corrupt adjacent slab objects for kernel-context control flow.
The record
- CVE
- CVE-2022-49062
- Published
- Feb 26, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787, T1499, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 26, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 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=413a4a6b0b5553f2423d210f65e98c211b99c3f8 <09a5df1b88c8f126c8ff9938edf160edd4e92f42
- Affected versionversion=413a4a6b0b5553f2423d210f65e98c211b99c3f8 <7b2f6c306601240635c72caa61f682e74d4591b2
- Affected versionversion=5.17
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