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 8EF7D212B32 for ; Wed, 26 Feb 2025 02:13:04 +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=1740535984; cv=none; b=J/eEK0ooBBSZ70SsSpy9Gdxp/DjbyeJ5D07xCXWF6Fr1X0gf0mjma7LILmK8tC7kv1wO3/mF7TanXl4WPS+Ciwt9uT6LtQd5XP8AQ3hDw5SEHsAKoZ6C9uvjFcY6wMBPAr0JvQVYG4hh5CpEJLSKWiqLHn0AugnQA4bpV0XnM4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535984; c=relaxed/simple; bh=vOWnzto0CyOqIa8f2UhMjnAm7SRZC01yDTvbzmdFXPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bJAAo3k5rk7gl+FRMHHHmTn30ExUWXyrgoKEtx8EGZEXNORrwkApjM4+eDMYMDkjoNBKqvnMHPkyRfSQnBnuEMxRLSY+SUuc8hEGGNiK/NPHJ34GBtTyAhik3/ZhpOsUlDZacdZ//LvCFDaAs6uYx/msjEjMFTH97vOqNh9Fn/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qK5Rv/u4; 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="qK5Rv/u4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 023FDC4CEDD; Wed, 26 Feb 2025 02:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535984; bh=vOWnzto0CyOqIa8f2UhMjnAm7SRZC01yDTvbzmdFXPE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qK5Rv/u46/VQ+d+1SbY2pPVYu+AjsL91HLp3x86c7jImq0GcYjz8/FVqKO/iK4xzo fEP01Kgpbjs11bysWComRBAW6bcdab1q3Kyr1poSZOLzpIhIOurg6zaKSd36oMXtn9 yjicXB4qGQod7Ho7dLzud7MuxSXx4GEw+MhJ7sY0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49331: nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling Date: Wed, 26 Feb 2025 03:10:05 +0100 Message-ID: <2025022639-CVE-2022-49331-f86f@gregkh> X-Mailer: git-send-email 2.48.1 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=3459; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vOWnzto0CyOqIa8f2UhMjnAm7SRZC01yDTvbzmdFXPE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yh97yH0xie+3Ki2+tHxiUWXt/JItPrcUDtxlu825v SD96fIpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARyQqG+Tnp626+8kyL+eR1 0D7++nnbrR5PtjPM4TOZ3CkxLef6pKSZ7/W3nHYJ/q28EwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling Error paths do not free previously allocated memory. Add devm_kfree() to those failure paths. The Linux kernel CVE team has assigned CVE-2022-49331 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 4.9.318 with commit 593773088d615a46a42c97e01a0550d192bb7f74 Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 4.14.283 with commit d221ce54ce331c1a23be71eebf57f6a088632383 Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 4.19.247 with commit 6fce324b530dd74750ad870699e33eeed1029ded Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.4.198 with commit 3eca2c42daa4659965db6817479027cbc6df7899 Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.10.122 with commit 54423649bc0ed464b75807a7cf2857a5871f738f Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.15.47 with commit f444ecd3f57f4ba5090fe8b6756933e37de4226e Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.17.15 with commit db836b97464d44340b568e041fd24602858713f7 Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.18.4 with commit 55904086041ba4ee4070187b36590f8f8d6df4cd Issue introduced in 4.0 with commit 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 and fixed in 5.19 with commit 996419e0594abb311fb958553809f24f38e7abbe 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-49331 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/nfc/st21nfca/se.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/593773088d615a46a42c97e01a0550d192bb7f74 https://git.kernel.org/stable/c/d221ce54ce331c1a23be71eebf57f6a088632383 https://git.kernel.org/stable/c/6fce324b530dd74750ad870699e33eeed1029ded https://git.kernel.org/stable/c/3eca2c42daa4659965db6817479027cbc6df7899 https://git.kernel.org/stable/c/54423649bc0ed464b75807a7cf2857a5871f738f https://git.kernel.org/stable/c/f444ecd3f57f4ba5090fe8b6756933e37de4226e https://git.kernel.org/stable/c/db836b97464d44340b568e041fd24602858713f7 https://git.kernel.org/stable/c/55904086041ba4ee4070187b36590f8f8d6df4cd https://git.kernel.org/stable/c/996419e0594abb311fb958553809f24f38e7abbe