# CVE-2022-50312: drivers: serial: jsm: fix some leaks in probe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-15T14:46:07.399Z
- **Modified:** 2026-11-05T20:17:33.887Z

## Who should check

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

## Description

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 and fixed versions

- Linux: \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< ff9a5e50fb1910be33e62925bc7ee3bef474879e; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 744c2d33a88b082d9d504520f0132b3d688547b2; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 6be8e565a4a60530797a974d0a3d0e30656166a1; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 737594536dc3ce732976c0d84bb1dcc842065521; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 1d5859ef229e381f4db38dce8ed58e4bf862006b (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

- Upgrade Linux to 1d5859ef229e381f4db38dce8ed58e4bf862006b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50312. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50312.md
Affected: Linux >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, < ff9a5e50fb1910be33e62925bc7ee3bef474879e; >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, < 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c; >= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, < 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3; >= 03a8482c17dd0ae3251451d…
Fixed in: Linux 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c, Linux 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3, Linux 744c2d33a88b082d9d504520f0132b3d688547b2, Linux 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212, Linux 6be8e565a4a60530797a974d0a3d0e30656166a1, Linux 737594536dc3ce732976c0d84bb1dcc842065521, Linux 3ea1f…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50312 being exploited?

There is no confirmed exploitation: CVE-2022-50312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50312?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50312?

Linux \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< ff9a5e50fb1910be33e62925bc7ee3bef474879e; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 744c2d33a88b082d9d504520f0132b3d688547b2; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 6be8e565a4a60530797a974d0a3d0e30656166a1; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 737594536dc3ce732976c0d84bb1dcc842065521; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8; \>= 03a8482c17dd0ae3251451d54cbbc03f930f21d5, \< 1d5859ef229e381f4db38dce8ed58e4bf862006b; Linux 3.19.

### Is there a fix for CVE-2022-50312?

Yes. Fixed in Linux 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c, Linux 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3, Linux 744c2d33a88b082d9d504520f0132b3d688547b2, Linux 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212, Linux 6be8e565a4a60530797a974d0a3d0e30656166a1, Linux 737594536dc3ce732976c0d84bb1dcc842065521, Linux 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8, Linux 1d5859ef229e381f4db38dce8ed58e4bf862006b. Upgrade Linux to 1d5859ef229e381f4db38dce8ed58e4bf862006b or later.

### How do I check if I'm affected by CVE-2022-50312?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ff9a5e50fb1910be33e62925bc7ee3bef474879e>
- patch: <https://git.kernel.org/stable/c/3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c>
- patch: <https://git.kernel.org/stable/c/6066bd69ffba3a6abc7c0793ccba1da79b7d77e3>
- patch: <https://git.kernel.org/stable/c/744c2d33a88b082d9d504520f0132b3d688547b2>
- patch: <https://git.kernel.org/stable/c/71ffe5111f0ffa2fd43c14fd176c6f05d4e82212>
- patch: <https://git.kernel.org/stable/c/6be8e565a4a60530797a974d0a3d0e30656166a1>
- patch: <https://git.kernel.org/stable/c/737594536dc3ce732976c0d84bb1dcc842065521>
- patch: <https://git.kernel.org/stable/c/3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8>
- patch: <https://git.kernel.org/stable/c/1d5859ef229e381f4db38dce8ed58e4bf862006b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50312>

HTML: <https://flawdb.com/CVE-2022-50312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50312>
