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 6E709D515 for ; Tue, 29 Oct 2024 00:51:02 +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=1730163062; cv=none; b=Uv8G1Zpk0TmPJ3PJhM96Hpms2bkMLzVUy28AJyRXktjgamrRehxg6jkpEVioLkxVy9eBi8fLgnhseXjzATSQVk1S+VufjrkSUvzJBlaHg0musJl7DA6ZOH/CaDy0BnWj8BtVQIDi6QAB+LTjIb5GBgl/kgEucCPcACtOvlKQ2cE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163062; c=relaxed/simple; bh=/wzpWOK0dxza5bshpe0SmOyYuzRV8dDEj+d0kGJjt3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=faAp0TELPn3OnmB8NUpGttedcSlVwLvtn9I+zZMjoO+d7zdvcOQwWaXnPydPuSSfkIJvDQTAmv4xVQCFoGKAM+0MXkCVCltiWBjE5XlY7Ua3OOEXsTOxVCu+n92WM8euHc7jq1RdwCulg7iHBrHGGvSeGa+jkO62Q4XKGU15HiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lPGLuXcF; 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="lPGLuXcF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF4E3C4CEC3; Tue, 29 Oct 2024 00:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163062; bh=/wzpWOK0dxza5bshpe0SmOyYuzRV8dDEj+d0kGJjt3Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lPGLuXcFkXMvBMfIGRSLrSYHVxZFgQ81KsSUwZDtyyQ1iUNDRov1Izqei6e8Z3HYY WMv7WK8x2K2/vm9R4rE+lJDMb/MLkRQbAY8f8gJUTkWGHbL0EdIqyMhioGoDBiYifT mhy8MpyRJBoRd0CBI81eEHSZJTeqX9n5BP4VrL0I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50070: pinctrl: stm32: check devm_kasprintf() returned value Date: Tue, 29 Oct 2024 01:50:33 +0100 Message-ID: <2024102934-CVE-2024-50070-1cc7@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=1998; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/wzpWOK0dxza5bshpe0SmOyYuzRV8dDEj+d0kGJjt3Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhlE+JbEe2/+r3e//f/hT7pFMQ/1ZJqd9n31N+6t+a EfR8Y1cHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARRyGGeWZTmg9EWkaLqHMx 8S7sNHDhMlPczbBg0sTJUUIM5yc8mNvl/eXc5P9zvoW5AgA= 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: stm32: check devm_kasprintf() returned value devm_kasprintf() can return a NULL pointer on failure but this returned value is not checked. Fix this lack and check the returned value. Found by code review. The Linux kernel CVE team has assigned CVE-2024-50070 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 32c170ff15b0 and fixed in 6.6.58 with commit 3b36bb1fca2b Issue introduced in 6.6 with commit 32c170ff15b0 and fixed in 6.11.5 with commit 1f266957ae12 Issue introduced in 6.6 with commit 32c170ff15b0 and fixed in 6.12-rc4 with commit b0f0e3f0552a 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-50070 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/stm32/pinctrl-stm32.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/3b36bb1fca2b87f6292ca2a8593f297c5e9fab41 https://git.kernel.org/stable/c/1f266957ae1207b0717c2d69096bc70654ae9fcb https://git.kernel.org/stable/c/b0f0e3f0552a566def55c844b0d44250c58e4df6