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 4C8A62C2369 for ; Mon, 15 Sep 2025 14:47:36 +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=1757947656; cv=none; b=cC1mFV7Jt+fuA5GyGs9tHg5G6WWA8rxXAS1zHj9nuLmHdHSrHxmJ/ifVKV2NEKI4hqW5jMG3UV+s+CzSVuFuJyoJY+lhbhOvmu80vkyPbLiH8fyjuNNB0OjrnlvfyTMQHJUX5NyqZup7PHFuFNGLqhv8nDH1rqKS2d/i5YLmtUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947656; c=relaxed/simple; bh=LVDxkyiRGmYOPRswTBeVDoj6T827rcem69HX7WfR1eY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PSVv9uRYyrLje1Rrx9HZ1fQEsH/3pbsV6ZUF8+NN46CG1r1D/yRs+mPied9+6TN4+nRRKxRHUWfU/NkN1gcia3v8c+iV8kXUSu7C6lmmKZlq8slhecij6m0ne5wzuAA353Tv4D5Ln341HCZ49EA2O+jhgyX+bJYujgO2kj/NdaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iY0/zOJo; 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="iY0/zOJo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAE0BC4CEF5; Mon, 15 Sep 2025 14:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947656; bh=LVDxkyiRGmYOPRswTBeVDoj6T827rcem69HX7WfR1eY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iY0/zOJotEplRigR7p8E+U+zWxZqBqzIGZfEUt5UAhPwRK9F/s0SQ/AOhRECXcc6U OfoUMojrubBuSS554pMVwRRmmWBJodF1m/WF+fRwEjDnhJ02abQTVFHo9RPd7sJtex iklLmbv70/voofTrdcFpVwvG+a1KCxki0sbcQUjs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50312: drivers: serial: jsm: fix some leaks in probe Date: Mon, 15 Sep 2025 16:46:14 +0200 Message-ID: <2025091500-CVE-2022-50312-105d@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=3435; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=J3U1eHIS6UmcXpZQ6uf1NPeZEkkeuGwPzJPpzmJIszQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1FYwH9+So+KlyX62X/XpfGa2qEn/Gy4Zv0i837z+x ek2riVfO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3+8xzJUUM30RsUypdvFl sYCvq1xtb35a1MkwT4H/dbLtgctnI65arDxU8S1kvlynHgA= 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: drivers: serial: jsm: fix some leaks in probe This error path needs to unwind instead of just returning directly. The Linux kernel CVE team has assigned CVE-2022-50312 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 4.9.331 with commit ff9a5e50fb1910be33e62925bc7ee3bef474879e Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 4.14.296 with commit 3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 4.19.262 with commit 6066bd69ffba3a6abc7c0793ccba1da79b7d77e3 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 5.4.220 with commit 744c2d33a88b082d9d504520f0132b3d688547b2 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 5.10.150 with commit 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 5.15.75 with commit 6be8e565a4a60530797a974d0a3d0e30656166a1 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 5.19.17 with commit 737594536dc3ce732976c0d84bb1dcc842065521 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 6.0.3 with commit 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8 Issue introduced in 3.19 with commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5 and fixed in 6.1 with commit 1d5859ef229e381f4db38dce8ed58e4bf862006b 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-50312 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/tty/serial/jsm/jsm_driver.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/ff9a5e50fb1910be33e62925bc7ee3bef474879e https://git.kernel.org/stable/c/3bf05c2650cf6b8d83bf0b0d808cc78c6ee7e84c https://git.kernel.org/stable/c/6066bd69ffba3a6abc7c0793ccba1da79b7d77e3 https://git.kernel.org/stable/c/744c2d33a88b082d9d504520f0132b3d688547b2 https://git.kernel.org/stable/c/71ffe5111f0ffa2fd43c14fd176c6f05d4e82212 https://git.kernel.org/stable/c/6be8e565a4a60530797a974d0a3d0e30656166a1 https://git.kernel.org/stable/c/737594536dc3ce732976c0d84bb1dcc842065521 https://git.kernel.org/stable/c/3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8 https://git.kernel.org/stable/c/1d5859ef229e381f4db38dce8ed58e4bf862006b