CVE-2022-49699 filemap: Handle sibling entries in filemap_get_read_batch()

Medium 5.5 Published Updated

A race condition in the Linux kernel filemap handling can cause a NULL pointer dereference, leading to a system crash.

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-49699?

CVE-2022-49699 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 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:

filemap: Handle sibling entries in filemap_get_read_batch()

If a read races with an invalidation followed by another read, it is possible for a folio to be replaced with a higher-order folio. If that happens, we'll see a sibling entry for the new folio in the next iteration of the loop. This manifests as a NULL pointer dereference while holding the RCU read lock.

Handle this by simply returning. The next call will find the new folio and handle it correctly. The other ways of handling this rare race are more complex and it's just not worth it.

Weakness: CWE-476

Which versions are affected by CVE-2022-49699?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49699?

Apply the vendor's patch.

Is CVE-2022-49699 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-68802, DEBIAN-CVE-2022-49699, GHSA-rqcf-mx7p-prjx, ROOT-OS-UBUNTU-2204-CVE-2022-49699, UBUNTU-CVE-2022-49699.

Is CVE-2022-49699 in your software?

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

Check your SBOMs for free