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 3F0C530BB88 for ; Thu, 18 Sep 2025 13:36:14 +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=1758202575; cv=none; b=JLuh1aiflsS8fJMh6AlQjqEShUuRdKT8oU+aPzPJQjokhF9g1RorH1+XE+UQ5vGjNURJRf0hght1gV27TTjBZdfXUAW8L+E9UWQKyB7PZYPqTieAudRwuLxMfw/QcoHA++yh7HBykbqT109WAJ52GxJx8D0WlsHY2OoUjLrnDbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202575; c=relaxed/simple; bh=HrSgM6upXMZCAcmIDAb59uE40uLUuhlOXssYHS5k+vU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZnAqiQ0roi7PjYPZaceyxOYJBQfC476/41XoqcVt0zNYTwi+8CDCU316f1ggyAEt6VdINM7rt/ypDKcGaGcpAkLwTkWvpQiuFwZz7W/uGJ4aOl9t8mlTNJu0YeIjvgEA4YFXwWHzCSx0IYXF5+fKcAwtaOmaGJr4pnZYhzFwaFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VHIQe4HP; 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="VHIQe4HP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64504C4CEEB; Thu, 18 Sep 2025 13:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202574; bh=HrSgM6upXMZCAcmIDAb59uE40uLUuhlOXssYHS5k+vU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VHIQe4HPrOWKj57wT3EFdnUoOAPWvvwOqTCiM13l8VkOBn148HAo0z2nVxxI1Rynu bYq89GWbUobKsWu6NVSCtT7haHnpkyWxoCWG1I2hh1pIz4wDbJCejHU9keDY7RKIZI R8Z33Ic+RnGryxCyg2vLBjL7X2mLhcW1DzVg+Xpw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53391: shmem: use ramfs_kill_sb() for kill_sb method of ramfs-based tmpfs Date: Thu, 18 Sep 2025 15:34:36 +0200 Message-ID: <2025091858-CVE-2023-53391-cea3@gregkh> X-Mailer: git-send-email 2.51.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=2673; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UVjiaCsbpw1T8yzG9u3afRQfSssRN6eG0MKav51casY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuNyaj136FnJryYcHicIpYd5q9fceie/5ssOrkaGZ/ Xrl8XvOHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARcRGGBbO0YvM6dmY/fuDy yv+w0ZbfemaefxjmF1jb24lHXdJ76qx1J8Ena6rG1tBpAA== 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: shmem: use ramfs_kill_sb() for kill_sb method of ramfs-based tmpfs As the ramfs-based tmpfs uses ramfs_init_fs_context() for the init_fs_context method, which allocates fc->s_fs_info, use ramfs_kill_sb() to free it and avoid a memory leak. The Linux kernel CVE team has assigned CVE-2023-53391 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db and fixed in 5.10.188 with commit 5fada375113767b3b57f1b04f7a4fe64ffaa626f Issue introduced in 2.6.30 with commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db and fixed in 5.15.121 with commit 487f229efea80c00dd7397547ec4f25fb8999d99 Issue introduced in 2.6.30 with commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db and fixed in 6.1.39 with commit 1f34bf8b442c6d720e7fa6f15e8702427e48aea9 Issue introduced in 2.6.30 with commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db and fixed in 6.4.4 with commit ebe07db840992a3886694ac3d303b06f4b70ce00 Issue introduced in 2.6.30 with commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db and fixed in 6.5 with commit 36ce9d76b0a93bae799e27e4f5ac35478c676592 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-53391 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/ramfs/inode.c include/linux/ramfs.h mm/shmem.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/5fada375113767b3b57f1b04f7a4fe64ffaa626f https://git.kernel.org/stable/c/487f229efea80c00dd7397547ec4f25fb8999d99 https://git.kernel.org/stable/c/1f34bf8b442c6d720e7fa6f15e8702427e48aea9 https://git.kernel.org/stable/c/ebe07db840992a3886694ac3d303b06f4b70ce00 https://git.kernel.org/stable/c/36ce9d76b0a93bae799e27e4f5ac35478c676592