---
id: CVE-2022-50312
title: 'drivers: serial: jsm: fix some leaks in probe'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drivers: serial: jsm: fix some leaks in probe

  This error path needs to unwind instead of just returning directly.
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    ff9a5e50fb1910be33e62925bc7ee3bef474879e
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    6066bd69ffba3a6abc7c0793ccba1da79b7d77e3
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    744c2d33a88b082d9d504520f0132b3d688547b2
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    71ffe5111f0ffa2fd43c14fd176c6f05d4e82212
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    6be8e565a4a60530797a974d0a3d0e30656166a1
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    737594536dc3ce732976c0d84bb1dcc842065521
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8
  - >-
    Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 <
    1d5859ef229e381f4db38dce8ed58e4bf862006b
  - Linux 3.19
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:09:33.427616Z'
published: '2025-09-15'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:10:34.363Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-50312'
references:
  - url: 'https://git.kernel.org/stable/c/ff9a5e50fb1910be33e62925bc7ee3bef474879e'
  - url: 'https://git.kernel.org/stable/c/3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c'
  - url: 'https://git.kernel.org/stable/c/6066bd69ffba3a6abc7c0793ccba1da79b7d77e3'
  - url: 'https://git.kernel.org/stable/c/744c2d33a88b082d9d504520f0132b3d688547b2'
  - url: 'https://git.kernel.org/stable/c/71ffe5111f0ffa2fd43c14fd176c6f05d4e82212'
  - url: 'https://git.kernel.org/stable/c/6be8e565a4a60530797a974d0a3d0e30656166a1'
  - url: 'https://git.kernel.org/stable/c/737594536dc3ce732976c0d84bb1dcc842065521'
  - url: 'https://git.kernel.org/stable/c/3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8'
  - url: 'https://git.kernel.org/stable/c/1d5859ef229e381f4db38dce8ed58e4bf862006b'
tags:
  - cve.org
epss: 0.00163
epssPercentile: 0.05554
ingestedAt: '2026-11-05T22:38:31.723Z'
---

## Overview

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

drivers: serial: jsm: fix some leaks in probe

This error path needs to unwind instead of just returning directly.

## Affected

- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < ff9a5e50fb1910be33e62925bc7ee3bef474879e`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 744c2d33a88b082d9d504520f0132b3d688547b2`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 6be8e565a4a60530797a974d0a3d0e30656166a1`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 737594536dc3ce732976c0d84bb1dcc842065521`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8`
- `Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5 < 1d5859ef229e381f4db38dce8ed58e4bf862006b`
- `Linux 3.19`

## Remediation

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