Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ADC6E2F618B for ; Fri, 23 Jan 2026 15:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769181956; cv=none; b=EwqufWxBTH0L92gD5491utrdwaSjVuWPBDIaxugGLDFQ/VAJ4A1Pj+tRzPdQWtEULNPdhLw7ADkS0K32aihjhDtvfxqCHgnvsxduDfOhwpTPDDuMeOzlfmTOaBBkcV0o7b37XBX5DHyXBYKgamvX5+LkP7nCTwGAu8VnnFQYA5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769181956; c=relaxed/simple; bh=G8ktDkwoK+t5mT6KbHFxul9DFEd4sLivS65qPtWi3hw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iHg1MpfQvHquEkh0mAEfz7PahQT1eqe5g2tBMQButBZ1WFZpwF/SOy0J5Ud/jP/8CjjFsTFnuiDmdeDFQQLrWmCJnx4KAF6p0iNRODc1pjKuPoxt8FwyT0vIvSR0aTIdPRvTdMExqfRmDbAcyVq2xXpmGAR0xOexyYnVeNQ/EaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tcw4dMBB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tcw4dMBB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA38DC4CEF1; Fri, 23 Jan 2026 15:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769181956; bh=G8ktDkwoK+t5mT6KbHFxul9DFEd4sLivS65qPtWi3hw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tcw4dMBBkt6OIWPLl1n04wBNLnYDaOnkfKJrQhi7J4u07zeVLEUfdRzpZnJYoZbrH iH7N3eMKe+5Gf+vdg/zbJ6zZkEaNhHEa40aPsPSMOt6pmvnRmugjUPX05o8z0uNbXy 2xLRbHYx2dvCG5JE8jYUefUhWc6Tj78J1VCcLXCs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71161: dm-verity: disable recursive forward error correction Date: Fri, 23 Jan 2026 16:24:48 +0100 Message-ID: <2026012346-CVE-2025-71161-4b58@gregkh> X-Mailer: git-send-email 2.52.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=2401; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KCAGQ0xM4wVJKeursFmjBqHY7JnCZnI5Cjdzt4/phu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFk/Zx6/7ove/8/0Snhox29L26WIVjj8KvZpgp7qhQe rLOV+VERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkmJdhrnCz17udR0o2XGIp l9O4tktQuezcS4YF+183yOas3R35WWBDmPHsdW/yg85+AAA= 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-verity: disable recursive forward error correction There are two problems with the recursive correction: 1. It may cause denial-of-service. In fec_read_bufs, there is a loop that has 253 iterations. For each iteration, we may call verity_hash_for_block recursively. There is a limit of 4 nested recursions - that means that there may be at most 253^4 (4 billion) iterations. Red Hat QE team actually created an image that pushes dm-verity to this limit - and this image just makes the udev-worker process get stuck in the 'D' state. 2. It doesn't work. In fec_read_bufs we store data into the variable "fio->bufs", but fio bufs is shared between recursive invocations, if "verity_hash_for_block" invoked correction recursively, it would overwrite partially filled fio->bufs. The Linux kernel CVE team has assigned CVE-2025-71161 to this issue. Affected and fixed versions =========================== Fixed in 6.18.6 with commit 232948cf600fba69aff36b25d85ef91a73a35756 Fixed in 6.19-rc1 with commit d9f3e47d3fae0c101d9094bc956ed24e7a0ee801 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-2025-71161 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 drivers/md/dm-verity-fec.h drivers/md/dm-verity-target.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/232948cf600fba69aff36b25d85ef91a73a35756 https://git.kernel.org/stable/c/d9f3e47d3fae0c101d9094bc956ed24e7a0ee801