From nobody Thu Mar 13 10:23:41 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 4ZD3W134zvz5qRWP for ; Thu, 13 Mar 2025 10:23:41 +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 4ZD3W12SWSz3qN0 for ; Thu, 13 Mar 2025 10:23:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741861421; 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=rwx7N4PAc3xZxXHg5GrSeiwxNulBbx7sl4FmQ7RbhBY=; b=f94Z+ZxgPKv3D3kvzJwLRgt5J1UqZfqQbhhaCPHQPM1kRovCx9Rys3HshCUH0+cCCDDT5g el8gjgeIsSeebsHrxhI/0sYSt/c7gfxDSwXyhBLKJMgkdbVc0QVpTrY9VbeMkeDwsSsJSC AzFwN42eDPaZPbpw6ZOt08RYE7TVKHUwEP8dGHKnH1zP2FvbTW6X0Ycz7yburOVBBOOMu1 N3PsotSOSCXKpPDWROyRSyxP54G0RqOSlF9/c5KfRU7HvLRL+79Kd0f+PuLqlZqdacLYSR pR+aErbpQbVTSL7CNqIx0uiv3G5Z9/vtI/+6K0PTNjOfkp3ufdIOgwH5QrO17w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741861421; a=rsa-sha256; cv=none; b=mr0fDwuao36ta7n4/NXE0crhxFM5uZ1FGyGnl49gZYUIlaJWKYWJcydF0/SWrU+iGCfXKJ rUpmZjjyFdgZdMBa0cG4UCeBCuqpm4SDVhtWg7A/318mZxWP+99uznUGb1uMkHx1E4YDfO HgkEue3lwK4KEdNY83G6HGw3hOdwFOtY/Jc4ATzdcnDTBgkRmUifiHe3idxrRJdMs6rfsv lA4IT+33Hv6wmviPQYzXFeM+0zcvlzwEgEw7Q/qZFX7QsDg9LM5IRoDVH7dKWOllgq1Pjd 82Lm6a6z9QpC7llRWWNLbxiLvAFFiWUUmsw3amI3FBdNLS8p+SxDWcdIOcABtQ== 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=1741861421; 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=rwx7N4PAc3xZxXHg5GrSeiwxNulBbx7sl4FmQ7RbhBY=; b=fV6HkHpXHVXftba8zDOQExQcjCxyMjjLQ1fpicxW8MxGoZJDLMmje9FsG4fdeehVDlj7/Q r6gsiIJTuNqYYSA2IPTzwImKXmKESPZhaQrbTG46UTLE63KJA9ErrDwOxXe9WhP09Xl1QG KI0u+ZTCG8Ywh+oNxmg8rFxQsKrt8CnC21U3tqS1mD0SSB9GdOV23j3ymOdG2AdUEBHEKF eRoqACVZX3i+OpMS4Z2ybLqlkwwuMTbpQa+MIfNxGmM41Uduf5a20zcaluy+n2e/jBsTsC 3UF4ODJKJjMZvpSVkkN867Hphh3nBmpqHrvYH/CkKbACo+1kRPJyzfNY1rOX5w== 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 4ZD3W1235ZztlW for ; Thu, 13 Mar 2025 10:23:41 +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 52DANfVh037258 for ; Thu, 13 Mar 2025 10:23:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52DANf8s037257 for net@FreeBSD.org; Thu, 13 Mar 2025 10:23:41 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:23:41 +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 #8 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D72e2ebf642125efb74479fd038f45f49a= 3e846e4 commit 72e2ebf642125efb74479fd038f45f49a3e846e4 Author: Andrey V. Elsukov AuthorDate: 2025-03-06 12:18:59 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-03-13 10:21:30 +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.=