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 4DCB21F0995 for ; Thu, 1 May 2025 14:19: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=1746109144; cv=none; b=S2qp4efXvAFP6vLuHLLpKcJCxvos0t16nu+/kagEb+/+281ZID0N4LsqSeVWazLKR9TbAFvOqMthIfK5+zA0hNINzGsunJteLxt/zMgQa9ZQAKom8c66LMR2Q5b7z9uUd+Kc1o8Q/sjwEWRuHnu04YONf6ij2gyvnDgJe92dqLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109144; c=relaxed/simple; bh=6HVuGIuhfkpcAwu7iabyejpL5FYwPeWbUwMYsJ+1vHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AVwCPhRgT0oQexrFlPIORNGctsqJKZcvwOAZtPyuOrpKLMCQrNWfiBQKFLOpV36+Ii25T28gz2bviDysnIofISMMq/aZLH1GLVMlDn2u/RXa5MmdJ6uq6+M0I2B6V8+7t5EcbzKyyzXkMNrgvhzizdOyb2TnqzJQ1G8/w23RjlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1CQqFFjr; 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="1CQqFFjr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE66C4CEE3; Thu, 1 May 2025 14:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109144; bh=6HVuGIuhfkpcAwu7iabyejpL5FYwPeWbUwMYsJ+1vHo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1CQqFFjrosbMYy1LgJBeTYcwOyKMBaZzB41ufEgCvmkd5tVlR/DWUiD9jV7fOGCgU 1z4yhoNjnxAsik+Pt0KvRvA6Lrub8AFZwDbHZ1Qm07skCPCPsx15K/7HY/QmM8xYY5 jwzXVP6SVJ/lHaUeehYTQMxCYvsSbkoz6O68D6BM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49923: nfc: nxp-nci: Fix potential memory leak in nxp_nci_send() Date: Thu, 1 May 2025 16:11:53 +0200 Message-ID: <2025050109-CVE-2022-49923-a098@gregkh> X-Mailer: git-send-email 2.49.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=2537; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=es4cRt6drJFwvqqXJf4HUqUtzE6GS/hVQZtYNJQY5Xs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQe/ptxb/WC2fUze95lzOe+k7Ji+dsbXuB8RumHPX CtTd86o7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbGRiWDD5RYXl6tIsn9/W zZmXnvxnU0urKWWYK7nObTq3edUZXw1nichiw16Hua2/AA== 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: nfc: nxp-nci: Fix potential memory leak in nxp_nci_send() nxp_nci_send() will call nxp_nci_i2c_write(), and only free skb when nxp_nci_i2c_write() failed. However, even if the nxp_nci_i2c_write() run succeeds, the skb will not be freed in nxp_nci_i2c_write(). As the result, the skb will memleak. nxp_nci_send() should also free the skb when nxp_nci_i2c_write() succeeds. The Linux kernel CVE team has assigned CVE-2022-49923 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit dece45855a8b0d1dcf48eb01d0822070ded6a4c8 and fixed in 5.10.154 with commit 9ae2c9a91ff068f4c3e392f47e8e26a1c9f85ebb Issue introduced in 4.1 with commit dece45855a8b0d1dcf48eb01d0822070ded6a4c8 and fixed in 5.15.78 with commit 3cba1f061bfe23fece2841129ca2862cdec29d5c Issue introduced in 4.1 with commit dece45855a8b0d1dcf48eb01d0822070ded6a4c8 and fixed in 6.0.8 with commit 3ecf0f4227029b2c42e036b10ff6e5d09e20821e Issue introduced in 4.1 with commit dece45855a8b0d1dcf48eb01d0822070ded6a4c8 and fixed in 6.1 with commit 7bf1ed6aff0f70434bd0cdd45495e83f1dffb551 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-49923 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/nxp-nci/core.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/9ae2c9a91ff068f4c3e392f47e8e26a1c9f85ebb https://git.kernel.org/stable/c/3cba1f061bfe23fece2841129ca2862cdec29d5c https://git.kernel.org/stable/c/3ecf0f4227029b2c42e036b10ff6e5d09e20821e https://git.kernel.org/stable/c/7bf1ed6aff0f70434bd0cdd45495e83f1dffb551