From nobody Thu Mar 13 10:24:43 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 4ZD3XC4ZW1z5qRQT for ; Thu, 13 Mar 2025 10:24:43 +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 4ZD3XC45Zdz3r21 for ; Thu, 13 Mar 2025 10:24:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741861483; 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=jaPcjBA93/jcZ0p55KdfxUgFvfVjPg42gTEDMtbTF9Y=; b=GHqzREuLvoYj1dVa3llzbxGh+/Rsq1N+wLmuXQ29FswrY57dpirbMlgpVSC9kehoxQVu/p qosJsJJvirK12OmpPngaJ7tih1d+/ZtGMAoaOKHrI1LwPGz7q8qN3bGa7okAqNPaAd/1FJ ytNgFynh4UwDPQ2bi/legnO6Wl0penhyY4oCiLrCNaikFp/VYqeOe6k3Ltw8a7sI+nEcmb 04ptJC/6UvjIrHH4V7ORQLOUZHoivezadkBCyFDOXFixTfZUV2uYSLzywpDF9PFJQu7gkH RjakLD6j/uu6uNf0qr3pNZyw/K43AxyfzFy3LI7vVsQupURF0F2NQ/7+fw1mRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741861483; a=rsa-sha256; cv=none; b=JKouMhdM1ql2vUtCjjzqvsfSj/QtOAR1oM93rpSQv+Zl+cdFm4cgeC4hRbEurCx8zzE2PE TKrMqlOCmFKxS2Z7uNPafoHTUhAo2rlllUtvjf6bHorpEaQOwJS9CkxrY5TR9YMjP82XGY 1AuwCcGcUcCF8A36ScVf21weoe1A+wO5863sIJ/+73HSknMN2v6gFVVUA0A0uMgYJBAmSL m4Bw7B7pSYQrw/ahofzh+D6RdR40VjL0rbVdxtU6ZPMzbiae4+YFmhXkzPFw6oviWbVj/a tsSDDMo0ven4dikrARSWRL/RElUOcssOziVhBqorGOhJNAtnOrXxHe8rPfRsiA== 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=1741861483; 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=jaPcjBA93/jcZ0p55KdfxUgFvfVjPg42gTEDMtbTF9Y=; b=Myi8WySKIdFau5jRvEbUQJRP4++z87sPRhH7Cl+tkyq/Lgjfk2jbFvUfe87V0qLoeevmxF no3xZEtXTLkir8o/XptqO4SrXmxlKqE7fjlbBQ4ZGeziaCqA7Udy3jkktoA7Ctt8/73g8q +EgNcmKFF9gk6BahuBABAjcPeTmr0kW7qNLTjNkaNHAP4YSoiKXiM0Ib3A23CBcmczN0wZ US4bI+j0igAsgB2qPz7TXvZBwLW8++eNGxXa48aNyD7u5jdn258T81XzhLJnlO23d7UHBn 1CA+G3Uq4pT+xQaFVFupI65R/Z0SkSp0XusOr4OuTFfAxvvFjEKLOmQmrSfm/g== 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 4ZD3XC3X4Fzv0K for ; Thu, 13 Mar 2025 10:24:43 +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 52DAOhJg038764 for ; Thu, 13 Mar 2025 10:24:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52DAOhQ5038762 for net@FreeBSD.org; Thu, 13 Mar 2025 10:24:43 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: net@FreeBSD.org Subject: [Bug 241010] netipsec: key_dup_keymsg bcopy too much bytes Date: Thu, 13 Mar 2025 10:24:43 +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: 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: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? X-Bugzilla-Changed-Fields: 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=3D241010 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1219a3f40db386aaa10edfea27d9cc73f= dea3935 commit 1219a3f40db386aaa10edfea27d9cc73fdea3935 Author: Andrey V. Elsukov AuthorDate: 2025-03-06 12:18:59 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-03-13 10:23:29 +0000 pfkey2: use correct value for a key length The length of key data is specified via sadb_key_bits field. Use specified size for buffer allocation and key copying. Also add a check that the value of sadb_key_bits is not zero, as explicitly required in RFC 2367. PR: 241010 Submitted by: jean-francois.hren at stormshield eu (cherry picked from commit 04207850a9b988d3c04e904cb5783f33da7fe184) sys/netipsec/key.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=