Skip to contentSkip to conversation

CVE-2022-50708: HSI: ssi_protocol: fix potential resource leak in ssip_pn_open()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

HSI: ssi_protocol: fix potential resource leak in ssip_pn_open()

ssip_pn_open() claims the HSI client's port with hsi_claim_port(). When hsi_register_port_event() gets some error and returns a negetive value, the HSI client's port should be released with hsi_release_port().

Fix it by calling hsi_release_port() when hsi_register_port_event() fails.

The Linux kernel CVE team has assigned CVE-2022-50708 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.19.17 with commit 78b0ef14896f843c45372f9bbdb6f6070f977eaf
	Fixed in 6.0.3 with commit e78b45b3eeee1cec77c794fcbf0512537c20b1dc
	Fixed in 6.1 with commit b28dbcb379e6a7f80262c2732a57681b1ee548ca

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2022-50708

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/hsi/clients/ssi_protocol.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/78b0ef14896f843c45372f9bbdb6f6070f977eaf
	https://git.kernel.org/stable/c/e78b45b3eeee1cec77c794fcbf0512537c20b1dc
	https://git.kernel.org/stable/c/b28dbcb379e6a7f80262c2732a57681b1ee548ca