From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B9A83431F5 for ; Tue, 5 May 2026 20:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778013431; cv=none; b=CAP4wdgvVTzfw47k0IEkunHnzelCxerIAmS/Fn7n9XAbzI6TWj4FHG03wGDwPfpm5VN4FBezBnzD+vQZ2kDrcx8nE2t9SPb1tiV5EMS2pWKrbQD6xcWYCyzI1Geeq9/Ct1eSnx+MdIUGK2M61iWuRuoLvA+zlWEv5piAeVj7r5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778013431; c=relaxed/simple; bh=2VBD2StxeBSn2lkuUQodYzWgZT895GY9jOdPfGL6kQY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ak90/bzw6E+RKOohurpsSUINrMTGvmb9vG5AteaRhZGMo0W7zSYR4YW0zI1N+Svt6lywQ/OL8qFDlin3Fd6/XQDJBL7+y8eCV7je9DXC53IrC+AZ2+eKvVbTvklWqMzYFpm4O8213o9wHcRsxIh1GKrCd8ZRlavOrTqlMz6eRVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rTQdB4qa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rTQdB4qa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 953DEC2BCB4; Tue, 5 May 2026 20:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778013430; bh=2VBD2StxeBSn2lkuUQodYzWgZT895GY9jOdPfGL6kQY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rTQdB4qaSPjDDEjCNrw+sCdq8d9dMeA6g9qCfnNarMPMSmGRLErrTSrYaZPo8JAuc QEqSA0V+knU2vGPVNkzB12+otgP+cwZVhqibamc0kgLN5D3NVpcCEABf4ufhDlxQii L8z/aS8VDirZfnFTaKqqwa0kGOD3fGivcupLhwlrMUssaqkT4hY7Dck1lpsCUG7+fO Oz9coZqdxO2mI1VkB75ncPGjDt3mgsF8pqQP6Bv5SpKND2bJoJjTpYPycgLUkMfBTZ U5Gwy79O1UUtrs+YTh1aYNhc6hKohUWER0TVrNDP5MULw2YvwsB5ZAA0WgKU+muX0h dJ2YFS1V/ID2w== Message-ID: <272d1f19-032b-48e3-8f94-38d9906609a0@kernel.org> Date: Tue, 5 May 2026 14:37:09 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] ipv6: fix potential UAF caused by ip6_forward_proxy_check() Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: Simon Horman , Ido Schimmel , netdev@vger.kernel.org, eric.dumazet@gmail.com, Damiano Melotti References: <20260505130056.2927197-1-edumazet@google.com> From: David Ahern In-Reply-To: <20260505130056.2927197-1-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/5/26 7:00 AM, Eric Dumazet wrote: > ip6_forward_proxy_check() calls pskb_may_pull() which might re-allocate > skb->head. > > Reload ipv6_hdr() after the pskb_may_pull() call to avoid using > the freed memory. > > Fixes: e21e0b5f19ac ("[IPV6] NDISC: Handle NDP messages to proxied addresses.") > Reported-by: Damiano Melotti > Signed-off-by: Eric Dumazet > --- > net/ipv6/ip6_output.c | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: David Ahern