# CVE-2022-49815: erofs: fix missing xas_retry() in fscache mode

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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:09:39.016Z
- Modified: 2026-06-17T05:19:13.107Z
- Assigned by: Linux

## Description

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

erofs: fix missing xas_retry() in fscache mode

The xarray iteration only holds the RCU read lock and thus may encounter
XA_RETRY_ENTRY if there's process modifying the xarray concurrently.
This will cause oops when referring to the invalid entry.

Fix this by adding the missing xas_retry(), which will make the
iteration wind back to the root node if XA_RETRY_ENTRY is encountered.

(As written by CVE List.)

## Affected

- Linux Linux: from d435d53228dd039fffecae123b8c138af6f96f99 before dbc98fe99e17ed18f2f272d5fe880d844b1c68c3; from d435d53228dd039fffecae123b8c138af6f96f99 before 37020bbb71d911431e16c2c940b97cf86ae4f2f6; 5.19 (not affected: before 5.19; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.19 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/dbc98fe99e17ed18f2f272d5fe880d844b1c68c3> (patch)
- <https://git.kernel.org/stable/c/37020bbb71d911431e16c2c940b97cf86ae4f2f6> (patch)

## Sources

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

---

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