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 1FDE430F7F6 for ; Tue, 28 Oct 2025 11:54:18 +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=1761652459; cv=none; b=DJklWyYHrgwCyhbEQ6h6mYLjKx7OHCwNPtHM9rxgtBtalHiVY/atyrnV5wJfH5zys6GPyR30PNj6hPFWiGa2kQD6w+ipqt+EpzDwy2frPY4qvO6KM6xAzBB4E3jSqblCq+CxEMMxJOnJSOLvETdKHo2kmFblWOOdMZ/dg/OTlb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652459; c=relaxed/simple; bh=u/B4eFP016JDP8CDY9RI2hThtBqlHCVFC2telk+U/P0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OsOELMNBR8xqc/nrVjfpVOW/WCe488VWsCKLI8R7GrqTVnAPDmnDcoMxv4mYwEed0gXbgPTf0XAeyKG6ky5ksW8dLYxNZ+pL39t9p450UQ5OOqg1f2854dqc0NbW6rtSqBEF8T6PJ9TMwrTwgzxWuoFxclpm1YW6rNtZQpCaClU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QogXtyGN; 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="QogXtyGN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE08AC4CEE7; Tue, 28 Oct 2025 11:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652458; bh=u/B4eFP016JDP8CDY9RI2hThtBqlHCVFC2telk+U/P0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QogXtyGN5dy2sJ54zhBryUD3j0wNMDpl5y3R/+2VVo/Y6d+LYPPXUMwdB+79IQigL oTKi8vSfufr49TS9F3aQFISyKwr8digWBYwHaqOPwb047wOisn6TuDAqTRTPIavaQt w8jCr3tDego8x7nMUlIfeSP/fydW1Tw+0XYELBQE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40055: ocfs2: fix double free in user_cluster_connect() Date: Tue, 28 Oct 2025 12:48:32 +0100 Message-ID: <2025102815-CVE-2025-40055-8290@gregkh> X-Mailer: git-send-email 2.51.1 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=2849; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VNxa+i2NEhlQr6ENPF3rSUhi+mnwcHlpg90YjhEZc3c=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa+t3f+vLt32TJ3bnifSu5sXHSk1WzI3/4nfs5lWl2 2LFP5eqdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXnQyLJi46tCtXL1PvNOu 3G+7s7E8g2uVgzDDPIVkyQkRtmJbnx/5G7ro7eWtzoJKxQA= 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: ocfs2: fix double free in user_cluster_connect() user_cluster_disconnect() frees "conn->cc_private" which is "lc" but then the error handling frees "lc" a second time. Set "lc" to NULL on this path to avoid a double free. The Linux kernel CVE team has assigned CVE-2025-40055 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 5.15.195 with commit 827c8efa0d1afe817b90f3618afff552e88348d2 Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 6.1.156 with commit bfe011297ddd2d0cd64752978baaa0c04cd20573 Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 6.6.112 with commit 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2 Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 6.12.53 with commit 694d5b401036a614f8080085a9de6f86ff0742dc Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 6.17.3 with commit 892f41e12c8689130d552a9eb2b77bafd26484ab Issue introduced in 3.14 with commit c994c2ebdbbc391a42f177c8eb7882ebf3f142d8 and fixed in 6.18-rc1 with commit 8f45f089337d924db24397f55697cda0e6960516 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-2025-40055 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: fs/ocfs2/stack_user.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/827c8efa0d1afe817b90f3618afff552e88348d2 https://git.kernel.org/stable/c/bfe011297ddd2d0cd64752978baaa0c04cd20573 https://git.kernel.org/stable/c/7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2 https://git.kernel.org/stable/c/694d5b401036a614f8080085a9de6f86ff0742dc https://git.kernel.org/stable/c/892f41e12c8689130d552a9eb2b77bafd26484ab https://git.kernel.org/stable/c/8f45f089337d924db24397f55697cda0e6960516