CVE-2022-49152
XArray: Fix xas_create_range() when multi-order entry present
Mitigation
- Upgrade Linux to 3e3c658055c002900982513e289398a1aad4a488 or later.
Who should check
- Anyone running Linux >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 18f13edf3424b3b61814b69d5269b2e14584800c; >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 3e3c658055c002900982513e289398a1aad4a488
- Anyone running Linux 5.17
Vulnerability facts
- Affected
- Linux >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 18f13edf3424b3b61814b69d5269b2e14584800c; >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 3e3c658055c002900982513e289398a1aad4a488; Linux 5.17
- Fixed in
- Linux 18f13edf3424b3b61814b69d5269b2e14584800c, Linux 3e3c658055c002900982513e289398a1aad4a488
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: XArray: Fix xas_create_range() when multi-order entry present If there is already an entry present that is of order >= XA_CHUNK_SHIFT when we call xas_create_range(), xas_create_range() will misinterpret that entry as a node and dereference xa_node->parent, generally leading to a crash that looks something like this: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 32 Comm: khugepaged Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0 RIP: 0010:xa_parent_locked include/linux/xarray.h:1207 [inline] RIP: 0010:xas_create_range+0x2d9/0x6e0 lib/xarray.c:725 It's deterministically reproducable once you know what the problem is, but producing it in a live kernel requires khugepaged to hit a race. While the problem has been present since xas_create_range() was introduced, I'm not aware of a way to hit it before the page cache was converted to use multi-index entries.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49152. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49152.md Affected: Linux >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 18f13edf3424b3b61814b69d5269b2e14584800c; >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 3e3c658055c002900982513e289398a1aad4a488; Linux 5.17 Fixed in: Linux 18f13edf3424b3b61814b69d5269b2e14584800c, Linux 3e3c658055c002900982513e289398a1aad4a488 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2022-49152 being exploited?
There is no confirmed exploitation: CVE-2022-49152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49152?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2022-49152?
Linux >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 18f13edf3424b3b61814b69d5269b2e14584800c; >= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, < 3e3c658055c002900982513e289398a1aad4a488; Linux 5.17.
Is there a fix for CVE-2022-49152?
Yes. Fixed in Linux 18f13edf3424b3b61814b69d5269b2e14584800c, Linux 3e3c658055c002900982513e289398a1aad4a488. Upgrade Linux to 3e3c658055c002900982513e289398a1aad4a488 or later.
How do I check if I'm affected by CVE-2022-49152?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.