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 443583AFD0E for ; Thu, 28 May 2026 09:42:26 +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=1779961347; cv=none; b=Vpo671J5UUtv9twPzcjEOkzBIQnsN7FoEwNZPLokaJnvFA/kggiNNJuPfJvEirrotWF+DwvDbVNhtDsAnzOhoN8blsyfAgWxdXpaPG+lHSt+XcCL8B2dLbAo/6NV7Lp4H/4nL+99JocLiXFFzLg/O0a4h+VxJwtNNnyLgoM82rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961347; c=relaxed/simple; bh=YvPFm0swCOI6T+Sy3uGey52RFCLkpDYm8OtdPBxtsSA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jKOXeeaGi5qh83zMFp9yTr9fclIkSYqfKy+CKFE4hApzqloHrNt1zad5buV+41/UXbo9p7Ec5KZWvmVp2GWk0biT3AK3k0pDhYz+bBbZQToN5v4nlfNIU+x7dUMXgiyDGkcwnJp2u0h1PZTo4cDv7HpdztGVeVD0HDBt8MZ+ipc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FuCznesj; 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="FuCznesj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60B1A1F000E9; Thu, 28 May 2026 09:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961345; bh=xfLAeWB7nb0n61FUFyYpc3sR6RDonVWhpbJCVFMNCXQ=; h=From:To:Cc:Subject:Date:Reply-To; b=FuCznesj9+kSylmmVlJuE5bzA6mymr2uMNmGsYmUdtWw2+12lRewh6iGyygTgdOHv eao7AAtXf3xXSrIs+KQXGgBNgaMVXPqlmTchQidUCOcUSb76yEg42hZps6wQAidst7 dVbNHnbxboDNYFD23w/UIjUAnoNY9HAzkG3KdVas= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46183: mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lock Date: Thu, 28 May 2026 11:37:28 +0200 Message-ID: <2026052830-CVE-2026-46183-2a97@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=2619; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XKxXlPdvQT0c3gOsX1lW+yLZyAHGbnKFu6FIUVq0nQo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPPOuvdqbv6334uH1h//wp6tu+Vf4Z/m0oNylZ9SZV 0xyndI1tSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEp7NsOCayT+3t5verfeu KD9/9xzXA3vRfkOG+XVXy2Rm7eOPv2FrkvtLyeDGwgDRqQA= 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/sysfs-schemes: protect path kfree() with damon_sysfs_lock damon_sysfs_quot_goal->path can be read and written by users, via DAMON sysfs 'path' file. It can also be indirectly read, for the parameters {on,off}line committing to DAMON. The reads for parameters committing are protected by damon_sysfs_lock to avoid the sysfs files being destroyed while any of the parameters are being read. But the user-driven direct reads and writes are not protected by any lock, while the write is deallocating the path-pointing buffer. As a result, the readers could read the already freed buffer (user-after-free). Note that the user-reads don't race when the same open file is used by the writer, due to kernfs's open file locking. Nonetheless, doing the reads and writes with separate open files would be common. Fix it by protecting both the user-direct reads and writes with damon_sysfs_lock. The Linux kernel CVE team has assigned CVE-2026-46183 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit c41e253a411eb73a5ac651c14f40c2ea2f274ebd and fixed in 7.0.7 with commit a34ca3e33da4b924c66bcca3729bf68ec5936910 Issue introduced in 6.19 with commit c41e253a411eb73a5ac651c14f40c2ea2f274ebd and fixed in 7.1-rc2 with commit cf3b71421ca00807328c6d9cd242f9de3b77a4bf 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-46183 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/sysfs-schemes.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/a34ca3e33da4b924c66bcca3729bf68ec5936910 https://git.kernel.org/stable/c/cf3b71421ca00807328c6d9cd242f9de3b77a4bf