CVE-2022-50107Published Jun 18, 2025 · Jun 18Updated Nov 7
cifs: Fix memory leak when using fscache
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.18.185.19.26.0In the Linux kernel, the following vulnerability has been resolved:
cifs: Fix memory leak when using fscache
If we hit the 'index == next_cached' case, we leak a refcount on the struct page. Fix this by using readahead_folio() which takes care of the refcount for you.
From the CVE record · Linux
The Linux kernel's CIFS code leaks a page reference when using fscache and the `index == next_cached` case occurs. The input does not establish what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels that use CIFS with fscache should check whether their kernel is affected; affected versions were not provided.