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

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-02-26T02:24:20.198Z
- Modified: 2026-11-05T20:17:08.960Z
- 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:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from cbd59c48ae2bcadc4a7599c29cf32fd3f9b78251 before a66f131d30e53000f08301776bf85c912ef47aad; from cbd59c48ae2bcadc4a7599c29cf32fd3f9b78251 before cb995f4eeba9d268fd4b56c2423ad6c1d1ea1b82; 5.12 (not affected: before 5.12; from 5.18.8 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.12 before 5.18.8; 5.19

## References

- <https://git.kernel.org/stable/c/a66f131d30e53000f08301776bf85c912ef47aad> (patch)
- <https://git.kernel.org/stable/c/cb995f4eeba9d268fd4b56c2423ad6c1d1ea1b82> (patch)

## Sources

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

---

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