From mboxrd@z Thu Jan 1 00:00:00 1970 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 40E7525C812 for ; Fri, 2 May 2025 16:01:38 +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=1746201699; cv=none; b=pMLQoqnWUCrDPCNuoc2f1nI/GyvkxZfNYy9b7hj4EkfNUwPMf/I8UJ5PqI5KK/GlWjLjZ0qu7YO5i6XWVgbaB47zZfz6/nw4BL+pyXAAFFkDtv4iM5AtSJwb0nKH7lxsDeV6TVi1iczTUNwy8VKmMYdsEm8oQP5185nl9o5RtRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201699; c=relaxed/simple; bh=dUhcbrsva8vSTBfKzbp8nghwT5Lx+54xM5o6Egdv/8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d5GOjhyTCtF09slv0mVEZhaImW4qYrW+mw68HWnDxuf+jUO3DqD0thSD2a8nfj3hLl/gw1eAJskAJCVu29q+s/49I2h0vQ2elzPYjiQkQ24ejyh6WZiRd7qtv7BDpdC9AfWXsh1lyc32yISc6eMJwQyehZABbKxlzlubDO4nBtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2OhXeRJL; 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="2OhXeRJL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 656F8C4CEEF; Fri, 2 May 2025 16:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201698; bh=dUhcbrsva8vSTBfKzbp8nghwT5Lx+54xM5o6Egdv/8Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2OhXeRJLNfwqndwotrt1ajrLrdRWXZfaWME6ogJNxXxqYJj3396+QpZICimsp8s1L FYpRpUGYAp4AqlsAdzC7sUbj15oMcbOD3a8joNVYGVq4/o25brXCeVZX5Tgr9cgIvd GGDaoJBhBWdPAFEe34v3MO5PTfLf6efTJNLBQRCU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53139: nfc: fdp: add null check of devm_kmalloc_array in fdp_nci_i2c_read_device_properties Date: Fri, 2 May 2025 17:56:44 +0200 Message-ID: <2025050237-CVE-2023-53139-6557@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=3282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zoyadxm8SpqvnsTWsGv0URq7iT6qJyeikYbO58IqAY0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir36+iJI1TwjgY5Q4wBNwKNv8fWT1dC6zFYWiy5vmq 5+a4GvUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpncqw4Gb9ooW2a9/3fH2k FCr8q/dQgkDiO4a5gjwPK841ngm9cL0//rLfOjaWV1UeAA== 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: fdp: add null check of devm_kmalloc_array in fdp_nci_i2c_read_device_properties devm_kmalloc_array may fails, *fw_vsc_cfg might be null and cause out-of-bounds write in device_property_read_u8_array later. The Linux kernel CVE team has assigned CVE-2023-53139 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 4.14.310 with commit ad11b872bc9b5d27e56183c6b01f9218c85395d2 Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 4.19.278 with commit 98f49e693e02c1dafd5786be3468657840dd6f06 Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 5.4.237 with commit 0a3664a1058d4b2b1ea2112cc275ca47fba7fc08 Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 5.10.175 with commit 80be62358fa5507cefbaa067c7e6648401f2c3da Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 5.15.103 with commit 4357bbb921fe9e81d0fd9f70d669d1f177d8380e Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 6.1.20 with commit ce93f1afc05941a572f5a69e2ed4012af905a693 Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 6.2.7 with commit 27824b2f98818215adc9661e563252c48dab1a13 Issue introduced in 4.4 with commit a06347c04c13e380afce0c9816df51f00b83faf1 and fixed in 6.3 with commit 11f180a5d62a51b484e9648f9b310e1bd50b1a57 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-2023-53139 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/fdp/i2c.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/ad11b872bc9b5d27e56183c6b01f9218c85395d2 https://git.kernel.org/stable/c/98f49e693e02c1dafd5786be3468657840dd6f06 https://git.kernel.org/stable/c/0a3664a1058d4b2b1ea2112cc275ca47fba7fc08 https://git.kernel.org/stable/c/80be62358fa5507cefbaa067c7e6648401f2c3da https://git.kernel.org/stable/c/4357bbb921fe9e81d0fd9f70d669d1f177d8380e https://git.kernel.org/stable/c/ce93f1afc05941a572f5a69e2ed4012af905a693 https://git.kernel.org/stable/c/27824b2f98818215adc9661e563252c48dab1a13 https://git.kernel.org/stable/c/11f180a5d62a51b484e9648f9b310e1bd50b1a57