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 4A4EB2F85B for ; Tue, 9 Dec 2025 01:32:26 +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=1765243947; cv=none; b=PURv/neGbV8Mc1Lroz+IYxV02vZwrBEFmcAoy3xZCkRjT/S0Laj+MzvFAQ+QuYx54B6uYd1slhTbgJwjNOQ8APs0adMFGA3F7308YRM9KoVRDTKJSpJfdTu312KpzrKQMtxlzfM9BMYf4G481Sh4U9lKXJAwPbmWjnnrXqxf6QY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243947; c=relaxed/simple; bh=eCYxOyj9RlSPq1d4NQp5tpbe4N17OQ4/vTEGsrbHtgc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PIeoZlkQ8uxhdyVMG1ooae94l9EV+v4jwM60ga+z7WiTGRmmUysJVGmEW0PNkEs6giyDyYWKIV03pAR8ZFmlRoVTmcIGQdzGWdaxiH37tIdWY+5dJBvifcFzD9YWC6fW89B2ZysR7UB3jjRhoJxDFun2EJdzVNNikNhgwlRGzfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fs0VJWk+; 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="fs0VJWk+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4020AC4CEF1; Tue, 9 Dec 2025 01:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243946; bh=eCYxOyj9RlSPq1d4NQp5tpbe4N17OQ4/vTEGsrbHtgc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=fs0VJWk+AYNzT862xnYSKXmDet2yLuVBgALrGXHLIjrDh4d4mWHpbonYeb1SYnQ86 kSgyT2Nip8GnHKnFw6kOJmRectRcisSSZMAEbB7vylKkEfLdQhkPaN7Oce/hojq3FH BY0xCBPoODm1HYzQPNPYWAkZTGeCbGOzpmu/UB7g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53835: ext4: don't clear SB_RDONLY when remounting r/w until quota is re-enabled Date: Tue, 9 Dec 2025 10:31:19 +0900 Message-ID: <2025120955-CVE-2023-53835-0142@gregkh> X-Mailer: git-send-email 2.52.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=3125; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MMtmaeaLmPfJpUQ5k71oEBe/mh62lJnWvx7+j4j1/As=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1ec7Snd/LTS5eJPF+kP7zDaj9+pTXmhFz3169J8H4 ++ZStOcOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiny4xzHdtUXS3VZL13vPw UuuSNQ2/PrlWXGZYsNBWVWH+26f+Ml2PvWfNiHw9t2bTaQA= 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: ext4: don't clear SB_RDONLY when remounting r/w until quota is re-enabled When a file system currently mounted read/only is remounted read/write, if we clear the SB_RDONLY flag too early, before the quota is initialized, and there is another process/thread constantly attempting to create a directory, it's possible to trigger the WARN_ON_ONCE(dquot_initialize_needed(inode)); in ext4_xattr_block_set(), with the following stack trace: WARNING: CPU: 0 PID: 5338 at fs/ext4/xattr.c:2141 ext4_xattr_block_set+0x2ef2/0x3680 RIP: 0010:ext4_xattr_block_set+0x2ef2/0x3680 fs/ext4/xattr.c:2141 Call Trace: ext4_xattr_set_handle+0xcd4/0x15c0 fs/ext4/xattr.c:2458 ext4_initxattrs+0xa3/0x110 fs/ext4/xattr_security.c:44 security_inode_init_security+0x2df/0x3f0 security/security.c:1147 __ext4_new_inode+0x347e/0x43d0 fs/ext4/ialloc.c:1324 ext4_mkdir+0x425/0xce0 fs/ext4/namei.c:2992 vfs_mkdir+0x29d/0x450 fs/namei.c:4038 do_mkdirat+0x264/0x520 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4074 The Linux kernel CVE team has assigned CVE-2023-53835 to this issue. Affected and fixed versions =========================== Fixed in 5.10.181 with commit 5c87115520d2451f5689be7d9a463450d5b1bd96 Fixed in 5.15.113 with commit c53936d9fb35287ed81ec412a5b494729268a64d Fixed in 6.1.30 with commit cd2341c26fb6cf45445de70cfd01022cb634746b Fixed in 6.3.4 with commit 5570ac70264021c3a9b0c55e0e6d7a90f25cebbc Fixed in 6.4 with commit a44be64bbecb15a452496f60db6eacfee2b59c79 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-53835 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/ext4/super.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/5c87115520d2451f5689be7d9a463450d5b1bd96 https://git.kernel.org/stable/c/c53936d9fb35287ed81ec412a5b494729268a64d https://git.kernel.org/stable/c/cd2341c26fb6cf45445de70cfd01022cb634746b https://git.kernel.org/stable/c/5570ac70264021c3a9b0c55e0e6d7a90f25cebbc https://git.kernel.org/stable/c/a44be64bbecb15a452496f60db6eacfee2b59c79