From nobody Thu Nov 05 07:05:38 2026 X-Original-To: dev-commits-src-branches@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 4jKtcf6Kjbz6yZch for ; Thu, 05 Nov 2026 07:05:38 +0000 (UTC) (envelope-from git@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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jKtcf5bd2z3Jpv for ; Thu, 05 Nov 2026 07:05:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793862338; 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; bh=vXN9tG57MEuMUpPKWeXtaQB1Pr0s5lZMy5se818XO8o=; b=JkuEH3EXqs+J2zBLhMxw+6Us2oEMF4QuPndCNrqQ+FYLKVTiAZ3UegHXKl5kjrb2eZBDtm dq55sgA6Iupq22P3kKpstsn4/XTWMzTSE33lErVRJlofTAS04cN5uwnZA4wYb7zrfzCZHn lwcjBb/8oD4+/RiPfkEibc+YuW00JJIeUM/FDhFtqybA3azo9Yz/1wmJ69m7kQYt/bHGY8 9d2g5/CdyQ5gm6hT4Fo30YLIZIAtsF5aIKN0Dammb7Q+oyG0KbTtI4fUVVMMfGF/tzOa7u vyTfwSm/z6fN21lbJVehVoRj4AcYHQXdZKGJ+W0KcLGkF2nDCSUNMW/2Sw3vwg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793862338; b=y2B5fbsV/7sd2KPlIJwYjKHJvRQhUE8cCk3aGocpssDPfD0cLXiw8FyPFywdr6GqdpOW89 JG+xmpe+tFk/2GwsvHt2TlQ/RSSt0dNm08TJcJ1qm9yFYO5Zq8+GkLP+E7skQwOPX2iMhZ ZU1RKaSgxoD6rJGodon77AsI0t64HVLbVbFfzPy0CtKqt29+t0ZAkqRmjCC2zChfvxlfq0 OukOJWW2lXRjOcpbliwdZok+QeseIsHej70oPLkrSpPJQmBa1cdOXZsPA3r5CnzdxDQFlz czb3BGjYs71GvndA4VQkEC+SZ6s03lBqM/3NOb7jhSkcAcekxhgu3Kkx6Z2v8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793862338; 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; bh=vXN9tG57MEuMUpPKWeXtaQB1Pr0s5lZMy5se818XO8o=; b=HAizIorsCnJLcwPF7Mqu45gVbGGix6hYco0K40M8ZQXOkXIOjfVRgmgxu/j8ZxfDbEYuuE 9NhdQ/eu5v7/6qlSQJ85LSr3YemIWy5VkesNEJqlgohnFyOOplSrcWTR/ttKJxvXR+qguJ ArI8aZtoWDi9ewW8pfkfRMjmi1pTRIf1t3dqmyPBKeqZ7No+wPu8Xjhht975lnHDKcIZMR 1ECVDaCiHUaZAlAHiEtI+CL0y+43QW+/ieWvdb6iq3+k9XSoEO9q41gwMNh64vVSJ98Bzy sgwi8tmsn6KizkqHH7Hak49yOTQyAkqQDHdzUNx9bWhiv54Wykr6+DAqnF4xUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jKtcf5Gcfzgft for ; Thu, 05 Nov 2026 07:05:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ea45 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 05 Nov 2026 07:05:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrey V. Elsukov Subject: git: 3bcfea696902 - stable/15 - ipfw: fix off-by-one error in bdel() List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: Commits to the stable branches of the FreeBSD src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ae X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3bcfea6969029f67e788e31e2dfc58c43de089c5 Auto-Submitted: auto-generated Date: Thu, 05 Nov 2026 07:05:38 +0000 Message-Id: <6aec2ac2.3ea45.44a674a8@gitrepo.freebsd.org> The branch stable/15 has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=3bcfea6969029f67e788e31e2dfc58c43de089c5 commit 3bcfea6969029f67e788e31e2dfc58c43de089c5 Author: Andrey V. Elsukov AuthorDate: 2026-10-28 11:13:53 +0000 Commit: Andrey V. Elsukov CommitDate: 2026-11-05 07:05:02 +0000 ipfw: fix off-by-one error in bdel() After deleting an item from a sorted array, bdel() moves the tail following it, but the size of the data to move was calculated with an off-by-one error, causing memmove() to read one element past the end of the array. This can happen when the table is full for ifidx or numarray algorithms. Obtained from: Yandex LLC Sponsored by: Yandex LLC (cherry picked from commit c6b08de0e4c797929f4609d86395d494ac695c68) --- sys/netpfil/ipfw/ip_fw_table_algo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c index 515c420ed663..23642c657227 100644 --- a/sys/netpfil/ipfw/ip_fw_table_algo.c +++ b/sys/netpfil/ipfw/ip_fw_table_algo.c @@ -2063,7 +2063,7 @@ bdel(const void *key, void *base, size_t nmemb, size_t size, if (item == NULL) return (0); - sz = (caddr_t)base + nmemb * size - item; + sz = (caddr_t)base + nmemb * size - item - size; if (sz > 0) memmove(item, item + size, sz);