What’s Vulnerable › Vulnerabilities
CVE-2022-50107: cifs: Fix memory leak when using fscache
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
- Weakness: CWE-401
Description
In 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.
Affected products
- Linux kernel: from 5.17.1 before 5.18.18; from 5.19 before 5.19.2; 5.17, 5.17-rc3, 5.17-rc4, 5.17-rc5, 5.17-rc6, 5.17-rc7 (+1) — fixed in 5.18.18, 5.19.2
How to fix
Upgrade to a fixed version: Linux kernel 5.18.18, 5.19.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/7105b4047481bc2950fb767cff328d8b75292c0f
- https://git.kernel.org/stable/c/ae497726cd090673a4d20ac725ccc2de8067a7a5
- https://git.kernel.org/stable/c/c6f62f81b488d00afaa86bae26c6ce9ab12c709e
Get alerted when CVE-2022-50107 or the next vulnerability affects your stack