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 29DE010A1F for ; Tue, 29 Oct 2024 00:51:03 +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=1730163064; cv=none; b=NnesuPinnWNpKkQGlbHxCj3qXR2VxosmpY52caCLKlgaT5ZEuR29+P9SvCcdJoV44Wb4Kcj8Lww2W6qSEhMJm96MtXiXNZPrm+kejrHSqHp2fW4iV8Ox9F2Xdjgpl3XTkoD4+IyvKbpeDvj4biZfoLuDB/kziiPNqLZVsgQTtd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163064; c=relaxed/simple; bh=9amYv8ZjNKLIsmBMVoZYuqNULu+7qeOC+qF3t9gf4xg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SvvE8SjKrgWM3lFwonlL7PMulyu04bexRjhPg0QnscWC0+NGJQa6fkqnFLArCOMBdYkYgtI+3gQpOexE+6Q1bHfGgK8wtvjpYHopwSHysdfKG10j2RZksyBXUMichNxxT3IA1f1lXCuOSedCV/Ofp1/QkaFnXIrH31GcaGKozXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FX/oOqeg; 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="FX/oOqeg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D4DBC4CEC3; Tue, 29 Oct 2024 00:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163063; bh=9amYv8ZjNKLIsmBMVoZYuqNULu+7qeOC+qF3t9gf4xg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FX/oOqegwoL+E6V3Ks76Fvz0/QfAVYXkqEQ89sB0xgxTRX2qy7x2eUtUAQunv0qZT 29YxEUXEfpw7/D9s3MpwQ3ReEciVvlq74Ktdx5G+MJa+M1BYt/D7yFw2XsmJlXWY05 QGeVGZSBzX3wzjtTQykhgibKExx5DAhJ+pcxDdIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50071: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func() Date: Tue, 29 Oct 2024 01:50:34 +0100 Message-ID: <2024102934-CVE-2024-50071-6dd6@gregkh> X-Mailer: git-send-email 2.47.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=2005; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9amYv8ZjNKLIsmBMVoZYuqNULu+7qeOC+qF3t9gf4xg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhlGrvzQKC3xjkPu2tvD++bZDNxTWW+1fH782g+Xum jSfI1cudsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBETp9mWHAxqm2zg1zZn0+W F/Yldu5tdZn6+QrDPNVVPq+fe9qcWHTplE5ozpSTH9/JmQEA 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: pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func() 'new_map' is allocated using devm_* which takes care of freeing the allocated data on device removal, call to .dt_free_map = pinconf_generic_dt_free_map double frees the map as pinconf_generic_dt_free_map() calls pinctrl_utils_free_map(). Fix this by using kcalloc() instead of auto-managed devm_kcalloc(). The Linux kernel CVE team has assigned CVE-2024-50071 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit f805e356313b and fixed in 6.11.5 with commit 6441d9c3d71b Issue introduced in 6.11 with commit f805e356313b and fixed in 6.12-rc4 with commit 3fd976afe974 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-2024-50071 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/pinctrl/nuvoton/pinctrl-ma35.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/6441d9c3d71b59c8fd27d4e381c7471a32ac1a68 https://git.kernel.org/stable/c/3fd976afe9743110f20a23f93b7ff9693f2be4bf