CVE 7.8 HIGH

dm-thin: fix metadata refcount underflow_CVE-2026-46107

7.8 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Basic Information

ID CVE-2026-46107
Source Linux
Published May 28, 2026 at 09:35
Modified May 30, 2026 at 10:47

Affected Product

Vendor Linux
Product Linux
Version 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Affected Versions Linux Linux 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Linux Linux 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Linux Linux 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Linux Linux 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Linux Linux 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4
Linux Linux 3.2

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.