# CVE-2022-49894: cxl/region: Fix region HPA ordering validation

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-05-01T14:10:37.109Z
- Modified: 2026-06-17T05:19:26.717Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

cxl/region: Fix region HPA ordering validation

Some regions may not have any address space allocated. Skip them when
validating HPA order otherwise a crash like the following may result:

 devm_cxl_add_region: cxl_acpi cxl_acpi.0: decoder3.4: created region9
 BUG: kernel NULL pointer dereference, address: 0000000000000000
 [..]
 RIP: 0010:store_targetN+0x655/0x1740 [cxl_core]
 [..]
 Call Trace:
  <TASK>
  kernfs_fop_write_iter+0x144/0x200
  vfs_write+0x24a/0x4d0
  ksys_write+0x69/0xf0
  do_syscall_64+0x3a/0x90

store_targetN+0x655/0x1740:
alloc_region_ref at drivers/cxl/core/region.c:676
(inlined by) cxl_port_attach_region at drivers/cxl/core/region.c:850
(inlined by) cxl_region_attach at drivers/cxl/core/region.c:1290
(inlined by) attach_target at drivers/cxl/core/region.c:1410
(inlined by) store_targetN at drivers/cxl/core/region.c:1453

(As written by CVE List.)

## Affected

- Linux Linux: from 384e624bb211b406db40edc900bb51af8bb267d0 before 12316b9f7c18138ae656050cfd716728e27b7e2f; from 384e624bb211b406db40edc900bb51af8bb267d0 before a90accb358ae33ea982a35595573f7a045993f8b; 6.0 (not affected: before 6.0; from 6.0.8 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 6.0 before 6.0.8; 6.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/12316b9f7c18138ae656050cfd716728e27b7e2f> (patch)
- <https://git.kernel.org/stable/c/a90accb358ae33ea982a35595573f7a045993f8b> (patch)

## Sources

- CVE List: [CVE-2022-49894](https://www.cve.org/CVERecord?id=CVE-2022-49894), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49894](https://nvd.nist.gov/vuln/detail/CVE-2022-49894), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49894 · Whole record: https://cve.day/CVE-2022-49894.json · Rebuilt by cve.day 2026-11-25T22:58:20.924Z
