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 DA4C33CCFC3 for ; Wed, 6 May 2026 07:42:13 +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=1778053333; cv=none; b=mTzY8BG5YAsh2zwMTIbR7W2Sj9FbTqbTzoVTwFB3jCWCelQ9t7pJAwcbpsMYFiQ5CjsSFpftdK0NcESjiFmvHAJNSmtLpJbt0f5SH+WnLqVtvV726ZowQ0o+wrvcjcCpXoQGRW/i7cRFAMXKb4TblzgdA5lgjYonmcCyTMpRzGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778053333; c=relaxed/simple; bh=Fxd8KjIH48Sq41P0HAcWW31WGC8iVAC+zD9dpXVrGTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rB/2RhJQ6FQ9o7J2JGTgo0+QjT8bLIVmGyBep6tpd9xAsqoKi26KteG6N2919IdN6Om3g0yI3D1Q8On1xKFmCkTE3CjsCeybECLtaDftqFht/pMiE8fz8fpw0Hf8RM9sSv1RHn90uJYIgGg+6wrM7O1fGIids2dYUdRG2ruex1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R71e1ElR; 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="R71e1ElR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3CFCC2BCB8; Wed, 6 May 2026 07:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778053333; bh=Fxd8KjIH48Sq41P0HAcWW31WGC8iVAC+zD9dpXVrGTo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=R71e1ElRbBrOpriQms1iR18kdK+cTbKAt95865+n4kur4pTL1xmBGxfr8BgpkrPen N0yhrepk020xm6j6WKLCNxUzT/X2MXa1mM0nesNvJfZnOWgMhf3EkHN7bEVu/O9eMI pIONbaSqqEnmKFPRL9yKq8M6SnJMZNJO9bgdWGPs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43097: PCI: hv: Fix double ida_free in hv_pci_probe error path Date: Wed, 6 May 2026 09:41:31 +0200 Message-ID: <2026050620-CVE-2026-43097-5b0d@gregkh> X-Mailer: git-send-email 2.54.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=2719; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=arcy7qqyArQfJPAQ102+1PzS5TNd8gEWe+mQsYS6e24=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/PizQ7J165f2Jz84Osp5qk5e8KQvcNG+y7NEvW6fGs C75zc54oyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmskaXYcGM6g3iE7yPPzNb nnXLPluJgeni/MsMC3qlEnVnaAtmVx2Yslmo5cFFlYOxqwA= 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: PCI: hv: Fix double ida_free in hv_pci_probe error path If hv_pci_probe() fails after storing the domain number in hbus->bridge->domain_nr, there is a call to free this domain_nr via pci_bus_release_emul_domain_nr(), however, during cleanup, the bridge release callback pci_release_host_bridge_dev() also frees the domain_nr causing ida_free to be called on same ID twice and triggering following warning: ida_free called for id=28971 which is not allocated. WARNING: lib/idr.c:594 at ida_free+0xdf/0x160, CPU#0: kworker/0:2/198 Call Trace: pci_bus_release_emul_domain_nr+0x17/0x20 pci_release_host_bridge_dev+0x4b/0x60 device_release+0x3b/0xa0 kobject_put+0x8e/0x220 devm_pci_alloc_host_bridge_release+0xe/0x20 devres_release_all+0x9a/0xd0 device_unbind_cleanup+0x12/0xa0 really_probe+0x1c5/0x3f0 vmbus_add_channel_work+0x135/0x1a0 Fix this by letting pci core handle the free domain_nr and remove the explicit free called in pci-hyperv driver. The Linux kernel CVE team has assigned CVE-2026-43097 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit bcce8c74f1ce1e2731ac0261287897e3768767d8 and fixed in 6.19.14 with commit 21bc8e0ba5c2a081b0a2808c976d4c9dbddf1e48 Issue introduced in 6.19 with commit bcce8c74f1ce1e2731ac0261287897e3768767d8 and fixed in 7.0 with commit b6422dff0e518245019233432b6bccfc30b73e2f 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-43097 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/pci/controller/pci-hyperv.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/21bc8e0ba5c2a081b0a2808c976d4c9dbddf1e48 https://git.kernel.org/stable/c/b6422dff0e518245019233432b6bccfc30b73e2f