# CVE-2026-46107: dm-thin: fix metadata refcount underflow

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-05-28T09:35:13.051Z
- Modified: 2026-10-19T20:18:30.823Z
- Weaknesses: CWE-191, CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before b719d12cb94df345e9ad2715fd0abe9afcaeb111; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before f49b41c9eb7c6ff00df27cd49cea210abbadd8ad; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before f06f6aededd792a754cd677c02b3d3016d868c2c; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before 12161e03d33afce781f68fa11cc6060538862fad; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before 323d252a4a378834e4fe68298ca61cfc5dd3a460; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before 85311a585a26640760cd0f3349ab9f2905691044; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before 5ec0debbcfd43596e32c1239e993de06a704e04c; from 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 before 09a65adc7d8bbfce06392cb6d375468e2728ead5; 3.2 (not affected: before 3.2; from 5.10.259 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.140 up to 6.6.*; from 6.12.88 up to 6.12.*; from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.2 before 5.10.259; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.140; from 6.7 before 6.12.88; from 6.13 before 6.18.30; from 6.19 before 7.0.7; 7.1

## References

- <https://git.kernel.org/stable/c/b719d12cb94df345e9ad2715fd0abe9afcaeb111> (patch)
- <https://git.kernel.org/stable/c/f49b41c9eb7c6ff00df27cd49cea210abbadd8ad> (patch)
- <https://git.kernel.org/stable/c/f06f6aededd792a754cd677c02b3d3016d868c2c> (patch)
- <https://git.kernel.org/stable/c/12161e03d33afce781f68fa11cc6060538862fad> (patch)
- <https://git.kernel.org/stable/c/323d252a4a378834e4fe68298ca61cfc5dd3a460> (patch)
- <https://git.kernel.org/stable/c/85311a585a26640760cd0f3349ab9f2905691044> (patch)
- <https://git.kernel.org/stable/c/5ec0debbcfd43596e32c1239e993de06a704e04c> (patch)
- <https://git.kernel.org/stable/c/09a65adc7d8bbfce06392cb6d375468e2728ead5> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-46107](https://www.cve.org/CVERecord?id=CVE-2026-46107), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-46107](https://nvd.nist.gov/vuln/detail/CVE-2026-46107), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-46107 · Whole record: https://cve.day/CVE-2026-46107.json · Rebuilt by cve.day 2026-11-25T22:59:22.772Z
