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 5C11F5218BE for ; Thu, 17 Sep 2026 16:32:52 +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=1789662773; cv=none; b=MXfBwVDPH7N9+hLWMeX6p07ecwNOM6t7Zy18UUBnUAOuApcfCM9w8ypwSUQs3dgOAJepABZnPxypja6i+j6xVEDDVeb9F/hI6TqteVeAaumUT+1P4T7hSLRwDkiFPrdTol95c1TwO83AxulvHsLni/0DQ26PfEdYGr0S5H+9Ohk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662773; c=relaxed/simple; bh=PiBgYTInZGBEfAp1l8q4hfJQ9aSA4VovU4sAyqS81W0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ygj4HQQSr8XBi5b1sJvOleWb/RBLsPPCTjpkaM1b9TA0j60vzMgQTz78fMGqFPEP8x15VdrDVMIc1TMJMmlEJzF6sfqNEEdgfBZPo22neJe9vY1arYRcE1twLT/jlolKJNf4v9GKUF81zO5MhgAdD7EZO7tvQNluiD0POmn7Dec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MDxfIia6; 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="MDxfIia6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 853D91F000FF; Thu, 17 Sep 2026 16:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662772; bh=TN3n/kUXXaH09THh1K57eYTT5Oy/gFl95suf9z+am48=; h=From:To:Cc:Subject:Date:Reply-To; b=MDxfIia6eAZzyJQv6K3ae0yYgcAtH6fGhBsd7YZ8Bw2htJIy1phLJg7w1WrJ+EeOU tRJTXd5ScZdRSq1+YRlBsZlJn1h6KtW9kpYobz86gYHCYPNTP+RH6BRAdKXlUoMq28 8HIIrdLVIAZZHC5q6aJEDC/VwKh/ZZyrvA+PYX3k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-92505: iommu/amd: Fix undefined behavior in devid_write debugfs function Date: Thu, 17 Sep 2026 17:14:55 +0100 Message-ID: <2026091727-CVE-2026-92505-ce46@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=2373; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4Zx6yZxm2Nml+RDWCwbkVOcRpepXLHTAicLAi7EOsXs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBLYvu6ayf4X2rNOOr1etdHq8/u4Fs8QHxU3rzK+/i bH0u8MY1BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATse5jWNDeYHM0pttaQbKd 9fOOsLNb/OQ5OhnmKTl/tWg0ymk6knb1RZ7T7uBzJ8/sBgA= 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: iommu/amd: Fix undefined behavior in devid_write debugfs function When for_each_pci_segment() loop completes without finding a matching segment, the pci_seg pointer is not NULL but points to an invalid memory location (the list head). Accessing pci_seg->id after the loop causes undefined behavior. Fix this by handling the successful case inside the loop and returning -EINVAL after the loop if no matching segment is found. The Linux kernel CVE team has assigned CVE-2026-92505 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 2e98940f123d9c69d4759078aea9a536244c98d3 and fixed in 6.18.52 with commit 8aabe0fba01486b5d893e708b05a8fa7f1b7efbb Issue introduced in 6.17 with commit 2e98940f123d9c69d4759078aea9a536244c98d3 and fixed in 7.2.6 with commit 99d42aef089a07cfb1d404a7227ac9dc7628b497 Issue introduced in 6.17 with commit 2e98940f123d9c69d4759078aea9a536244c98d3 and fixed in 7.3-rc1 with commit 843e149989665f8309ad2efe6048dc76591e1f94 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-92505 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/iommu/amd/debugfs.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/8aabe0fba01486b5d893e708b05a8fa7f1b7efbb https://git.kernel.org/stable/c/99d42aef089a07cfb1d404a7227ac9dc7628b497 https://git.kernel.org/stable/c/843e149989665f8309ad2efe6048dc76591e1f94