{"id":"CVE-2022-50107","summary":"cifs: Fix memory leak when using fscache","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix memory leak when using fscache\n\nIf we hit the 'index == next_cached' case, we leak a refcount on the\nstruct page.  Fix this by using readahead_folio() which takes care of\nthe refcount for you.","modified":"2026-04-11T12:44:54.892416Z","published":"2025-06-18T11:02:41.395Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50107.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7105b4047481bc2950fb767cff328d8b75292c0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae497726cd090673a4d20ac725ccc2de8067a7a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6f62f81b488d00afaa86bae26c6ce9ab12c709e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50107.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50107"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0174ee9947bd0f24fee2794b35258960d108b7aa"},{"fixed":"7105b4047481bc2950fb767cff328d8b75292c0f"},{"fixed":"ae497726cd090673a4d20ac725ccc2de8067a7a5"},{"fixed":"c6f62f81b488d00afaa86bae26c6ce9ab12c709e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50107.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"5.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"5.19.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50107.json"}}],"schema_version":"1.7.5"}