Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2605B2E283B for ; Wed, 1 Oct 2025 11:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319513; cv=none; b=mxtecqq7axW/i1CU3mfpxG2BcrfRTXEy9LsYqnKp8wWUii81QNRhiJbwueVdiX5FxhFnWUbLAzKq0rB2iN1yTPQzAYD5nBODOsrcN1RBKoSDUUOVExPl05zum0b7GZPJQdBPnDS1REaAEgTb63wt/Ek9ldwPqgGEWyJlAwCacic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319513; c=relaxed/simple; bh=UcdAXfhoo9Bof6R6I2E0m8mYwCbzrj/kuex+wrwIhKQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MvYs+VZixXg+ZjdtrcqD9SgQWS1nJk+/Q5qB14ofA7gH7We9+LKejKMP5pwduSmQ+53abWn15fnRODIHBsAIj+JRZ4qsFwoTV4DPDtvjyJFRvJB1UFfbXivfGOjQd4ciZML3qAOF+UAns7zpIdHs9DXhrljYibhwhpa8sjFe16U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vGdKrT0S; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vGdKrT0S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55FEDC4CEF4; Wed, 1 Oct 2025 11:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319512; bh=UcdAXfhoo9Bof6R6I2E0m8mYwCbzrj/kuex+wrwIhKQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vGdKrT0S6UzgcYVpw6XEvBlw/vCK5nnI6QRUAasQgINIn2dLRtkFGQ+g/SNJB5Z64 T9On5DgkFUFGFl6w6sE+SUD+RsWSG+Z0M3fnwvG1TUevBZXdXYahW6YN45YIft+lgw uEl3kESp/uKy5XRiW9Lef/3Pp9a6L9DHyv5oYKnA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50438: net: hinic: fix memory leak when reading function table Date: Wed, 1 Oct 2025 13:42:11 +0200 Message-ID: <2025100100-CVE-2022-50438-1760@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2371; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ztImgi9/FaPcgQIXKOgGssTJuqsUm37IoACzOt9ksOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hTvmnVh6YdJdx5gYR8YPPf+XbzgcrcDYUdjDFrT13 TcRH/ekjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIyFKGBSubf/013R9YLW02 WTZa7ec++cTrCxjme7qKpt2WedATpRG5Z5PDtd0FCnMnAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: hinic: fix memory leak when reading function table When the input parameter idx meets the expected case option in hinic_dbg_get_func_table(), read_data is not released. Fix it. The Linux kernel CVE team has assigned CVE-2022-50438 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 5215e16244ee5889cc6135381acdbf4cbcb7905a and fixed in 5.10.153 with commit bb01910763f935b16538084b4269696e0de17f79 Issue introduced in 5.10 with commit 5215e16244ee5889cc6135381acdbf4cbcb7905a and fixed in 5.15.77 with commit e6765fe8de372a84f8dbe9e03ec13c7c70f946b8 Issue introduced in 5.10 with commit 5215e16244ee5889cc6135381acdbf4cbcb7905a and fixed in 6.0.7 with commit ee98ab337036c983239aa550850861c88a5c4262 Issue introduced in 5.10 with commit 5215e16244ee5889cc6135381acdbf4cbcb7905a and fixed in 6.1 with commit 4c1f602df8956bc0decdafd7e4fc7eef50c550b1 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-50438 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/net/ethernet/huawei/hinic/hinic_debugfs.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/bb01910763f935b16538084b4269696e0de17f79 https://git.kernel.org/stable/c/e6765fe8de372a84f8dbe9e03ec13c7c70f946b8 https://git.kernel.org/stable/c/ee98ab337036c983239aa550850861c88a5c4262 https://git.kernel.org/stable/c/4c1f602df8956bc0decdafd7e4fc7eef50c550b1