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 DC0C8168B1 for ; Tue, 29 Oct 2024 00:50:52 +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=1730163052; cv=none; b=UJvhDjSMV6ZeOXgbjhp0d3TOXEvxb+Op+9hTpyewkA75050lIXq2OxJabM9j57Oomdkz9w57TIHkOKTOgmvSVsj/R4ir1/X4CYgQzOUv1Cfp/I+OPBX/PWCIg2Y1tB5Nrwh5VBh4IrJgJPLNhIhaFgeDwE4Dnd0/yxvh/JLQec8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163052; c=relaxed/simple; bh=FAeE/ODYrwVQphbCYevBCZen6vWm47Efs7FcINuyoaQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q3NB9wmXGeMaYIPELvmg5gynUKNW+fcVWhJQB5tt1IQaRKaxDaMsu1nx6rnFa0CgoS99nPoUiHgVbNyS0fR7UBlcni/QgCbY28cVL6L0g7/pF4YF2SQ/i34hAH+N8+hXp48EPBSR9qWg9XOtNkq1RPDFsXRrxKP2LLsx3GPVBQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yZCqNNwM; 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="yZCqNNwM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37B3FC4CEC3; Tue, 29 Oct 2024 00:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163052; bh=FAeE/ODYrwVQphbCYevBCZen6vWm47Efs7FcINuyoaQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yZCqNNwMsceFIOoKWyi2PTMVhIBKvihF4LkrWixuCjEL1n0OwLg/t5P0RxkCOHBqP 92jHZ9Zj6W8tQE02znGYk6E0kM4H76HyiQlbRjFGYtQD0X0KstFNJ8hklyoSBq8Qwo qWEIO1wm5eOe4rpKsah43ki6zPWVnPtlgcJN1520= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50069: pinctrl: apple: check devm_kasprintf() returned value Date: Tue, 29 Oct 2024 01:50:32 +0100 Message-ID: <2024102933-CVE-2024-50069-fe0a@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=2173; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FAeE/ODYrwVQphbCYevBCZen6vWm47Efs7FcINuyoaQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhlHZv+fO/8/HW6mR+mr9Tb7dq7mq6w4JH7s54U/23 wXmPQfudMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEugIYFjRydTTLzP9g4M1/ gXW6ywW9H0HsaQzzHfWq+t4zzec6yP/wuZlA8taf6l/dAQ== 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: apple: 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-50069 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit a0f160ffcb83 and fixed in 6.1.114 with commit 0a4d4dbef622 Issue introduced in 5.16 with commit a0f160ffcb83 and fixed in 6.6.58 with commit fad940e2dd78 Issue introduced in 5.16 with commit a0f160ffcb83 and fixed in 6.11.5 with commit 4d2296fb7c80 Issue introduced in 5.16 with commit a0f160ffcb83 and fixed in 6.12-rc4 with commit 665a58fe663a 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-50069 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/pinctrl-apple-gpio.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/0a4d4dbef622ac8796a6665e0080da2685f9220a https://git.kernel.org/stable/c/fad940e2dd789155f99ecafa71a7baf6f96530bc https://git.kernel.org/stable/c/4d2296fb7c80fdc9925d29a8e85d617cad08731a https://git.kernel.org/stable/c/665a58fe663ac7a9ea618dc0b29881649324b116