---
id: CVE-2025-22074
title: 'ksmbd: fix r_count dec/increment mismatch'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix r_count dec/increment mismatch

  r_count is only increased when there is an oplock break wait,
  so r_count inc/decrement are not paired. This can cause r_count…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937 <
    8829849da3f68697b830a5b36047b0d8a50ae3ed
  - >-
    Linux >= 09aeab68033161cb54f194da93e51a11aee6144b <
    4790bcb269e5d6d88200a67c54ae6d627332a3be
  - >-
    Linux >= a4261bbc33fbf99b99c80aa3a2c5097611802980 <
    457db486203c90e10c3efc87fd45cc7000b1cd36
  - >-
    Linux >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa <
    20378cf48359f39dee0ef9b61470ebe77bd49c0d
  - >-
    Linux >= 3aa660c059240e0c795217182cf7df32909dd917 <
    c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9
  - >-
    Linux >= 3aa660c059240e0c795217182cf7df32909dd917 <
    ddb7ea36ba7129c2ed107e2186591128618864e1
  - Linux >= 6.6.84 < 6.6.87
  - Linux >= 6.12.20 < 6.12.23
  - Linux >= 6.13.8 < 6.13.11
  - Linux 6.14
published: '2025-04-16'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:21:13.575Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-22074'
references:
  - url: 'https://git.kernel.org/stable/c/8829849da3f68697b830a5b36047b0d8a50ae3ed'
  - url: 'https://git.kernel.org/stable/c/4790bcb269e5d6d88200a67c54ae6d627332a3be'
  - url: 'https://git.kernel.org/stable/c/457db486203c90e10c3efc87fd45cc7000b1cd36'
  - url: 'https://git.kernel.org/stable/c/20378cf48359f39dee0ef9b61470ebe77bd49c0d'
  - url: 'https://git.kernel.org/stable/c/c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9'
  - url: 'https://git.kernel.org/stable/c/ddb7ea36ba7129c2ed107e2186591128618864e1'
tags:
  - cve.org
epss: 0.00528
epssPercentile: 0.44988
ingestedAt: '2026-11-03T16:49:26.496Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix r_count dec/increment mismatch

r_count is only increased when there is an oplock break wait,
so r_count inc/decrement are not paired. This can cause r_count
to become negative, which can lead to a problem where the ksmbd
thread does not terminate.

## Affected

- `Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937 < 8829849da3f68697b830a5b36047b0d8a50ae3ed`
- `Linux >= 09aeab68033161cb54f194da93e51a11aee6144b < 4790bcb269e5d6d88200a67c54ae6d627332a3be`
- `Linux >= a4261bbc33fbf99b99c80aa3a2c5097611802980 < 457db486203c90e10c3efc87fd45cc7000b1cd36`
- `Linux >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa < 20378cf48359f39dee0ef9b61470ebe77bd49c0d`
- `Linux >= 3aa660c059240e0c795217182cf7df32909dd917 < c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9`
- `Linux >= 3aa660c059240e0c795217182cf7df32909dd917 < ddb7ea36ba7129c2ed107e2186591128618864e1`
- `Linux >= 6.6.84 < 6.6.87`
- `Linux >= 6.12.20 < 6.12.23`
- `Linux >= 6.13.8 < 6.13.11`
- `Linux 6.14`

## Remediation

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