CVE-2022-50107

cifs: Fix memory leak when using fscache

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:02 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.17 ≤ v < 5.18.185.17 ≤ v < 5.19.25.17 ≤ v < 6.05.17.1 ≤ v < 5.18.185.19 ≤ v < 5.19.2174ee9947bd0f24fee2794b35258960d108b7aa5.175.17 rc35.17 rc45.17 rc55.17 rc65.17 rc75.17 rc8
Vendor states this is fixed in 7105b4047481bc2950fb767cff328d8b75292c0f (fixed)
Vendor states this is fixed in ae497726cd090673a4d20ac725ccc2de8067a7a5 (fixed)
Vendor states this is fixed in c6f62f81b488d00afaa86bae26c6ce9ab12c709e (fixed)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7105b4047481bc2950fb767cff328d8b75292c0f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae497726cd090673a4d20ac725ccc2de8067a7a5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6f62f81b488d00afaa86bae26c6ce9ab12c709e

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card