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 542C2146D5A for ; Sat, 17 Aug 2024 09:23: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=1723886582; cv=none; b=ppM9sf7Ueuyx6c5bSVwJ8OCpKNtNgEQSDUHxRkw2/nk7udjXMEZgnh+Xp6cVW7SDRyzsmgX+Wp4SqmPR8nejcFcULP78sS8RTVD1h0UDWLQD6ntJ1KMMD/th9aO1+Av5J4tbTbMrI4Dr5A4zHIco0N8QhOC+Qk9jLh5KJdReNnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886582; c=relaxed/simple; bh=/0NCz1B9v3l5mn1IlyP4HvlRh99aAQANAYxksgu50h0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=iyaoOJnnr1m+Lt8MRgQaIPOQdPcZ8vs09kRgiW3u1kyhzUdSx2FfnDpZFCXe4hHIDHIu4Dbs6qWk2S/DAG/lZFZ+BgWTUM2uHxrjWshO6korBLemYv77g1LQHkit00qFhGoonBfts76RgQOOCuJ1AzUA4TSz4dGbwBJ0qweUaBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dUwZyB9B; 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="dUwZyB9B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B817BC116B1; Sat, 17 Aug 2024 09:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886582; bh=/0NCz1B9v3l5mn1IlyP4HvlRh99aAQANAYxksgu50h0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dUwZyB9ByJ59OMpzuFbWWF1HofVoQCnhwTjszePub4Wur3uNcIE5tLOq5yfGzHKBF +HgsgnS3lpYux4gY4gc8ntGIk1fehmWXF8wO+4+gOKmGWHX/qYgOf2M7u1XMauNRwP 4S4+Oxyud2jBqZ+OY3kcN2eWA5gf1TJr+ryV+wmU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43822: ASoc: PCM6240: Return directly after a failed devm_kzalloc() in pcmdevice_i2c_probe() Date: Sat, 17 Aug 2024 11:22:26 +0200 Message-ID: <2024081724-CVE-2024-43822-6511@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=2019; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/0NCz1B9v3l5mn1IlyP4HvlRh99aAQANAYxksgu50h0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsi9s8ktePPnCbzbJ80GnL+73SNmZtL+az+QI03653 9Mtlij87ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7ExnWLDx/M3mYyEr8rrS knKLby6UDz8pzs8wT2Xj7LNrOX5xZDu+P3ZoD9/G6syHGwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoc: PCM6240: Return directly after a failed devm_kzalloc() in pcmdevice_i2c_probe() The value “-ENOMEM” was assigned to the local variable “ret” in one if branch after a devm_kzalloc() call failed at the beginning. This error code will trigger then a pcmdevice_remove() call with a passed null pointer so that an undesirable dereference will be performed. Thus return the appropriate error code directly. The Linux kernel CVE team has assigned CVE-2024-43822 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 1324eafd37aa and fixed in 6.10.3 with commit fa6f16eff732 Issue introduced in 6.10 with commit 1324eafd37aa and fixed in 6.11-rc1 with commit 3722873d49a1 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-43822 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: sound/soc/codecs/pcm6240.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/fa6f16eff7320c91e908309e31be34cbbe4b7e58 https://git.kernel.org/stable/c/3722873d49a1788d5420894d4f6f63e35f5c1f13