Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 461EA25B30D for ; Thu, 28 May 2026 09:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961139; cv=none; b=YftSuRZsfJuzkYzFSqlbUfHB3hEtZGtr0O18qN9G8l+BQnMU6HpUndDyX7tycNlNw8qzB1ss3q8cpJsfTAYNvyF1M9K2DGskhNAeIuCckAghgr4hAUqE/6twveAE7GuOj36XN5B07ctYRBBAjuw9G3MHim2Ogvc8UfrWb5izClc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961139; c=relaxed/simple; bh=4Vf/0qxKfh376wO6QHEQMdZhVnZVgV0JE7YvwBTguRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P1juwo1T6d4iOck3krZunF9lf/Eb2pTD7oDRTAVvsLgXXOF8MI2yg9e61fJOnVa0WZecIreX1g/LALrR8c4Ltlwg1gH203zkx+5N5DDho5xo8I0BNs9MjVgKXdJicRXCztFPHckv576rjNdvlhgZ4KOwvidDh5urRDjss7MbS0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vpxGeu1g; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vpxGeu1g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 903E91F000E9; Thu, 28 May 2026 09:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961138; bh=v28pNVVWmVCFoQrzvIYFGt5DNJcuKwcK7muiT4xe7uU=; h=From:To:Cc:Subject:Date:Reply-To; b=vpxGeu1gutad9v5szxqHakgesKyBeIcLFLpm5mjZgcTpH0KIHAWG+TqgGHeKMiFqq RrtpnKbxukfMqecHW2PiksE1D+6jDlngz7uTSmgRhzTXXhGrZ+SIN4AOZYVfyRddZy llY44hovxcCrcStj4T6AKTVMvVEWoPa6p8yQ1ZPY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46107: dm-thin: fix metadata refcount underflow Date: Thu, 28 May 2026 11:36:12 +0200 Message-ID: <2026052812-CVE-2026-46107-709a@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=3182; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G8pgRFQWTf8XdXAfH65vRiCtgEPSA0lfydhh7Zh072g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPD0P4npOrehluOm9xFr1xj+Bu3syvK5J5ab2bYvur Fy16UN6RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7CSG+THHA5w/nzs+9Qq/ oGXOh62HPovsmsCwYF1rke3KM9zLQzTVvzmoLhVi8HcQAQA= 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: dm-thin: fix metadata refcount underflow There's a bug in dm-thin in the function rebalance_children. If the internal btree node has one entry, the code tries to copy all btree entries from the node's child to the node itself and then decrement the child's reference count. If the child node is shared (it has reference count > 1), we won't free it, so there would be two pointers to each of the grandchildren nodes. But the reference counts of the grandchildren is not increased, thus the reference count doesn't match the number of pointers that point to the grandchildren. This results in "device mapper: space map common: unable to decrement block" errors. Fix this bug by incrementing reference counts on the grandchildren if the btree node is shared. The Linux kernel CVE team has assigned CVE-2026-46107 to this issue. Affected and fixed versions =========================== Issue introduced in 3.2 with commit 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 and fixed in 6.6.140 with commit 12161e03d33afce781f68fa11cc6060538862fad Issue introduced in 3.2 with commit 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 and fixed in 6.12.88 with commit 323d252a4a378834e4fe68298ca61cfc5dd3a460 Issue introduced in 3.2 with commit 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 and fixed in 6.18.30 with commit 85311a585a26640760cd0f3349ab9f2905691044 Issue introduced in 3.2 with commit 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 and fixed in 7.0.7 with commit 5ec0debbcfd43596e32c1239e993de06a704e04c Issue introduced in 3.2 with commit 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 and fixed in 7.1-rc2 with commit 09a65adc7d8bbfce06392cb6d375468e2728ead5 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-46107 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: drivers/md/persistent-data/dm-btree-remove.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/12161e03d33afce781f68fa11cc6060538862fad https://git.kernel.org/stable/c/323d252a4a378834e4fe68298ca61cfc5dd3a460 https://git.kernel.org/stable/c/85311a585a26640760cd0f3349ab9f2905691044 https://git.kernel.org/stable/c/5ec0debbcfd43596e32c1239e993de06a704e04c https://git.kernel.org/stable/c/09a65adc7d8bbfce06392cb6d375468e2728ead5