# CVE-2022-49152: XArray: Fix xas\_create\_range() when multi-order entry present

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-26T01:55:18.249Z
- **Modified:** 2026-06-17T05:17:13.630Z

## Who should check

- Anyone running Linux \>= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, \< 18f13edf3424b3b61814b69d5269b2e14584800c; \>= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, \< 3e3c658055c002900982513e289398a1aad4a488
- Anyone running Linux 5.17

## 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

- Linux: \>= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, \< 18f13edf3424b3b61814b69d5269b2e14584800c; \>= 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3, \< 3e3c658055c002900982513e289398a1aad4a488 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 3e3c658055c002900982513e289398a1aad4a488 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/18f13edf3424b3b61814b69d5269b2e14584800c>
- patch: <https://git.kernel.org/stable/c/3e3c658055c002900982513e289398a1aad4a488>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49152>

HTML: <https://flawdb.com/CVE-2022-49152> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49152>
