Kernel memory corruption via double-cleared JFFS2 xattrs
Published Feb 26, 2025 · Updated Aug 5, 2026
Use-after-free in Linux kernel JFFS2 starting in 2.6.18 allows context-dependent attackers to corrupt kernel memory via a crafted image. After a scan error, jffs2_clear_xattr_subsystem frees xattr references during filesystem construction, then jffs2_do_fill_super calls it again and reads the freed list. A privileged victim process must mount the attacker-supplied image; the double clear can panic the kernel or corrupt kernel memory.
Summary
What happened
Use-after-free in Linux kernel JFFS2 starting in 2.6.18 allows context-dependent attackers to corrupt kernel memory via a crafted image. After a scan error, jffs2_clear_xattr_subsystem frees xattr references during filesystem construction, then jffs2_do_fill_super calls it again and reads the freed list. A privileged victim process must mount the attacker-supplied image; the double clear can panic the kernel or corrupt kernel memory.
The record
- CVE
- CVE-2021-47656
- Published
- Feb 26, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
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=2.6.18
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <22327bd7988f21de3a53c1373f3b81542bfe1f44
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <30bf7244acf32f19cb722c39f7bc1c2a9f300422
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <3bd2454162ec6bbb5503233c804fce6e4b6dcec5
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <4c7c44ee1650677fbe89d86edbad9497b7679b5c
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <7a75740206af5f17e9f3efa384211cba70213da1
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <7bb7428dd73991bf4b3a7a61b493ca50046c2b13
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <8c0f024f29e055840a5a89fe23b96ae3f921afed
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <9150cb625b46f68d524f4cfd491f1aafc23e10a9
- Affected versionversion=aa98d7cf59b5b0764d3502662053489585faf2fe <c3b07c875fa8f906f932976460fd14798596f101
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.
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