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 447B0426EC9 for ; Wed, 6 May 2026 11:31:44 +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=1778067104; cv=none; b=oifLCPxT+e4FL+Ae3T1cioRBW03OOTW6DMUf44y0PiuFkoe4IYipG6af4khlR31NsiGYLEzWmO9I2PsJQ4xUOYJmbhrKxcwRFuVBX6Z3x5vvu1dURhuEleYH3PUXj04MqdutJbu1cqc/5jsXEXxiVhUEeqTXKtGGB3jW6Cll91Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067104; c=relaxed/simple; bh=BZ397kPQ7Y2nh/dJvmKzXGpi5xPhWWC1+Cv6eqlKyLc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HYMR1K3xGK+L0ZTAKFHaDbRLL6ClAOv38lajupqiHIIgkohqWP4ZchRZo3DotopV/j0aW7x4xy2LpxAHs7RHxzKFKDQ5tNiYUfTU1eMVr9B8dzpzcUu/BJh6/8gi/n7d4PDD3fiEhGrOYSGOnT6zC2ZN2LPXtICIjCj4386iiaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=usHo6xup; 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="usHo6xup" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF2ADC2BCB8; Wed, 6 May 2026 11:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067104; bh=BZ397kPQ7Y2nh/dJvmKzXGpi5xPhWWC1+Cv6eqlKyLc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=usHo6xupmlKOn/4au4Mh6rEjWpM8plH831U3WwuI6Rbfz6ottEvyTyZ+K7hTxorgB 9aI+7wuFI/FNq+ZWocKAUTMXCEfttSPQHa7ZlGJizdZN2GZ1ydM8SDqMEPvUoDJyIA kv/AsjHaRQ/ouWVs6G701Tm1xvehIVkTzp6/6f1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43188: ceph: do not propagate page array emplacement errors as batch errors Date: Wed, 6 May 2026 13:28:24 +0200 Message-ID: <2026050641-CVE-2026-43188-75ba@gregkh> X-Mailer: git-send-email 2.54.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=3495; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uBGZSUojtYM6Ut1kBbe0tI1nuZHwI696lYqOPNZ+qeE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vdc+8mU+23bj0lL1nPMnVa+L3djSvoZdtbjmRaXnH L37hjtUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiEoIM8xOmHE/2zXuwInha GIv9Q8l7/Sy7VjAsOHjn6/aDTK7pLz6U3r7x5A9jf9GhNAA= 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: ceph: do not propagate page array emplacement errors as batch errors When fscrypt is enabled, move_dirty_folio_in_page_array() may fail because it needs to allocate bounce buffers to store the encrypted versions of each folio. Each folio beyond the first allocates its bounce buffer with GFP_NOWAIT. Failures are common (and expected) under this allocation mode; they should flush (not abort) the batch. However, ceph_process_folio_batch() uses the same `rc` variable for its own return code and for capturing the return codes of its routine calls; failing to reset `rc` back to 0 results in the error being propagated out to the main writeback loop, which cannot actually tolerate any errors here: once `ceph_wbc.pages` is allocated, it must be passed to ceph_submit_write() to be freed. If it survives until the next iteration (e.g. due to the goto being followed), ceph_allocate_page_array()'s BUG_ON() will oops the worker. Note that this failure mode is currently masked due to another bug (addressed next in this series) that prevents multiple encrypted folios from being selected for the same write. For now, just reset `rc` when redirtying the folio to prevent errors in move_dirty_folio_in_page_array() from propagating. Note that move_dirty_folio_in_page_array() is careful never to return errors on the first folio, so there is no need to check for that. After this change, ceph_process_folio_batch() no longer returns errors; its only remaining failure indicator is `locked_pages == 0`, which the caller already handles correctly. The Linux kernel CVE team has assigned CVE-2026-43188 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit ce80b76dd32764cc914975777e058d4fae4f0ea0 and fixed in 6.18.16 with commit 746840c87d76b614b14d9337c466ff022fc49823 Issue introduced in 6.15 with commit ce80b76dd32764cc914975777e058d4fae4f0ea0 and fixed in 6.19.6 with commit 4c0d84c788d89c167abf0bf84fd37890c4c84f08 Issue introduced in 6.15 with commit ce80b76dd32764cc914975777e058d4fae4f0ea0 and fixed in 7.0 with commit 707104682e3c163f7c14cdd6b07a3e95fb374759 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-2026-43188 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/ceph/addr.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/746840c87d76b614b14d9337c466ff022fc49823 https://git.kernel.org/stable/c/4c0d84c788d89c167abf0bf84fd37890c4c84f08 https://git.kernel.org/stable/c/707104682e3c163f7c14cdd6b07a3e95fb374759