Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1F996409100 for ; Wed, 27 May 2026 13:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887124; cv=none; b=A7rY70vNZffE5ZDQiEOfkv1AX8zPp5JaGq78E3/AsQF2l0m6czeo03pqfX68ngI/PdopOK2XJ8qc9m3TvkrVsA0QclZQyzhB4j26N+ODiEw803ZqCdA+va1B/psZCP/ZbdyPneGItRRZ+a+jYQ2lpxuL21ylTX4ierlg7oTvswA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887124; c=relaxed/simple; bh=zishHuyAhPLeY4V5k2weAUEbpiIJ65MApybUOY6WHxA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kldYwxGiiFlvWuBac8qT7EEXqIZpo35E2BANNZ3oGN1yARsQPRgchp1aH1Lu8Io2ZZ++RR+A275IQ/dz6pZfaPx99l9yPy3nt6R9xXFPJHn0ozuTvEhzDvDPsdnc0xIUXAGt+zyBD+0heOyy3j6ZjnKsyYqjGNM+D1Jf9z768eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=knqjPZFX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="knqjPZFX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3DF91F000E9; Wed, 27 May 2026 13:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887122; bh=S85GEJfpefxjPd/uLpCYN12sRdKZ4+j5OGiLOs5XxuA=; h=From:To:Cc:Subject:Date:Reply-To; b=knqjPZFX1cFLK+31hbdI95/+5LsyhFjPPo21pRASdGVaSxV1aLN8flXsIQqf7OMbi Fie7ty3lRZ6td9nPacszHSKa2XyssS8nOuM2W/oMuJ1ubXCjcVjB2k7lqG9J6ZXm9j HUCD9mo7JciUKjQv4pBy+MX2Mba48l8ePaVfnt60= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46087: mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start() Date: Wed, 27 May 2026 15:00:18 +0200 Message-ID: <2026052702-CVE-2026-46087-c7c2@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nxT+h2koMLr7x4UZAuizVTlMTtyLNZNU0ksJ2/f1Pac=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir6a1NvD7ylX8D4wI2zk/rcRyv4qXePRR1byzGvUH5 UPiV5d2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET45BkWzFhkVeTnm9j/cFGo 0tb5NYnPNuXaMMyPti5/vTXDZk7GTCFX/0c7da5EvU8GAA== 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/stat: fix memory leak on damon_start() failure in damon_stat_start() Destroy the DAMON context and reset the global pointer when damon_start() fails. Otherwise, the context allocated by damon_stat_build_ctx() is leaked, and the stale damon_stat_context pointer will be overwritten on the next enable attempt, making the old allocation permanently unreachable. The Linux kernel CVE team has assigned CVE-2026-46087 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 369c415e60732b7c8ed33368891581246f580d7a and fixed in 6.18.27 with commit 8a62c58411cbd748d7aeab0e5b0963e33ff47a7a Issue introduced in 6.17 with commit 369c415e60732b7c8ed33368891581246f580d7a and fixed in 7.0.4 with commit 50bc1d7e0f3bb6932c8dc5da0907eead0790176b Issue introduced in 6.17 with commit 369c415e60732b7c8ed33368891581246f580d7a and fixed in 7.1-rc1 with commit e04ed278d25bf15769800bf6e35c6737f137186f 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-2026-46087 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/stat.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/8a62c58411cbd748d7aeab0e5b0963e33ff47a7a https://git.kernel.org/stable/c/50bc1d7e0f3bb6932c8dc5da0907eead0790176b https://git.kernel.org/stable/c/e04ed278d25bf15769800bf6e35c6737f137186f