← CVE Intelligence

CVE-2022-50107

cifs: Fix memory leak when using fscache PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 0174ee9947bd0f24fee2794b35258960d108b7aa before 7105b4047481bc2950fb767cff328d8b75292c0f; affected 0174ee9947bd0f24fee2794b35258960d108b7aa before ae497726cd090673a4d20ac725ccc2de8067a7a5; affected 0174ee9947bd0f24fee2794b35258960d108b7aa before c6f62f81b488d00afaa86bae26c6ce9ab12c709e
Linux / Linuxaffected 5.17; unaffected 0 before 5.17; unaffected 5.18.18 through 5.18.*; unaffected 5.19.2 through 5.19.*; unaffected 6.0 through *

CWE

No CWE identifiers supplied.

References