From nobody Thu Mar 6 12:24:30 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 4Z7pWf5YHFz5pWLy for ; Thu, 06 Mar 2025 12:24:30 +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 4Z7pWf2zYCz3Kyd for ; Thu, 06 Mar 2025 12:24:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741263870; 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=tzrveS/5sVnINudbRWZ9cVedchGrjAnwSXsS44lFA/E=; b=UmKDXUCGw5R9aQALIdmAMizhmY6OkH8G6JGrjG7JxjcLL2l2m7oot0eZJmzSZKx7uwJHMc JLhpzpjEI8RsdMvvipbA6MZDcy/oRzYSVDJ8Py+4QqwGh3ifLjaQLflRmaYhKoYtWi5uXm 13vwWq/a/9Je6ZMZdYUZowjyKjl8KpMTVhqjPPOWUdEVcZkUtpNP9a2iemYy8BDng0yi82 kKdAZtAbWa4/uG0MryKC80SpbcG+kpin4v1OMk9hv3qQ/TZbu1R2b7GFd1by3bToZCk0eq nXzR+X0vpnQf3wk8C/gB+bJPICvFSJjvELNRZQPrU4L8TlLF5a8aw2JNIDeK2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741263870; a=rsa-sha256; cv=none; b=npQzs9tAMnsUQX5w+MYlGh1EmdYlXB9brvVT9YHngFaqUxB8/mstGU79ElM09ZaRs7DiGE cv3lJwtRj8YysVQE0baXcFwi3P66Cn1OhsFuH/xB95vlkMJdeyUb9s7T+7XCkxdZ5VJfUZ 2jExLWCkcWQ8eO1ahuEIbPgBz1JzKh8jGj0/jhS9K4EFQx9DMWwSb44zvR3mSIAEw9wZSJ qTV6OrxGSULblqTLB7GLASU+6F0gh2abDKwk3drkteB4uwHLAh/05xvuzPekz3frjZmtEZ Xotbj1yq/fFgtGj6a+qiokUKcBJiRxKlMYILq8uDZAr8+Wpz0J476HG0u55agg== 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=1741263870; 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=tzrveS/5sVnINudbRWZ9cVedchGrjAnwSXsS44lFA/E=; b=l1GHfOWfP9/9+DDTTXw0WyneTob6i68dlCeGd/Qz2IQ/2crbXof3eCXNEFadAKC/9v6b8u dT/MrPyQ5RHgt++GDEJGawLluEACzENwinjFat0VlVKQT8stUGVCGJvm8aC2SuK5LLU2Ie VpWPZ6s0uET67yIJ9jzvXwuWqW8pJF1ohUIMqk1e4a9t07XBqeVlWE9328f9462awuySJ1 ODvzyvCGzFt6BJ8ln2dAx9qInci/ab/K9/B9VJ16x5biyanv4ANr6aPQf4UhMvgSmb4bK9 W5dA48mffcVWrj/64dWmTWbYE/xhvcNMsuiV/I7uzU9s0Fe2V+iSAmEqThFKQQ== 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 4Z7pWf2W8bzrKy for ; Thu, 06 Mar 2025 12:24:30 +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 526COU4f061964 for ; Thu, 6 Mar 2025 12:24:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 526COUnm061963 for net@FreeBSD.org; Thu, 6 Mar 2025 12:24:30 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, 06 Mar 2025 12:24:30 +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 #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D04207850a9b988d3c04e904cb5783f33d= a7fe184 commit 04207850a9b988d3c04e904cb5783f33da7fe184 Author: Andrey V. Elsukov AuthorDate: 2025-03-06 12:18:59 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-03-06 12:18:59 +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 MFC after: 1 week 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.=