{"id":"CVE-2026-46107","summary":"dm-thin: fix metadata refcount underflow","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-thin: fix metadata refcount underflow\n\nThere's a bug in dm-thin in the function rebalance_children. If the\ninternal btree node has one entry, the code tries to copy all btree\nentries from the node's child to the node itself and then decrement the\nchild's reference count.\n\nIf the child node is shared (it has reference count \u003e 1), we won't free\nit, so there would be two pointers to each of the grandchildren nodes.\nBut the reference counts of the grandchildren is not increased, thus the\nreference count doesn't match the number of pointers that point to the\ngrandchildren. This results in \"device mapper: space map common: unable\nto decrement block\" errors.\n\nFix this bug by incrementing reference counts on the grandchildren if the\nbtree node is shared.","modified":"2026-06-05T18:29:36.828633531Z","published":"2026-05-28T09:35:13.051Z","related":["openSUSE-SU-2026:10954-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46107.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09a65adc7d8bbfce06392cb6d375468e2728ead5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/12161e03d33afce781f68fa11cc6060538862fad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/323d252a4a378834e4fe68298ca61cfc5dd3a460"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ec0debbcfd43596e32c1239e993de06a704e04c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85311a585a26640760cd0f3349ab9f2905691044"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f06f6aededd792a754cd677c02b3d3016d868c2c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f49b41c9eb7c6ff00df27cd49cea210abbadd8ad"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46107.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46107"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3241b1d3e0aaafbfcd320f4d71ade629728cc4f4"},{"fixed":"f49b41c9eb7c6ff00df27cd49cea210abbadd8ad"},{"fixed":"f06f6aededd792a754cd677c02b3d3016d868c2c"},{"fixed":"12161e03d33afce781f68fa11cc6060538862fad"},{"fixed":"323d252a4a378834e4fe68298ca61cfc5dd3a460"},{"fixed":"85311a585a26640760cd0f3349ab9f2905691044"},{"fixed":"5ec0debbcfd43596e32c1239e993de06a704e04c"},{"fixed":"09a65adc7d8bbfce06392cb6d375468e2728ead5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46107.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.140"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.88"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.30"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46107.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}