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

Medium 5.5 Published Updated

A missing retry check in the Linux kernel's EROFS filesystem can cause a system crash when using fscache mode.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49815?

CVE-2022-49815 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2022-49815?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49815?

Apply the vendor's patch.

Is CVE-2022-49815 being exploited?

There is no known exploitation of CVE-2022-49815 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49815, GHSA-3gpq-jcrp-xp2r, UBUNTU-CVE-2022-49815.

Is CVE-2022-49815 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free