CVE-2022-50107

cifs: Fix memory leak when using fscache

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0174ee9947bd0f24fee2794b35258960d108b7aa to before 7105b4047481bc2950fb767cff328d8b75292c0fAffected
  • 0174ee9947bd0f24fee2794b35258960d108b7aa to before ae497726cd090673a4d20ac725ccc2de8067a7a5Affected
  • 0174ee9947bd0f24fee2794b35258960d108b7aa to before c6f62f81b488d00afaa86bae26c6ce9ab12c709eAffected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.