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 2BA4D17556B for ; Wed, 18 Sep 2024 07:19:08 +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=1726643948; cv=none; b=ntc6OrP8AhmxsaQaDK93usAo6IJ3/7T2lt/kIvpKMVcNUXe6dXL8L+qh6mxGhwLn7eaUYab4Opo1Q7D2J3wcpX3rqelTRBHRbtes/sY+T8+Wrwdtv+Ma61IqxgNg7sJ1eoHGehQD+9ZBRK4SHZpdhGVF9u/dCZD8lNu82XuklJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643948; c=relaxed/simple; bh=MIZOX8yS+9nMaO3q4giPpt0OtJJMIbRHTIy6LN8XdOI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ozsF9KKO+idWjdFYrrTjI5e6rWtBRFqz3AETQn686ooLIrPMbPZeRyScxmIk0GJQFS8nk8Y4ZH/92qEmu6xpnqatD8Whv7bUoboXR3d1rsyTjtLZXhJzBe6qoQJFtWpT8lvkLmCvcaj4hO/WsGsceSG8tt/TD3mWl2+Vsbg5Umw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LqV099K6; 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="LqV099K6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFDBCC4CED0; Wed, 18 Sep 2024 07:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643948; bh=MIZOX8yS+9nMaO3q4giPpt0OtJJMIbRHTIy6LN8XdOI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LqV099K6cyghoEU68VUKV2sI+6/NaY8orOe/Vq8P6vRWriOf82fFRldldGXKmkUl8 xtawnDdSozU5NFllU83FxWkaryYZpV03a3u+raRVbYVps7wwT0AUbLv+vECKmRVv/P +7RGWua1zDXGk+jOfDgfrtS8jnXumRTueB7iIX/8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46780: nilfs2: protect references to superblock parameters exposed in sysfs Date: Wed, 18 Sep 2024 09:17:15 +0200 Message-ID: <2024091849-CVE-2024-46780-9155@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=3225; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MIZOX8yS+9nMaO3q4giPpt0OtJJMIbRHTIy6LN8XdOI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6hI3Pl1wcxVfaIvo8oojy3OLm44+Udl49ObDi7p8m Rk/m/YUdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBELsYxzC+btG9LkouQ4PfX 52Zab7N5Ii8l7sowP1bJoK7kcfiawEf226ITOky6mtweAwA= 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: nilfs2: protect references to superblock parameters exposed in sysfs The superblock buffers of nilfs2 can not only be overwritten at runtime for modifications/repairs, but they are also regularly swapped, replaced during resizing, and even abandoned when degrading to one side due to backing device issues. So, accessing them requires mutual exclusion using the reader/writer semaphore "nilfs->ns_sem". Some sysfs attribute show methods read this superblock buffer without the necessary mutual exclusion, which can cause problems with pointer dereferencing and memory access, so fix it. The Linux kernel CVE team has assigned CVE-2024-46780 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit da7141fb78db and fixed in 4.19.322 with commit b90beafac059 Issue introduced in 3.17 with commit da7141fb78db and fixed in 5.4.284 with commit ba97ba173f96 Issue introduced in 3.17 with commit da7141fb78db and fixed in 5.10.226 with commit 157c0d94b4c4 Issue introduced in 3.17 with commit da7141fb78db and fixed in 5.15.167 with commit b14e7260bb69 Issue introduced in 3.17 with commit da7141fb78db and fixed in 6.1.110 with commit 19cfeba0e4b8 Issue introduced in 3.17 with commit da7141fb78db and fixed in 6.6.51 with commit 8c6e43b3d5f1 Issue introduced in 3.17 with commit da7141fb78db and fixed in 6.10.10 with commit 962562d4c70c Issue introduced in 3.17 with commit da7141fb78db and fixed in 6.11 with commit 683408258917 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-2024-46780 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/nilfs2/sysfs.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/b90beafac05931cbfcb6b1bd4f67c1923f47040e https://git.kernel.org/stable/c/ba97ba173f9625d5f34a986088979eae8b80d38e https://git.kernel.org/stable/c/157c0d94b4c40887329418c70ef4edd1a8d6b4ed https://git.kernel.org/stable/c/b14e7260bb691d7f563f61da07d61e3c8b59a614 https://git.kernel.org/stable/c/19cfeba0e4b8eda51484fcf8cf7d150418e1d880 https://git.kernel.org/stable/c/8c6e43b3d5f109cf9c61bc188fcc8175404e924f https://git.kernel.org/stable/c/962562d4c70c5cdeb4e955d63ff2017c4eca1aad https://git.kernel.org/stable/c/683408258917541bdb294cd717c210a04381931e