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 797381F4CAF for ; Tue, 26 Aug 2025 14:45:31 +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=1756219531; cv=none; b=R10sp4QgjcDfNBXs9yuwyT7e1clatdU3MmMJ63ydbknGpD1Si/26UNUvKTAnydl964QbGm28+gH+Hfal5ALe8r24AJ+hn2YFy9S8896lhwYjpPwnOUCaRKBuYTAti0tu+P8lXGZugQP1+JIg8XdgXLRusGIX6kQy6wXERYUzaSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756219531; c=relaxed/simple; bh=Q24w5jhYhpLWgZW0ndtU7/0KJiYKWbuvwOChYJy8Q+U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=omYw7KIsDQHduV9qttqzMXhAR7I6owlyh34qRh03t+urRLGtwLllDYH+ZTVxANh3E4CLAxruhW3B6c5sT3hnHy4IwbTPN+oAv/v7JWHL3lhfKmB6Vdol5x8hGSlxH79H0UijsN5ppmg2QN9clSS7phy7imc83OXkIYKIeEAFLK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OqcLk9fd; 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="OqcLk9fd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C8AEC113CF; Tue, 26 Aug 2025 14:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756219531; bh=Q24w5jhYhpLWgZW0ndtU7/0KJiYKWbuvwOChYJy8Q+U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OqcLk9fdviyzzhY7PGqJC8oGHztYDgaq4VoHhVuQjJiLyboFx8cwwHkdD1Hb+e9/q w6WE76Hv1pu2/awD2k4bSEL1VCothL+5TrPxI4XyXtqy7kFXFesoI8m4h+ECCo7naN eYmVd9AhMZT8JyNVZ4OE4ZxPJB14pw3ws0eAVEb4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38676: iommu/amd: Avoid stack buffer overflow from kernel cmdline Date: Tue, 26 Aug 2025 15:08:28 +0200 Message-ID: <2025082627-CVE-2025-38676-326c@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2117; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Fy7TviuOm4HvTX/8q53d0jGWGtZl3Q1X9SFUvsZL87E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlrN542CG65FZd/Kvrt59l7Hk959ur4ej7JDl/Ft2zP1 66/cW2hbUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMJHczwzyj1ic5R+/NXDo1 LPuUioH9p7Nab38xLFjM3PT9+d/PahM81+VU7F+6eKHznhcA 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: Avoid stack buffer overflow from kernel cmdline While the kernel command line is considered trusted in most environments, avoid writing 1 byte past the end of "acpiid" if the "str" argument is maximum length. The Linux kernel CVE team has assigned CVE-2025-38676 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit b6b26d86c61c441144c72f842f7469bb686e1211 and fixed in 6.17-rc3 with commit 8503d0fcb1086a7cfe26df67ca4bd9bd9e99bdec Issue introduced in 5.4.237 with commit 5e97dc748d13fad582136ba0c8cec215c7aeeb17 Issue introduced in 5.10.175 with commit f2a5ec7f7b28f9b9cd5fac232ff51019a7f7b9e9 Issue introduced in 5.15.103 with commit c513043e0afe6a8ba79d00af358655afabb576d2 Issue introduced in 6.1.16 with commit 2ae19ac3ea82a5b87a81c10adbb497c9e58bdd60 Issue introduced in 6.2.3 with commit 63cd11165e5e0ea2012254c764003eda1f9adb7d 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-38676 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/init.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/8503d0fcb1086a7cfe26df67ca4bd9bd9e99bdec