From mboxrd@z Thu Jan 1 00:00:00 1970 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 B66A116C6BD for ; Wed, 21 Aug 2024 06:13:13 +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=1724220793; cv=none; b=SlrMI7udzJUdJ/LuOafpqKsjhXim+esDYOMj1MjbVBAu7bBFkGRmm7IJEsocYOAHfQVsGizlfaHbwIi8ElewstI7JGRI9g7RGgTca5BNL6Jz6nuM6SW/Ag388BArXOMg79V37rcCCfDt5ZGFdjRwe938Nir4S7RyjqfeonczU/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220793; c=relaxed/simple; bh=EEuK3YCOM1322J49VM89TM/hkG9JAvqyl2KNLRGQtiE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DCK+2UnZ8IMVLAkoQVHX/x5T4YbLnZg8BYqE7381wlq/cFHp0125oFyJZTdIAYI7VK6kLoz0C4Hsk7YyJPJYCvxUxYq3vD0rCns1dMFmU3pND7hf1VpFIy4KWNqB304tc3xssGPSw7LWh3hMsG+2POPUslAiCU8XiYyJim7g+bk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l6KR2VBw; 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="l6KR2VBw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47868C32782; Wed, 21 Aug 2024 06:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220793; bh=EEuK3YCOM1322J49VM89TM/hkG9JAvqyl2KNLRGQtiE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l6KR2VBwDPBzuC6rwedU+xslmMR4ZigS1PkpmjPHFwZlFGOYPzusy4dqAOefp5Bbw db3Xl5nmoXwRsUdnaPoyodvgtufS4oDvquXPjSesxr72Votnl8P6M4D81c1/zxVAb/ Gw57MHKgQDFQAKS4a5QlEJBfQmNu32NPZ0EeCcgA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52902: nommu: fix memory leak in do_mmap() error path Date: Wed, 21 Aug 2024 14:11:43 +0800 Message-ID: <2024082113-CVE-2023-52902-d3fa@gregkh> X-Mailer: git-send-email 2.46.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=1823; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EEuK3YCOM1322J49VM89TM/hkG9JAvqyl2KNLRGQtiE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHWxmlpc85sXCv26IY7/P5SG92kNHrEDcz69N3uRmcI j63LK/tiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlkLWdY0L7s78I/1kvnNNQ/ 2Gz5xqFAKi/wJcP82FWX+g982K1j/HPKEoZCJnaBU4t2AQA= 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: nommu: fix memory leak in do_mmap() error path The preallocation of the maple tree nodes may leak if the error path to "error_just_free" is taken. Fix this by moving the freeing of the maple tree nodes to a shared location for all error paths. The Linux kernel CVE team has assigned CVE-2023-52902 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 8220543df148 and fixed in 6.1.8 with commit 1442d51026c5 Issue introduced in 6.1 with commit 8220543df148 and fixed in 6.2 with commit 7f31cced5724 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-2023-52902 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/nommu.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/1442d51026c58e7c11dd5f9b19650632a48676d4 https://git.kernel.org/stable/c/7f31cced5724e6d414fe750aa1cd7e7b578ec22f