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 61C18152DF6 for ; Wed, 3 Apr 2024 17:33:12 +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=1712165592; cv=none; b=eIEEsNry+pbNPtay6raV1lCjavXQjoiaiTyIbEAaiMgoEx/P8IU8aHV35JYPKl8h1sHGUciy6AuM/hUnfYxZqlzCvijS4ra7emIeN936FGuV7IQIHpa/pAnTGQ0MclEt87/yKjWx9S25U5rh0gF2OADti8EwBA/VQ7aWQNsLdAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165592; c=relaxed/simple; bh=enXfd0sGj75sgjvw55bQFv3akHvHg0/6Ad5IVqReNdM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AIz9bsZpiBec423xV6d8scAbCikQkbSjNWCsCFrJHtu4GZUaUfkD9gJtuVEpiDNNKW8bzpfb6TQG2BNoqz86lMXBoLuysaS52RphILxBdFyUQ1mGW3ePa1iikWsAnT0kkpQyAuhvTxjZPcCyzyeMbgc1DgmN0drTebCq1m5y6nI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YQHHBAvK; 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="YQHHBAvK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 873F9C433F1; Wed, 3 Apr 2024 17:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165591; bh=enXfd0sGj75sgjvw55bQFv3akHvHg0/6Ad5IVqReNdM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YQHHBAvKc1IO4561D4AcLeiSgLDrT9TeKCJi05h1Xcy7Z9YBceBC7JeVzfo+CNxSf 2LSJiDJJ5mkD9poF6eYXn7ODAQSRY8yiGP823rYpdEtv7LYTzHomghH0mpd0+PnA3X dE+c4aR4AhLFCMlPsKcZlnMV7ywCo4qGh0vOiOEg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26771: dmaengine: ti: edma: Add some null pointer checks to the edma_probe Date: Wed, 3 Apr 2024 19:31:38 +0200 Message-ID: <2024040307-CVE-2024-26771-b6de@gregkh> X-Mailer: git-send-email 2.44.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=2197; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=enXfd0sGj75sgjvw55bQFv3akHvHg0/6Ad5IVqReNdM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8k2JSRZKlG+We6hxuXP39D6uBUfsVvbuLXf/b9XC9+ BbksnRtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyELYJhrvA/9dUnPX/Ib6g4 /vzV52ZltuSzygwLmlS3dt2I6BGaeaWpbade7/TuaNEuAA== 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: dmaengine: ti: edma: Add some null pointer checks to the edma_probe devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. The Linux kernel CVE team has assigned CVE-2024-26771 to this issue. Affected and fixed versions =========================== Fixed in 5.10.211 with commit c432094aa7c9 Fixed in 5.15.150 with commit 4fe4e5adc7d2 Fixed in 6.1.80 with commit 9d508c897153 Fixed in 6.6.19 with commit 7b24760f3a3c Fixed in 6.7.7 with commit f2a5e30d1e9a Fixed in 6.8 with commit 6e2276203ac9 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-26771 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/dma/ti/edma.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/c432094aa7c9970f2fa10d2305d550d3810657ce https://git.kernel.org/stable/c/4fe4e5adc7d29d214c59b59f61db73dec505ca3d https://git.kernel.org/stable/c/9d508c897153ae8dd79303f7f035f078139f6b49 https://git.kernel.org/stable/c/7b24760f3a3c7ae1a176d343136b6c25174b7b27 https://git.kernel.org/stable/c/f2a5e30d1e9a629de6179fa23923a318d5feb29e https://git.kernel.org/stable/c/6e2276203ac9ff10fc76917ec9813c660f627369