---
id: CVE-2022-50460
title: 'cifs: Fix xid leak in cifs_flock()'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  cifs: Fix xid leak in cifs_flock()

  If not flock, before return -ENOLCK, should free the xid,
  otherwise, the xid will be leaked.
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 <
    2d08311aa3056a84bfdc09bc47777de6a9b16c30
  - >-
    Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 <
    8905d13b9ede4caa88c577faed832d6c7383f4fb
  - >-
    Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 <
    f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73
  - >-
    Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 <
    575e079c782b9862ec2626403922d041a42e6ed6
  - Linux 5.5
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:11:21.842483Z'
published: '2025-10-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:20:46.684Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-50460'
references:
  - url: 'https://git.kernel.org/stable/c/2d08311aa3056a84bfdc09bc47777de6a9b16c30'
  - url: 'https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb'
  - url: 'https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73'
  - url: 'https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6'
tags:
  - cve.org
epss: 0.00159
epssPercentile: 0.05089
ingestedAt: '2026-11-05T22:38:31.737Z'
---

## Overview

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

cifs: Fix xid leak in cifs_flock()

If not flock, before return -ENOLCK, should free the xid,
otherwise, the xid will be leaked.

## Affected

- `Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 < 2d08311aa3056a84bfdc09bc47777de6a9b16c30`
- `Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 < 8905d13b9ede4caa88c577faed832d6c7383f4fb`
- `Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 < f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73`
- `Linux >= d0677992d2af3d65f1c1c21de3323d09d4891537 < 575e079c782b9862ec2626403922d041a42e6ed6`
- `Linux 5.5`

## Remediation

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