Linux · Linux Kernel · CVE-2025-38242
**Name of the Vulnerable Software and Affected Versions:**
Linux kernel (affected versions not specified)
**Description:**
The Linux kernel contains a race condition within the `userfaultfd move` function when handling swap cache operations. This issue arises from a lockless swap cache lookup, potentially leading to the movement of an incorrect folio or corruption of the RSS counter. The vulnerability occurs when a folio is swapped in and out using the same swap entry concurrently with a `userfaultfd move` operation. Specifically, the `filemap get folio` function may return an incorrect folio or NULL, leading to the potential for moving an invalid folio or accounting errors. The race window is narrow, requiring multiple rare event collisions, but can be reproduced with a deliberately constructed reproducer.
**Recommendations:**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.