From nobody Fri Nov 11 01:25:32 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7gxm4xppz4f0rp for ; Fri, 11 Nov 2022 01:25:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7gxm3dWCz3HpQ for ; Fri, 11 Nov 2022 01:25:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668129932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P4hDKclDcFm7HqYsFmlrStIfdX4j17cmRo4JqC9XqFk=; b=iRgqnNpVDuUBk1QC6tK+2IR1QbVEmNL46042yP7CeCOX4u/Du+3Q/luWKwTD0I+rAVL+iI z+MgrtyRr8eOOF5etuRBWAFLG0ffRAmvxLPJuXRHWLXvz/qh/mWKn80egYVZ70C3Fy43oU NyOVoM5T0rjziJ0QkBwTq2K+EO/K2r22F26b5hcSomOB66LIMUVqPvzP4luGJiZiRsUd5p TMZz9pAqHKCCtQN7N1bR+x2vBZB3KuDgi9qBfpV1lNkEcDyIrO80MR6fFa1IL2IGiFc/Nn 0iR2SjTgLEYGUrSDPLqU/cnwKwP6XCwFPlxjwb61LWHzkhCX1eT4g7WTiAUx2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668129932; a=rsa-sha256; cv=none; b=R0VVIZeLVB6a6phqEqM/rhgTV9l36Z3byAnoR04jwu7rrTXEifbpLOAyZBCrlBjnITgfgh OauCGI46m7fqQNKauI1HHnfbKJkoo8156o/wUeP3K9OVlcm3EL0o/Oad1Ud5YxhGicWpzJ JfH1uwaJQcu2jK4j72HyTgNrmtZ1tLifeGhRssX2EMLWs+yP9WYJZyJCOrSNeycnQ7PhyI uaYwkfRZBwBPzgvwapWEdcKCRW9gHY3jHYYRSTqoecQzbRiuZP3s43dXQx7IVIsVezvmy5 vKMyeKIgVh6Mn3XiTgr8WZYLrpUSgqpWK8zFCufjTLkaWvrSNuSKmB79Xi+4Zw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7gxm2jWhzNgB for ; Fri, 11 Nov 2022 01:25:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AB1PW4b023599 for ; Fri, 11 Nov 2022 01:25:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AB1PWuH023598 for virtualization@FreeBSD.org; Fri, 11 Nov 2022 01:25:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 264521] bhyve: pci_vtscsi_request_handle() can read beyond allocated heap object Date: Fri, 11 Nov 2022 01:25:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jhb@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264521 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1282bf40f7b90af1fa90223125e10c8e4= edb5c39 commit 1282bf40f7b90af1fa90223125e10c8e4edb5c39 Author: John Baldwin AuthorDate: 2022-08-29 22:36:11 +0000 Commit: John Baldwin CommitDate: 2022-11-11 01:13:19 +0000 bhyve virtio-scsi: Avoid out of bounds accesses to guest requests. - Ignore I/O requests with insufficiently sized input or output buffers (those not containing compete request headers). - Ignore control requests with improperly sized buffers. - While here, explicitly zero the output header of an I/O request to avoid leaking malloc garbage from the host if the header is not fully populated. PR: 264521 Reported by: Robert Morris Reviewed by: mav, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36271 (cherry picked from commit bb31aee26bd13307d97c5d5bf2b10bf05bdc18fd) usr.sbin/bhyve/pci_virtio_scsi.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=