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 509A2165EF8 for ; Wed, 18 Sep 2024 07:19:45 +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=1726643985; cv=none; b=hBjILdoAvT0XJFu9JK3xaOpHTngzyNu95UTwtNnTUII9fKHj2mpb4vVkclxd03N6ZKmTV+8Ekltu3+lsqlTBL3qvndOIYzA+SZi/NyxrzmDxIdyWwAKhhmAw0Lsdep3A5fo88LbN3j9cjx3gvE1KYmE23ZWXAWRhg84dUnz2sqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643985; c=relaxed/simple; bh=k8OoR6SJ4dqb7SZvsAX2VGrDp926prAJNaFhMLPPnGc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U8+Le7HyuxK6gGe+1vfDPchR6+nsw63tjSDyTr6ajO3CSFFymqf0RDdeLDEL8N/V03Azi600t1M6VwtW3Z2l1dYJdQ+utBF843oWQQuhynrmA7cuKRasVOjDrpCA4tz+FPxgF5CZOr1K0UJw4qbkqx0gUgPIP4d5YgP6yeqtHqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zP55cYwU; 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="zP55cYwU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8A71C4CEC3; Wed, 18 Sep 2024 07:19:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643985; bh=k8OoR6SJ4dqb7SZvsAX2VGrDp926prAJNaFhMLPPnGc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zP55cYwUndgNOXRLL6YgdjxtkMmbAu4pZUFNfJk9o4zGemgBatD1NN3OFMrZHyUwH UdsDPoL+9qwz5xZ9/6IrLwIg1hXFlYeTvcK43RcjdS2GNzcH/cyJzByZuhP3TnrCRm 9Qut72wXKxqGqpEHi9C0CveSBILEIh8V/VZbMDhY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46769: spi: intel: Add check devm_kasprintf() returned value Date: Wed, 18 Sep 2024 09:17:04 +0200 Message-ID: <2024091845-CVE-2024-46769-9b81@gregkh> X-Mailer: git-send-email 2.46.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=1797; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k8OoR6SJ4dqb7SZvsAX2VGrDp926prAJNaFhMLPPnGc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6mL37bM/+mbT2mIpD+WVi9vDX79hnjq5rlYl67r8W yX18C3KHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR6XYM8yMO3pFZxb4kNOvn E6Yife3/nEKTyhnm15/zkHGyKljWk7TDamup9iHONQuqAQ== 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: spi: intel: Add check devm_kasprintf() returned value intel_spi_populate_chip() use devm_kasprintf() to set pdata->name. This can return a NULL pointer on failure but this returned value is not checked. The Linux kernel CVE team has assigned CVE-2024-46769 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit e58db3bcd93b and fixed in 6.10.10 with commit 6e68abdc5d67 Issue introduced in 6.9 with commit e58db3bcd93b and fixed in 6.11 with commit 2920294686ec 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-46769 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/spi/spi-intel.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/6e68abdc5d674f9f4185bf1e1956368d05df4838 https://git.kernel.org/stable/c/2920294686ec23211637998f3ec386dfd3d784a6