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 9CE3B197543 for ; Tue, 16 Jul 2024 11:13:38 +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=1721128418; cv=none; b=ptdht8BSESjh20PyYH0GWhTClJfjXmggz5vS/bwAYsa3o6kAqV7IpTvSZZpWy1KYu18mnpC+Q/UlcS3eRJxZOg+XAKYynOg+shLVBIVcvbkqzZp3NBsVunHQV5nMY3SsT7oyf2ft1L3wngozrwBqoljwCVTsXw+T11k+PSm0J4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721128418; c=relaxed/simple; bh=i1HJlLLHbFC2yslPFze7N0vxmWxVV5qLmxnYWCDwLDo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s/r00madMbwB86jyM9aPD+a0goO5/ONQ+hLUcMThCgR9rsDXTTi+lYIDXfA4M790OKM472DvG9D0/+2l5g8lpz2szR3Qw865u6AF4WyuW7xlMp7hBdYJSi+RL9+/4q/dNz7wUJUFpsZPBHrUnEAXSUMCfm5t/Uhjc7AIIofga84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ifSE6jhn; 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="ifSE6jhn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0C71C116B1; Tue, 16 Jul 2024 11:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721128418; bh=i1HJlLLHbFC2yslPFze7N0vxmWxVV5qLmxnYWCDwLDo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ifSE6jhniEEOv7zSrRpbvS3TMAW+dxcpCwGzOnSef7NZzFMHTTCyw6yhK3GXtll2W 3+zDsoM4CU2zOheyD0om6o5+c/76igHuQg9/n+YQ8Pew8DGP+QR82it/nLHE2rd70k PyZx00xf4aO3Yprhy8kn6InniAEl7EBjuONYZhR4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48774: dmaengine: ptdma: Fix the error handling path in pt_core_init() Date: Tue, 16 Jul 2024 13:13:28 +0200 Message-ID: <2024071631-CVE-2022-48774-f680@gregkh> X-Mailer: git-send-email 2.45.2 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=2122; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i1HJlLLHbFC2yslPFze7N0vxmWxVV5qLmxnYWCDwLDo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTQm+7H9DnOt2t2nP25nKpa5FtifI5HU27FVXM9lddV BOZd+hJRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkoSvD/GTt1C7d6sj8qVZ7 H2Xdztl5p6hXiGHBMoaijHCPjhtn/CPSv+14/oC1b8F3AA== 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: ptdma: Fix the error handling path in pt_core_init() In order to free resources correctly in the error handling path of pt_core_init(), 2 goto's have to be switched. Otherwise, some resources will leak and we will try to release things that have not been allocated yet. Also move a dev_err() to a place where it is more meaningful. The Linux kernel CVE team has assigned CVE-2022-48774 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit fa5d823b16a9 and fixed in 5.15.25 with commit 3e41445287af Issue introduced in 5.15 with commit fa5d823b16a9 and fixed in 5.16.11 with commit d7de1e4820c5 Issue introduced in 5.15 with commit fa5d823b16a9 and fixed in 5.17 with commit 3c62fd3406e0 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-2022-48774 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/ptdma/ptdma-dev.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/3e41445287afa3cf6d572778e5aab31d25e60a8d https://git.kernel.org/stable/c/d7de1e4820c5a42441ff7276174c8c0e63575c1b https://git.kernel.org/stable/c/3c62fd3406e0b2277c76a6984d3979c7f3f1d129