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 E5BB9E567 for ; Thu, 1 May 2025 14:13:29 +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=1746108810; cv=none; b=Sbhu7u/qRjQeJbQr39MS8hi1Noel5789m/DRHRsVlvXjVM+2x97C+bfq0dO+yLvn7hKZWBYpDg6R/OfTKIjRrY4y/6DpyMmJw6iy42eA+xX/RXI+yG6zx2zq0kc1/UkVyqJpG6H5nWRH+VqChqL7ukd32u2kJ4MS5Ud36tAOzig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108810; c=relaxed/simple; bh=yTQS3TF+ynl9+yWFYAfLs9OwIzAxhPdGuTerLwTyT/c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=COlaPogVmxbM0UK0fcHcunWiUV9qRR4DoUQfzwkf3LGCQB5tWmO2/prqF31UjrjqdEXeLyNQEXzuY4zN+9z98fFUVc+YQLf0GZrWl5d2OpCqgjv+SwsbM6xspwJtYBzRybqnl9FLmY/nOKgbUg1Oa7o0wzwJNzunujmF0529I9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qt3HSsZ3; 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="Qt3HSsZ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 661BAC4CEE3; Thu, 1 May 2025 14:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108809; bh=yTQS3TF+ynl9+yWFYAfLs9OwIzAxhPdGuTerLwTyT/c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Qt3HSsZ3HxCRwvHOTvMaee9+/6LlxSD0Q3Zkj8KlfaZIiZhYYcT6m/FA6CAYv0Btv BJ+Ccb0inRjEqMoPsWavJ5trf8trzcvAiezCWDo4gTj+Y3HLMMkyKTBZldzoItnE9S 7z0RY/p4NCXTraezHGMHuIAafb2V2gG3weRv2tH4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49819: octeon_ep: fix potential memory leak in octep_device_setup() Date: Thu, 1 May 2025 16:10:09 +0200 Message-ID: <2025050132-CVE-2022-49819-6eb6@gregkh> X-Mailer: git-send-email 2.49.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=2075; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T5BEv+hJuCdbaOCshoN/4yzaBOly9FeAg7t5JRkWeu0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDXMmK/VdO7PeNufDbrVFifvXP2+YKDcv7UnVSomzv 6Y7zPee2hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATydZmmCvjNX3t41Pf/+5Z e+bwD2eBljnijk0MCxq5BWZd+Pz9xNbtkse6Hjqculf45hMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: octeon_ep: fix potential memory leak in octep_device_setup() When occur unsupported_dev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hw_addr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hw_addr under unsupported_dev and mbox init errors to fix the problem. The Linux kernel CVE team has assigned CVE-2022-49819 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 862cd659a6fbac664f1fcdd7149046040a7a7e9c and fixed in 6.0.10 with commit 67b65a0db8a7fdad43159819f41335497a4bb04f Issue introduced in 5.19 with commit 862cd659a6fbac664f1fcdd7149046040a7a7e9c and fixed in 6.1 with commit e4041be97b15302ebfffda8bbd45f3b2d096048f 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-49819 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/net/ethernet/marvell/octeon_ep/octep_main.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/67b65a0db8a7fdad43159819f41335497a4bb04f https://git.kernel.org/stable/c/e4041be97b15302ebfffda8bbd45f3b2d096048f