Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 F0DA83876C7 for ; Sat, 15 Aug 2026 06:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775981; cv=none; b=lwJ8oq/oL0cYvVCSnuICCe9Tn0Myt0bgOXHmCFMSANauVHgT/VhCAMjI6DUpMFtE2f/mun3TfGA5qamL6DbFL99ytxNCqpy79L+bSckE4w4fs0mfP62XadNzg1pdM0XHrIuo7QwiXtDcrKUsdc/MYFV5JieQ6Qw3Je+VnXJOAss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775981; c=relaxed/simple; bh=B0akdifHmg8IaFxztzUBCU137R720m4vbGULG9Tmt0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Humz5VMtBuPautQv5mrMzSwPiFyn87JcyJUum0TiApaucoDUxuYKunnTwYatRKrnQ96B5YbkC1i0JHF1NUhEfrXyFRr3wWAcHVaRPk6T1jM+WVdRAfYPqNguroV9YkyoEqRYJ/L3kGPKZp4A91DsVMrZM5Rw59sdXvA21xL+kK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S3yKv1Tt; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S3yKv1Tt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 465181F000E9; Sat, 15 Aug 2026 06:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775979; bh=k27St6a6D0tfVfOpjOXWRtvSV3SiieikGDpDbjWcKPI=; h=From:To:Cc:Subject:Date:Reply-To; b=S3yKv1TtXime1dxgSIONYTE/dG2Jsg3QM5inYq6kn1BpoywXLe14pOi2mTA05dq/V Mh5j+iIM8GVeG5cI/d/Qa9IC8vWki4AqTqgMw8NhwuB5QfnQT+PfU9yZN//atXOoT7 uy2FXbLHOiYXxZvu07k0WYUgBzQFs/OHg2JuAsGc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74379: dax/kmem: account for partial discontiguous resource upon removal Date: Sat, 15 Aug 2026 15:11:46 +0900 Message-ID: <2026081504-CVE-2026-74379-afe7@gregkh> X-Mailer: git-send-email 2.55.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=3725; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p8YXrw/LptAlgWPwSekqOtMy+E4Ag0o5W2OVe+p0haE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjJINCVzLFmbIsHunNnxOq+e+0HakV8Zj35xpa+fuP sZQ43enI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaygpFhnsmr4k6B0OyfNRNM /8ZeX/43kt/kOcOC9W3XrVo0w2e9mRTxWkx8otZZv0/GAA== 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: dax/kmem: account for partial discontiguous resource upon removal When dev_dax_kmem_probe() partially succeeds (at least one range is mapped) but a subsequent range fails request_mem_region() or add_memory_driver_managed(), the probe silently continues, ultimately returning success, but with the corresponding range resource NULL'ed out. dev_dax_kmem_remove() iterates over all dax_device ranges regardless of if the underlying resource exists. When remove_memory() is called later, it returns 0 because the memory was never added which causes dev_dax_kmem_remove() to incorrectly assume the (nonexistent) resource can be removed and attempts cleanup on a NULL pointer. Fix this by skipping these ranges altogether, noting that these cases are considered success, such that the cleanup is still reached when all actually-added ranges are successfully removed. The Linux kernel CVE team has assigned CVE-2026-74379 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 5.15.212 with commit ef4fc53898bd6c4d0119cc6d419ebef7f2560f31 Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 6.1.178 with commit 5d3139abb9d1671fa5e42c3d6d8cb3b05479c5bb Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 6.6.145 with commit d47b0b8a69a13e06afafa54723f3e8c99b0c788f Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 6.12.97 with commit 799e54c510a03a65a57627018a817838d72f35bd Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 6.18.40 with commit 598ed7393a639c7547b28ff3e14db9f1ac37c132 Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 7.1.5 with commit 30ea97affbcce236c57287c82dc6ef7a29c63b76 Issue introduced in 5.10 with commit 60e93dc097f7f13a16a7e4b75b8803eb2adbb721 and fixed in 7.2-rc1 with commit 8aa442cfce79e2d69e72fc8e0c0864ac2971149d 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-74379 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/dax/kmem.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/ef4fc53898bd6c4d0119cc6d419ebef7f2560f31 https://git.kernel.org/stable/c/5d3139abb9d1671fa5e42c3d6d8cb3b05479c5bb https://git.kernel.org/stable/c/d47b0b8a69a13e06afafa54723f3e8c99b0c788f https://git.kernel.org/stable/c/799e54c510a03a65a57627018a817838d72f35bd https://git.kernel.org/stable/c/598ed7393a639c7547b28ff3e14db9f1ac37c132 https://git.kernel.org/stable/c/30ea97affbcce236c57287c82dc6ef7a29c63b76 https://git.kernel.org/stable/c/8aa442cfce79e2d69e72fc8e0c0864ac2971149d