CVE-2026-43273: ceph: supply snapshot context in ceph_zero_partial_object()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ceph: supply snapshot context in ceph_zero_partial_object()
The ceph_zero_partial_object function was missing proper snapshot context for its OSD write operations, which could lead to data inconsistencies in snapshots.
Reproducer:../src/vstart.sh --new -x --localhost --bluestore
./bin/ceph auth caps client.fs_a mds 'allow rwps fsname=a' mon 'allow r fsname=a' osd 'allow rw tag cephfs data=a' mount -t ceph [email protected]=/ /mnt/mycephfs/ -o conf=./ceph.conf
dd if=/dev/urandom of=/mnt/mycephfs/foo bs=64K count=1
mkdir /mnt/mycephfs/.snap/snap1
md5sum /mnt/mycephfs/.snap/snap1/foo
fallocate -p -o 0 -l 4096 /mnt/mycephfs/foo
echo 3 > /proc/sys/vm/drop/caches
md5sum /mnt/mycephfs/.snap/snap1/foo # get different md5sum!!
The Linux kernel CVE team has assigned CVE-2026-43273 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 5.10.252 with commit 36673344b41c31fb502dd0d0113cec1aa96f581e Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 5.15.202 with commit 5788b742007f53406049bef917833a71ddd43f60 Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 6.1.165 with commit 757873abfc8ea38592582180aed0f57f0f0cb07a Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 6.6.128 with commit 9efa154609cdb658f51c7d76b30a09f7e6485250 Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 6.12.75 with commit 531a76c5a2e44264cee8a70121e63eb28c1ba728 Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 6.18.16 with commit 69e59a87bab0ea31ab2a584fc65e12dafacf8953 Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 6.19.6 with commit 4097e70fc543cca72982854108a32f6ae924e727 Issue introduced in 3.12 with commit ad7a60de882aca31afb58721db166f7e77afcd92 and fixed in 7.0 with commit f16bd3fa74a2084ee7e16a8a2be7e7399b970907
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-43273
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/file.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/36673344b41c31fb502dd0d0113cec1aa96f581e https://git.kernel.org/stable/c/5788b742007f53406049bef917833a71ddd43f60 https://git.kernel.org/stable/c/757873abfc8ea38592582180aed0f57f0f0cb07a https://git.kernel.org/stable/c/9efa154609cdb658f51c7d76b30a09f7e6485250 https://git.kernel.org/stable/c/531a76c5a2e44264cee8a70121e63eb28c1ba728 https://git.kernel.org/stable/c/69e59a87bab0ea31ab2a584fc65e12dafacf8953 https://git.kernel.org/stable/c/4097e70fc543cca72982854108a32f6ae924e727 https://git.kernel.org/stable/c/f16bd3fa74a2084ee7e16a8a2be7e7399b970907