---
id: CVE-2022-50107
title: 'cifs: Fix memory leak when using fscache'
summary: |-
  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 t…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa <
    7105b4047481bc2950fb767cff328d8b75292c0f
  - >-
    Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa <
    ae497726cd090673a4d20ac725ccc2de8067a7a5
  - >-
    Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa <
    c6f62f81b488d00afaa86bae26c6ce9ab12c709e
  - Linux 5.17
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:54:32.976458Z'
published: '2025-06-18'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:00:17.193Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-50107'
references:
  - url: 'https://git.kernel.org/stable/c/7105b4047481bc2950fb767cff328d8b75292c0f'
  - url: 'https://git.kernel.org/stable/c/ae497726cd090673a4d20ac725ccc2de8067a7a5'
  - url: 'https://git.kernel.org/stable/c/c6f62f81b488d00afaa86bae26c6ce9ab12c709e'
tags:
  - cve.org
epss: 0.00191
epssPercentile: 0.08781
ingestedAt: '2026-11-05T22:38:31.664Z'
---

## Overview

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

- `Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa < 7105b4047481bc2950fb767cff328d8b75292c0f`
- `Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa < ae497726cd090673a4d20ac725ccc2de8067a7a5`
- `Linux >= 0174ee9947bd0f24fee2794b35258960d108b7aa < c6f62f81b488d00afaa86bae26c6ce9ab12c709e`
- `Linux 5.17`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
