From nobody Mon Dec 15 02:58:34 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 4dV4WZ6ynwz6K526 for ; Mon, 15 Dec 2025 02:58:34 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dV4WZ6P4tz46mh for ; Mon, 15 Dec 2025 02:58:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765767514; 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=gYuYKgeBARaA5U1EaV5jUfa6+65jZLYvVYI1sKoyecA=; b=RTVzgwwDmfFvaso95bM7zIJdQ9O2fE6smThY4r+0fgbFog+tcKXBaUsfofpkTtaKEC08ky bszQCPlBAy8ZKKuLTeqxCRQkYiycuY6Xz0QZ73Xp8dHSLlsPVkkRmU1mDXwXKs2vJt9nq8 yKxljSHGBGzvf17fPl1LRJaR0rCYODoHwrtGBRUnYOnJgpGb2ypooGSmZrtsqz1hR03Cjo K4I9XcIq6jrTkjm/iRF1dEwrDJS4i1bMVMuNc8EKqmq+cMVZFirEs1fKES7KF+rdRnsBLW BDZ/ovb+8voUHXx4JCWf74SxG0ajLY1nUOPZft/W+cuPp2AkO3hNQXSTOSFhFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765767514; 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=gYuYKgeBARaA5U1EaV5jUfa6+65jZLYvVYI1sKoyecA=; b=XEGPjRqdEpyLgjlywld2s3qtJUD658T42qCTdY2AQBfFCA73uQ+2ajYQCzh5oT6M1TtC/V MWQ2LOfZ3AecB78chwdXWV9hlqqOamrkKvJzFMHu/taaOiPao9DTuW2eGmQTkrH7XK0LS6 ofvsjxyw9DFSgXmUwc/LZjzKbKNv4db+fdYuzgMYfkElQ/2V7kl/y3iY67KAD+0bu2Syno emzXSnGdcWF0oZSon+ndRc8f0bGsS/64AA3RHHCcrbKkZHP++6iFOxm/RDDUE+HoO4IX+w W8tdqFAyXlGjueZg6HIvRRCjO2CFPtPPgq8boGVZG7hTxqFF639JyICExgQc6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765767514; a=rsa-sha256; cv=none; b=E6Z5u6VYfHVE2H3lnMdWy2ViHSrgP5QzFR/M9pMnnpPr7pL8RheAlxdxlzPXcXEea63smu wR7MIEoDximzcnJJj0ZsGWR7cEV8FYowWwdk6VI8lmlj5cbY3fsN3g10BK0+MxTTCJZEAX v94XcnnnGUVCCn8WKEUAqGqd5kU53bfDIGzqVaBxkpH9IaDiknKLgivcuHVZNOgU+sHPig 8z6negP9xD5YkySSL59QqBmBUO7yCnP5Cpet3CJ7yHywAmMQOVnrqQDqSPeh5d6jfZafUf Q+Rk32fXlj3zxJ+Ps8OH9X5OJCdjVSYPv5WxoMKIGs1AWG5BzuwiuyhPDsrQwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dV4WZ5fQbz120R for ; Mon, 15 Dec 2025 02:58:34 +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 5BF2wYS4054122 for ; Mon, 15 Dec 2025 02:58:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BF2wYLP054121 for net@FreeBSD.org; Mon, 15 Dec 2025 02:58:34 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 289017] [lagg] A time-of-check to time-of-use (TOCTOU) race exists in the Link Aggregation (LAGG) network subsystem Date: Mon, 15 Dec 2025 02:58:34 +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: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hanguidong02@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: 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=3D289017 --- Comment #10 from Gui-Dong Han --- (In reply to Gui-Dong Han from comment #7) Given that the transmit path can continue into the protocol's start function after lagg_proto_detach has executed (as evidenced by the crash above), and considering that detach explicitly frees protocol resources, I believe triggering a Use-After-Free (UAF) scenario is also highly probable with the specific timing. --=20 You are receiving this mail because: You are the assignee for the bug.=