Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1941375rbb; Tue, 27 Feb 2024 06:11:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjiHlJr1YgIEkQw5GqpTXJaGrU66DV083g5smfQ7Udg5H3ysDpHCYFek+xlcvJ3J9WG3IVzR9xOFHqeEAEbo3XIrTnXs7fOSo778iUOA== X-Google-Smtp-Source: AGHT+IGuM5D0UJv+xdT3f+Xw8xMNZRv7pIs0KmtRb58W1ByRr5PZNnfXs0M6MYOpT130FGSzZncs X-Received: by 2002:a17:902:e848:b0:1dc:722a:1e0a with SMTP id t8-20020a170902e84800b001dc722a1e0amr10242761plg.41.1709043070880; Tue, 27 Feb 2024 06:11:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709043070; cv=pass; d=google.com; s=arc-20160816; b=Y0TDz/PKO1HNeHmao/uR7Rf0kfEVvRvqstYfNksrNyAn4RwgJxH3Ar6rniUObq5z05 5ywdcf4t0mRrf6bzy85jvOS6NuraPDje/6mdKlbKWeKWiPMsM5ZJjOBoWi6KjX89IiAy p1IMyERQzlH0uf2Ht6XTnCL9Y9mgN6A4OmKbf5MeYCEnhSoJDVupdT9guVKIuV6e13t6 4wLR/gVQqvkU0WNrm3yOXza4+zBKTmfb2RIlBAFojiTkzV9a34jgsoBW+PCmkToTEdnp 869th20oEeGBML2lgHMlsH6035uT7UgW/SWA8bCz2hONEEObqOfnxnFfYW7WybKs0lfV K6GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EJy/sJ+snLoK04DtkaJ4CAfZuBjA+ya31HU0Krmh4q8=; fh=34a9kEACFxiPWUPVDKGsM6UahxJKbKIMxtn4vIK2BRk=; b=lj/g8fIskhkdaeW0IhrVQBB8Zj/jzefMF+/DpLZihi9ii/j3x6rEIbIZ/HYal9qG65 BLuzHDp6q1aFzJq8KE8SXH55F03+EEn1uNIg5IM5+TxdXdWSjzbcTIbr/BjzQx/mPZXB w3vBVOmG/2x8i8bTN4GGIIRP/WOhS7og3Czqy5OUqOM8XIACsCbFG7271LZVClg8+SWq eIvCDSU/3Zt3+U75/lz/LkcsPjrbJPi75VdBhicYGe1L1qYWfPldxuovOUPIk4ElKkbd toBKjdKfc/pLGyABcZRrqGpR3YL59d4pcINi87DkhVG72M1FXl/PrZPIpK7YpwqmWN4+ CUUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OH4driMV; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-83333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j10-20020a170902da8a00b001dca84439e4si1455006plx.287.2024.02.27.06.11.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OH4driMV; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-83333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DA8F3B30359 for ; Tue, 27 Feb 2024 13:44:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3156A13DB83; Tue, 27 Feb 2024 13:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OH4driMV" 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 5FE8E2F2D for ; Tue, 27 Feb 2024 13:44:06 +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=1709041446; cv=none; b=Ukb+mWHc73QaO2VnJlVwFvOgB2sSjxHDf4eYJWtB8vf9V8oamqTT909wU3NSpMtwUOJi897U5RWGh167c+qni2rwkpuu1rpXimuVkkzI5lioNyxxqYm8PmWE7orPkqXJxSP5dfbMsS4G9dGYO5149jG82lkfxCicNdZDSh6IGVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041446; c=relaxed/simple; bh=95cFWjeY5LEieUX1HL6jGK837jYAzO+4vi3tON4jwus=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oRJY3BKTegGPThrdeaMnebxCD7p6gFYLmdQ3aNMfinDpIuZveB9k6gJa/FGvH+rho7mXQQ3wkzURc12ja8zxRM+QA0Gw4HLG25duuq9jyCyJyqEIdgGm7TfcdNxPYioz7UmT1NRtdl0YCLLO+6iTAEiYKVTOIumnzy3un77U/Gs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OH4driMV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9886C433C7; Tue, 27 Feb 2024 13:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709041446; bh=95cFWjeY5LEieUX1HL6jGK837jYAzO+4vi3tON4jwus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OH4driMVg+uVN8HYZp45ERZH7mDSv4Hlahoz+P5VpBaw8ckB+18KbFKvWbp6RzXp7 R/2acRnc3nUVvEJUlsWZeEZC1FKltddBZFj9TUY7wy3D5ecJG9GEeslQNPRtKN9wqb R6Gd9yvFozuHZmOOMrM199slzq/U/WsqKOyYgSSw= Date: Tue, 27 Feb 2024 14:26:26 +0100 From: Greg Kroah-Hartman To: Carlos =?iso-8859-1?Q?L=F3pez?= Cc: cve@kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Jonas Gorski , Andy Shevchenko Subject: Re: CVE-2023-52466: PCI: Avoid potential out-of-bounds read in pci_dev_for_each_resource() Message-ID: <2024022709-magazine-handshake-50da@gregkh> References: <2024022544-CVE-2023-52466-fea5@gregkh> <084e7c38-ebce-4091-af40-42283e344ccc@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <084e7c38-ebce-4091-af40-42283e344ccc@suse.de> On Tue, Feb 27, 2024 at 02:18:51PM +0100, Carlos L?pez wrote: > > Hi, > > On 25/2/24 9:16, Greg Kroah-Hartman wrote: > > There is no actual issue right now because we have another check afterwards > > and the out-of-bounds read is not being performed. In any case it's better > > code with this fixed, hence the proposed change. > > Given that there is no actual security issue this looks more like a > hardening, and thus not deserving of a CVE, no? This was a tricky one, I think it's needed as we do not know how people are really using these macros, right? If the PCI maintainer agrees (on the cc:), I'll be glad to revoke it, it's their call. And thanks for the review, much appreciated! greg k-h