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 76B0B28A1DE for ; Wed, 18 Jun 2025 11:09:22 +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=1750244962; cv=none; b=sarxRCTJJgbwL2C+jRnPohZ7pxNz8s4wVw3J+9MGvIDzRtiJvfWAx84e3YqV6uWFXPzboGB16Hg26HcfFymxBAMMaGMGJ3CX0pjG1Od3xDevHnqOXLSTx/KCdIDOq0zmnVgLE3WAPDNo8IiO9UqSwRnoztxKE/iQdBdx/M1VDHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244962; c=relaxed/simple; bh=IvtZW99t4UNssdfwLblEpyFNB+naYhiuJUVhiV94hp8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JRbd/LghkPExDXS1RH+OvUhh7cGNbZOTLcfqfleIVIy72zj/rMy0+h53hWh3UXl7QpWC/16ke8gIPjgwxgtNgKBdvOyVeHuL7aZ+DMgIo9SXm7qnARKt6ZUWgMuKrT3YWTHBS3avCk30ee+lVhRqnAuozLNnc/2X7M4tr2x0VpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FVNiHKTA; 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="FVNiHKTA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05B53C4CEE7; Wed, 18 Jun 2025 11:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244962; bh=IvtZW99t4UNssdfwLblEpyFNB+naYhiuJUVhiV94hp8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FVNiHKTANTZie4NsAoeZAofQ6+LNHPKMFu5YlTGz87v3flPMFfVwbsJhLrgEZNRKj BuS6fonXEpQwwCHhjwTZ82nEaCanY2xRYmW2YAFnG973nMDs9w1SIANWpd/SDU0cji zPoIOH35/J5mZUI110xAVKvgwX7JuNLEFXPRpxn8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50088: mm/damon/reclaim: fix potential memory leak in damon_reclaim_init() Date: Wed, 18 Jun 2025 13:02:33 +0200 Message-ID: <2025061859-CVE-2022-50088-32bf@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=2270; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qiHMU5W8P0GeWk5f5epmy8LeCn1GPAFnDxrwgkpUTGs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc7KZ/vPanrA+e+eJRenqdeoJU56K2P/fsSy3+0Cmp PCaN66rOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi8nYMC865Mmhd/NM66fV2 x6MBB0xeCExawMewYG/Aobtly02FFS/yvJ+uyLc3iussAwA= 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: mm/damon/reclaim: fix potential memory leak in damon_reclaim_init() damon_reclaim_init() allocates a memory chunk for ctx with damon_new_ctx(). When damon_select_ops() fails, ctx is not released, which will lead to a memory leak. We should release the ctx with damon_destroy_ctx() when damon_select_ops() fails to fix the memory leak. The Linux kernel CVE team has assigned CVE-2022-50088 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 4d69c3457821100a39fa8c6e0c23ed910bb6c29d and fixed in 5.18.18 with commit 9d3e9e1e0856f4c905bbb870f16f42ae72477071 Issue introduced in 5.18 with commit 4d69c3457821100a39fa8c6e0c23ed910bb6c29d and fixed in 5.19.2 with commit 700aa4e11a3c4d2a44d06758db431a013d9e1b61 Issue introduced in 5.18 with commit 4d69c3457821100a39fa8c6e0c23ed910bb6c29d and fixed in 6.0 with commit 188043c7f4f2bd662f2a55957d684fffa543e600 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-50088 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: mm/damon/reclaim.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/9d3e9e1e0856f4c905bbb870f16f42ae72477071 https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61 https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600