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 1D851D515 for ; Thu, 18 Sep 2025 13:34:22 +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=1758202463; cv=none; b=pUP666h2VVhgok54zG118CrG+sG6i0BXZXnQYQhSHQrVjyouz0XstvHhvts4ZMTES/i4LhmWr3Y+UTwnUwfyGL03IUM9kXAuSDXW8y/FkXCL1e4wjpHF1BJHwgwbM10mLjJlcEDV9iwCj2Ed2DwVB8h45PrNxAw3R0sHVIYKft0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202463; c=relaxed/simple; bh=FQGyy4jRXxJlZay6Tfs7p8YRlfUDtofzJCVKJOvTWRY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HiCUao+/mNEIHzIuLwH5zjgRub7Wh1glAcHXXK9DcTCTO8H2wRyeoNmeuf+vPvolNemJ+vnMCz5/VUqIyk/gjc/Li2WZumbiy5UU7cWoe60+WMT9+eR03qxl+K3/aGRc1dz7ESL+A8MKuOOmDS+Nd2q/OnWmKax5lbPbRRZNmEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P5bH2YcI; 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="P5bH2YcI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47ECCC4CEE7; Thu, 18 Sep 2025 13:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202462; bh=FQGyy4jRXxJlZay6Tfs7p8YRlfUDtofzJCVKJOvTWRY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P5bH2YcIXOHKpEXCv7J8F04hQW63LNnrd7wTgJDQKSeuH5IemvX+4bT+grQfCicMN BBEXiL+Lo3NkaydlfLBjd0Wks6RSe0fb9lGEOSqEATOX4u37KNAONEJWrUqqv/TotI RnXIuL5AiXCflhs11gdCun5MeI0+qFNTm+14WAXI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50387: net: hinic: fix the issue of CMDQ memory leaks Date: Thu, 18 Sep 2025 15:34:01 +0200 Message-ID: <2025091852-CVE-2022-50387-cd0d@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=2340; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JDOn1oFMqNdYi/PDq+DtETUvK4eOdSDevVGYjKE0t/4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuByOcjGsStfwFP4YO3/6u2v37ZQ2Lm3w8Mg4uunSl LvyERc1OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiT1sZZrOWre/Y3M0YGduw vPLAt4hNSc88wxnmafV+WxSbMD2Rx0xsre3eGWwM76ImAQA= 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 the issue of CMDQ memory leaks When hinic_set_cmdq_depth() fails in hinic_init_cmdqs(), the cmdq memory is not released correctly. Fix it. The Linux kernel CVE team has assigned CVE-2022-50387 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 72ef908bb3ff9261dc38d079ef332c91418f8693 and fixed in 5.10.153 with commit 6603843c80b16957f5d7d14d897faf13cef2b8b9 Issue introduced in 5.8 with commit 72ef908bb3ff9261dc38d079ef332c91418f8693 and fixed in 5.15.77 with commit 6016d96a6adf66d61655d85da02e1a4c1deccbd6 Issue introduced in 5.8 with commit 72ef908bb3ff9261dc38d079ef332c91418f8693 and fixed in 6.0.7 with commit 9145d512ddff76df88832b29575488199df544a1 Issue introduced in 5.8 with commit 72ef908bb3ff9261dc38d079ef332c91418f8693 and fixed in 6.1 with commit 363cc87767f6ddcfb9158ad2e2afa2f8d5c4b94e 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-50387 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_hw_cmdq.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/6603843c80b16957f5d7d14d897faf13cef2b8b9 https://git.kernel.org/stable/c/6016d96a6adf66d61655d85da02e1a4c1deccbd6 https://git.kernel.org/stable/c/9145d512ddff76df88832b29575488199df544a1 https://git.kernel.org/stable/c/363cc87767f6ddcfb9158ad2e2afa2f8d5c4b94e