From nobody Fri Feb 28 14:52:39 2025 X-Original-To: net@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 4Z4B5M3ZwSz5m3cb for ; Fri, 28 Feb 2025 14:52:39 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z4B5M0fs6z3fvD for ; Fri, 28 Feb 2025 14:52:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740754359; 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=8/U9GvUgkOqYVvdK8bbkk6XmetiwrmIKtBSgdR2pYIo=; b=YaCVvEr8HoSy4gq9swhg1qg/JYhuBDGDB2ZqsgnjMDg3yuG75n5KFP1jzxBEIZUzgSSv+p SSScNuz60mJ0kBrEqPlN+wE4i1VmJ1BiNjcIDpUBm/yespkCVRmbPbvIrATXLI++N0/hAs Y6ca3/I4PvH/d7KoJY+aSvxJWrh42UzTu5CEksGEtt3U4JuUWr43OXKwhIxY8IKO49UjGd JgNrxYYSyMpLw2YGpAKln1YwAksvn8juxUy5m7XnF5GnrU26nooVWHE+NLJSU/UDByCtOU N2+048PFy1eKLTE6gHyvx71OhU1YxnuVJEWg1U8eML03+e4s4iJqilh1FdiJPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740754359; a=rsa-sha256; cv=none; b=TrxAfGENLa9ZyXwf4Bn1D2PnYIJMRpxK1N4Wu2dNvvR2+gcnAGkgjcl90Qu2KJBpM2DgO4 bqQ6tmkguleyvEYtScnj+P9HEjjbGtJOXvJKlvGGWu6/vSrQBgIe8vICyP5WYdQPtwovBr Agj2BJBDS+IIAc5slP5CgPwEQIYo3F7Ej9ENrbvLX2n1s+N7LmbBwAo0N+zidlJbeDmXb7 PVu1Sq09JHtQIcFx54JB1lWW5yOXQD/TIBSic1ihHWKhHhmpVMYqRmJhTddNCSKtVMrYa3 8sC1+qqUQsshBmmdmu0OvFXzs7XJG3VhnAS3hl70d/jTxR+qMw8HLip4YACDiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740754359; 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=8/U9GvUgkOqYVvdK8bbkk6XmetiwrmIKtBSgdR2pYIo=; b=tv0//LIODyg4tbOzwsGql0NssALFg9Z7YEqusEAZPtRjyhYjgfJ0iAfJ0QYNHmskLFe/6b XcbHAmbgvOF7eSuh2aidq/uH+MPNLehkx3CAQUGCnaKgBzVmDdp+CM6PLPWuc95/QP5xUn 3CTnjiqGPs+6ShyT54dAYqQDF/L3Q7oQUvK+M+6+IV7j/Uby/5Ogj+INyOksfIgNf5a0qA j/G6SKuZ1r7iWZ4iluoV6cZf9v/+ed/IPR3sGwLPj5l+306PjBajhm647MQCGJl/LQ2iQJ oM40nksJPcUcinAE6dC88AJyqxTn0D2NVGgO+Ok/42HkcgiM83WMFCzTdqMcIQ== 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 4Z4B5L74YZzZLt for ; Fri, 28 Feb 2025 14:52:38 +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 51SEqcJd013228 for ; Fri, 28 Feb 2025 14:52:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51SEqcdt013227 for net@FreeBSD.org; Fri, 28 Feb 2025 14:52:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 283702] Out-of-bounds read in Netgraph parsing of binary Netgraph packets Date: Fri, 28 Feb 2025 14:52:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283702 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #4 from Mark Johnston --- Hrm, many of these unparse routines are buggy. The size of the source buff= er is not passed to them, and most of the blindly assume that the input is well-formed. It is possible to get the input buffer length by moving the d= ata pointer backwards, like ng_unparse_composite() does, but that's kind of iff= y.=20 Probably it'd be nicer to pass a pointer to the ng_mesg structure instead, = even though that requires some churn. --=20 You are receiving this mail because: You are the assignee for the bug.=