Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0647D606A32C for ; Fri, 4 Dec 2026 17:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmarmstrong.dev header.i=@gmarmstrong.dev header.a=rsa-sha256 header.s=fm2 header.b=lUrKIcZp; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=JpmjUMPN Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZXTd-0004Fw-Im; Fri, 04 Dec 2026 12:53:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZX97-0006Cx-Nv for qemu-devel@nongnu.org; Fri, 04 Dec 2026 12:32:35 -0500 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZX95-0005qT-E4 for qemu-devel@nongnu.org; Fri, 04 Dec 2026 12:32:33 -0500 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 44BAB1D000D6 for ; Fri, 4 Dec 2026 12:32:28 -0500 (EST) Received: from phl-imap-17 ([10.202.2.105]) by phl-compute-03.internal (MEProxy); Fri, 04 Dec 2026 12:32:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmarmstrong.dev; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1796405547; x=1796491947; bh=d08Tbl3d2Q2YqUYr2h76eVPuzkiccyoR PRswkIPVeTE=; b=lUrKIcZpEWzcd+GCps6MfMRkFK/6HyGlYdXDhITGj5kCgwbN mellLc8Cpe8VBgpuDancJ+5WBIxZ/pDQbVkz2qJ8p0JoqCMQIisZHJDgxt0Kq4Nj z55TTyOjy+V/1HgiJjWUwhJdLL7EVEVhx7xnVIxqaH7hRpjzLPTrVrG3VWz8bPj3 3TkZLBPx10VWJQdZ4xZTHdL/dBqjdpiW/0b4/MBYu/2kcydl/QVjt/r0dxhJuOGK F+455UPXVL47KklbjgjG4P8/fv6rpIJMvqh7xUKsC/zJtt/JFEamqJQAVyp7mWUg R0MGal9jrCWy4f9Ard+PoeLdyTJDQbDj5Q9C/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1796405547; x= 1796491947; bh=d08Tbl3d2Q2YqUYr2h76eVPuzkiccyoRPRswkIPVeTE=; b=J pmjUMPNKMLUI3WDfL4hcVfj4XqJN5GfFNY4USTEUMbffAdcgap/1PF3dHpjZ6jS7 qZf/12oF5xp1Lb6t1l8BpB1/XNrUrqdlZEw5Tw0qR3KSW0SZRkZk50DBi0izmTyJ hfP+QG0OeFK7sElO6MmB8ivmAumJkEkQu3ZrxB41eXtfpNTcH9fdZFkT6aQtlFA5 4HdVuYoFV0gEu2sfBj42yqnEyDdjjm3DcEGs8XuJrajidckwfTnc0l+kXLinxH4I bopsHwp3Yb1zcIaVJwBCbhscKebRwpk3ofCrXFJ+Em2UbzUChRpjtR0t9YtKTcoI Oe18tjaXyE1NHvnqqWDGQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=gmarmstrong.dev a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796405547; d=gmarmstrong.dev; mf=PGdpdEBnbWFybXN0cm9uZy5kZXY+; rt=PHFlbXUtZGV2ZWxAbm9uZ251Lm9yZz4=; s=fm2:rsa-sha256:GlUyUS5nL/hZfqXOQmhl3M7LEdOTsoDNbtYZr+UWLb25fB9 pb7jlb/ZoWC532Szf4zSG65sAqRl1AeSbtG697S4hDQePevmD89bggDthGmQkUC3 2kEVvxCFGA8TKob4JLHZJLhyiYWJX3FAtzV2eAHqfHoXOTTi5JjAtwVCmcWALLsQ AZz7sPBNC/NBJOtFK/01B7bFhutDbcsdw/Y8piLUsjlOXCUIQKLOhshCfGgZ4op2 kTbAZExvihlFMg7rPs5DscJiWuKzSu5L9VVmn+NhKt/0gsO6vzxFPQkke6G54exL XccIrNdqoKWklsVzAUCFZ896v0Owr+9/yrt872A==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:VgSvWCv0FPMTVLjjSEVZAh24OPHNp90W62beb93blY4=:d08Tbl3d2Q2YqUYr2h76eVPuzkiccyoRPRswkIPVeTE=; X-ME-Sender: X-ME-Proxy-Cause: dmFkZTF4FXYXRLz0PFWWJOGmoeEjfyE11kngH8Lwdcwz5VNNf9EzTz2dJdwDwq44+Qs+cx ZUM4vLvD5ej05AYTcfa4mTAunM1q58myg3a+xj+W+R92LfJ1P2WrB4GoSHZFAzPJ+ZxTXE CX4fZhlZiQDMmv+TbTzSfAE2oiyA5erPhYCRy3O9tRPTDVYtlZfGFma3kGwFDsUwGNFivC wWvhXkbzRq1kNHnO5pqURphtp8zC8JVTcrA9DcGvsAAQQUJnqUTGVP26G9jrEBeVg1Ejqg ueEqvl2R8nQm4ka9hbtkLt+3y3Kw5APlndlJ6bjUNj7oSruIiu3ZoIjaURenfOduE42CPj n7rsYR8htU7rSyKb0I1fYUQYFc7euBtT7b5sleqICDnbI/0V+NgPKW2XHQsKWPQbJqTNB/ 495WdWgISeTce3165AwkY32mR+W1zgbjAY4su9ZERwbT+YvPYl7oP1y/7iCHLRCz2RGuo7 bZnuDBZRTGK4sSHZEVbFF5Ynh9eICadz1FHXOpYSIF6XJatJoo1AfJJlNPjjbq/BNJqHpy oK9WGVbbd5N5CAcbRSt24unqpxWnmvEPn9t2PKk8F10ZzqWYhTOlTu14dx+eveElrDinvn pa6z0tTJ4kEu/tFOSIxtBxmQhWf9cXYnVM4M4u4BvA3XvXsp+uXQhu98Cj6A X-ME-Proxy: Feedback-ID: i54d949bd:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 10E51C40078; Fri, 4 Dec 2026 12:32:27 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Archived-By: MIME-Version: 1.0 Date: Fri, 04 Dec 2026 12:32:06 -0500 From: "Guthrie McAfee Armstrong" To: "Harsh Prateek Bora" , "Chinmay Rath" , "Peter Maydell" , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= Cc: qemu-stable@nongnu.org, qemu-devel@nongnu.org, "Gautam Menghani" Message-Id: <479329a3-3879-43d3-9507-2d19e9ca5ace@app.fastmail.com> In-Reply-To: References: <20261028052024.38377-1-harshpb@linux.ibm.com> <20261028052024.38377-7-harshpb@linux.ibm.com> <639f0cf2-f637-4fd4-bfb8-645c584a9377@linux.ibm.com> Subject: Re: [PULL 6/6] spapr-vscsi: clamp adapter info DMA write length to struct size Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.146; envelope-from=git@gmarmstrong.dev; helo=fout-b3-smtp.messagingengine.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 04 Dec 2026 12:53:33 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Nov 18, 2026, at 3:54 AM, Harsh Prateek Bora wrote: > + Danpb > > Hi Peter, > > On 18/11/26 1:57 pm, Chinmay Rath wrote: >>=20 >> On 11/17/26 20:47, Peter Maydell wrote: >>> On Tue, 10 Nov 2026 at 06:54, Harsh Prateek Bora=20 >>> wrote: >>>> + qemu-stable >>>> >>>> Hi Peter, >>>> >>>> On 05/11/26 8:57 pm, Peter Maydell wrote: >>>>> On Wed, 28 Oct 2026 at 05:21, Harsh Prateek Bora=20 >>>>> wrote: >>>>>> From: Chinmay Rath >>>>>> >>>>>> vscsi_send_adapter_info() used the guest-supplied common.length >>>>>> field directly as the size argument to spapr_vio_dma_write(). >>>>>> Since common.length is controlled by the guest, a value larger >>>>>> than sizeof(struct mad_adapter_info_data) (148 bytes) caused >>>>>> dma_memory_write() to read past the end of the stack-allocated in= fo >>>>>> struct, leaking arbitrary host stack contents into guest memory. >>>>>> >>>>>> Fix this by clamping the write length to sizeof(info), then using >>>>>> spapr_vio_dma_set() to zero-fill any remaining bytes the guest >>>>>> requested beyond that size. This mirrors the existing pattern in >>>>>> vscsi_send_capabilities(). >>>>>> >>>>>> Closes: https://gitlab.com/qemu-project/qemu/-/work_items/4626 >>>>>> Reported-by: Guthrie McAfee Armstrong >>>>>> Signed-off-by: Chinmay Rath >>>>>> Reviewed-by: Gautam Menghani >>>>>> Tested-by: Gautam Menghani >>>>>> Link: https://lore.kernel.org/qemu-devel/20261007144434.374749-1-=20 >>>>>> rathc@linux.ibm.com >>>>>> Signed-off-by: Harsh Prateek Bora >>>>> Shouldn't this be Cc: qemu-stable@nongnu.org ? >>>> Yes, should have been marked for stable. I have CCed it now though.> >>>>> Given that spapr-vscsi is supposed to be covered by the "virtualiz= ation >>>>> use case", have we deliberately decided we didn't want to give this >>>>> a CVE, or did that step in the process get missed ? >>>> I think it got missed, can we still request for a CVE to be assigne= d on >>>> the gitlab issue? >>> I asked Dan on IRC, and he said: >>> >>> "depends how far in the past it is - if we've not released the fix >>> =C2=A0 in a major release, I'd jsut temporarily re-open the bug and = add the >>> =C2=A0 CVE::Required tag, and close it again once assigned >>> =C2=A0 that way we at least get a record of the CVE in the issue tra= cker, even >>> =C2=A0 though its missnig from the merged commit message >>> =C2=A0 if it was already fixed in a previous major release, I'd just= accept >>> =C2=A0 that we dropped the ball and move on without a CVE" >>> >>> which sounds like a good idea to me. > > Sounds good to me too, thanks! Hi all, Just curious whether a CVE has been or will be requested for this. Thanks, Guthrie