From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379009; b=HGSx6BFFDN3//Z6YY2eOi0LKUFNs+A0VyKxyv22K0SsXVyS/LY/mkXcFPRThEJk8dRqF g+r5bucPhrQUaw7XTsYqa7bh3ZwD0EoiecEy3IK1T0ZIdAWf//d61sdk3VAJ+kiNt9SF1 BR9nzsP6h+sG1mCzBunwBx2TtJGHS6czoF68XYD8yYvw+1XimCq8qiz2tfXOH+eDhwej3 3hPtV6Y7uYMeZKt/D+JAShKdUwVMwiH2M0J4RLVho1KxvKOrwpr1Ag1Lp2LhTAZX8BC+5 eXDhMDvuVRD8kbQpEprPwRX19g5Mpul6y7VFUFt3cVeiSlBG5icj7UxZkC/Oq7OuJlw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379009; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=p/c4n3Ri0/tEz00BUlA37/1bFqdhWEuXgsraGRoQgFg=; b=1EowzHWSIoKCFwIU7nPYnOmbd7reDQbzgNm9mL/JWET0lsKA+owdEmFXhzfYkJi0tf2P G9zIgTYEfcbiaNFTCPTIUKSeX66VEcjt8KkhTo+qZQgTrevANPwC3GTzqB2rg71ILqRND IGW7J7GvPkFx1+rNLSTXKKYZ+zK/RHprxwCcUvaEscPX4rQfkJcCpLTz/ABpDtE9yXQ0S S1Lby4MKIAIjy/E4pGbMLanIexearR6dfQwe+96se7E8xSL6YbRZ0W/RG53wObhU77eQb Z1OXKPLdy/nnGac97zPuADsrsStay9DbY851RHfZz76slG4AhCnKCw+HPkaqXvuJWuA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kSs479pO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC318606A330 for ; Fri, 4 Dec 2026 10:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kSs479pO Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB63C1F000C2; Fri, 4 Dec 2026 10:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379009; bh=p/c4n3Ri0/tEz00BUlA37/1bFqdhWEuXgsraGRoQgFg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kSs479pO+cmjLl/Nlvwelh8Zb6Ok/TN0CZ0zmPgScIyAHFsbsVGmk/kjo/nd4TUof xam4Ci48g5SBWDS0xjzPK6xjknxLJWjA/1EruGC/Ht+4PoE+hXHr2w2r8QpJ/QBIlB x2Bx9JlVd8ttOGMuVMzT1QGUCxFQXPZnzD5pZO90= Date: Fri, 4 Dec 2026 19:09:31 +0900 From: Greg KH To: "Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)" Cc: andimiu@pm.me, connman@lists.linux.dev, cve@kernel.org, deeratho@cisco.com, vchavda@cisco.com Subject: Re: [PATCH] gdhcp: bound DHCPv6 domain-list parsing Message-ID: <2026120410-cyclic-september-e6cb@gregkh> References: <179274561161.81299.4579745057858200074@pm.me> <20261204064742.3198380-1-asparmar@cisco.com> X-Mailing-List: connman@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204064742.3198380-1-asparmar@cisco.com> On Thu, Dec 03, 2026 at 10:47:42PM -0800, Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) wrote: > From: Ashishkumar Parmar > > get_domains() copies a fixed NS_MAXDNAME bytes from the DHCPv6 > domain-list option and follows label lengths without checking the > remaining bytes. A short option can make the copy read beyond its > input, while a malformed length can move the label walk beyond the > stack buffer. > > Bound the copy by the remaining option length. Check each label length > and the terminating zero in the original option bytes before adding a > name. Reading those bytes from the option prevents strncpy() padding > from masquerading as a wire terminator. Reject label lengths above 63 > and NUL bytes within labels before constructing the returned C string. > Reject ASCII whitespace in labels because ConnMan writes the returned > domains into resolv.conf without escaping; a newline could inject a > second directive. Limit each encoded domain name to 255 bytes, > including its root label. Return an empty-string entry for a root > domain, including a root-only list. > > Add tests for root domains, malformed labels, NUL and whitespace in > labels, an injected resolv.conf line, and the 255/256-byte wire-name > boundary. Cover a nonterminated 1025-byte option that triggers the > original out-of-bounds walk, and a valid multi-name option longer than > 255 bytes. > > This adapts Andrei Miu's proposed fix: > > > Fixes: bb06c47101ca24 ("gdhcp: Domain search list DHCPv6 option is checked") > CVE: CVE-2026-115863 That's not a kernel.org CVE id, so why are you sending this to us? confused, greg k-h