CVE-2026-43132: dm-verity: correctly handle dm_bufio_client_create() failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm-verity: correctly handle dm_bufio_client_create() failure
If either of the calls to dm_bufio_client_create() in verity_fec_ctr() fails, then dm_bufio_client_destroy() is later called with an ERR_PTR() argument. That causes a crash. Fix this.
The Linux kernel CVE team has assigned CVE-2026-43132 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 5.10.252 with commit 6283e49af87a9c121bb01e5a64a7fe5706c210bc Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 5.15.202 with commit d3e1f1adc8a0289efe2d2cdc90edb8c6ffe0b5ef Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 6.1.165 with commit 5c2217ddb3b7e7ac25f4ebe9061258fc8f1c9167 Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 6.6.128 with commit 031f2adc1499b112a39ac316bbab3c80bba16cf2 Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 6.12.75 with commit 9b8dc1d327e2928f3da59ced0595d850d31c0936 Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 6.18.16 with commit 451cc650e40e8c3222d37877a9e4be0fcaacb9c8 Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 6.19.6 with commit b154a868a3856fb5216c4f82981d8a503832e095 Issue introduced in 4.5 with commit a739ff3f543afbb4a041c16cd0182c8e8d366e70 and fixed in 7.0 with commit 119f4f04186fa4f33ee6bd39af145cdaff1ff17f
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-43132
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/dm-verity-fec.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/6283e49af87a9c121bb01e5a64a7fe5706c210bc https://git.kernel.org/stable/c/d3e1f1adc8a0289efe2d2cdc90edb8c6ffe0b5ef https://git.kernel.org/stable/c/5c2217ddb3b7e7ac25f4ebe9061258fc8f1c9167 https://git.kernel.org/stable/c/031f2adc1499b112a39ac316bbab3c80bba16cf2 https://git.kernel.org/stable/c/9b8dc1d327e2928f3da59ced0595d850d31c0936 https://git.kernel.org/stable/c/451cc650e40e8c3222d37877a9e4be0fcaacb9c8 https://git.kernel.org/stable/c/b154a868a3856fb5216c4f82981d8a503832e095 https://git.kernel.org/stable/c/119f4f04186fa4f33ee6bd39af145cdaff1ff17f