🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8180

Re: [PATCH net] ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek

#8180
From: patchwork-bot+netdevbpf
Date: Wed, 28 Oct 2026 10:02
25 lines
8761 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:

On Fri, 23 Oct 2026 19:53:09 +0000 you wrote:
> From: Tristan Madani <tristan@talencesecurity.com>
> 
> ppp_ccp_peek() caches a pointer to skb->data in dp after the first
> pskb_may_pull(), then uses dp after a second pskb_may_pull(skb, len + 2)
> in the CCP_CONFACK handler. If the second pull triggers
> pskb_expand_head() due to a cloned skb or frag linearization,
> skb->head is freed and reallocated, leaving dp stale.
> 
> [...]

Here is the summary with links:
  - [net] ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek
    https://git.kernel.org/netdev/net/c/1e860f42f41c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179318173377.622019.1649392373971211231.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352803-linux-kernel-netdev=dewy.ru
References: <20261023195309.3527129-1-tristmd@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352803-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] ppp: fix stale pointer access after pskb_may_pull in
 ppp_ccp_peek
Date: Wed, 28 Oct 2026 10:02:13 +0000
Organization: Usenet Network
Message-ID: <179318173377.622019.1649392373971211231.git-patchwork-notify@kernel.org>
References: <20261023195309.3527129-1-tristmd@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1744525"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0GfKuzpjJ9aDitpg/2Gj+7eT/58= sha256:iVsEu+Dol4tVqd2yJ1cniLavUo7jzHD/s/ay9kQvlCU=
	sha1:3R/3giP+/ztmKmUn8vi3BqPzlqE= sha256:GAXnVQ9zps745jBrB2di7ckaia5LkMlSijx3Wl+uOdQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 544EA125C35; Wed, 28 Oct 2026 13:02:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bn8sTXICQ9bP;
	Wed, 28 Oct 2026 13:02:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352803-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id BC117125C33; Wed, 28 Oct 2026 13:02:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 69D026015D3; Wed, 28 Oct 2026 10:02:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793181737;
	b=YaeBvO1SzrcFEctM5k1+V49lJTNyikjcsxvFxQuqqbtvGNHv25Oxv7hv8Hbv3agG60is
	 vY83Ei1bmkMHg3IfOZca+6Tq/dEkt92IBlZugQCROBWnJkxctbqnNVqLYmnfZP3L8tWWr
	 zyTBu1TIa3hifSmek8Muk9AV/CGN0NcpoHxwVCvBb9tsg+8q4RJEvZDl8N5GNMFs2EyT6
	 WaKfkCVfWRM5gWIQxMVEY24jqbrY9p6FP6dDV6hArCvAZ/7ABrBj5WkxtPexJdXBjNj3G
	 zgZbCCjhYhm95UAfbY7s3v4DaCNTUdlryn59FSLjaoitlfvKTqgXdwAavxuZasxs/Tg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793181737;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=6vWbJ5WEX7+Hhe9l+MsNMHI+M51QuBqwCDm+9LW/q2E=;
	b=4iSqyMk67m3lqh2SN+E3tpZtR44lFLULeuIDtxKix21AerHYLjABAhWMJFHT3qcB1XPo
	 78d1Bro4ZZHfzOdc07INY+kt5sS+JzOq3bif9KuDJQ21xfBvxAznUOUI2liTduhxIJEIm
	 6OWbwpJpX+0ahFVUGC9zq8e0E7BkhAs935l9CLqBOBEZ2snaeovyuHdbJEINlBUe2IhSm
	 AQXZAKkRJUF3I42nMsBS5aZn16EyJLqdUxlVWC+pzq02mJkSKMAGPjlGPCvH9DnSmW2kM
	 O8Zec+cORyl6ByZtEj2CwBLM/96XbOEwiVNDkfJHOTl3Bk2Ta5qGAl3HjmS6vYxWY2Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBbBgVE6;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id AE274606A325;
	Wed, 28 Oct 2026 10:02:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBbBgVE6
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793181736;
	b=xnXQPiGoAwwyJBJdjmyyP/fe5d0AzT+CIzE9SsENiEu24gvE70ZWfDuApvNI4IKJHz17
	 PEKvfk9s4N+OekeYvbKzt2sZmx660jufPBhR1VUueyQFqVDDwJiCqV7FnKvsPjvAWIVGQ
	 B4EZvVITnozKHuk73VV9XgOhfsAmgWltw5hBtb+TOYvEGFmBYq6uk1OVXWz6xUNQPi7HY
	 xEj2+CM+3Y/DmtJMrAfGILxQimCNcGAdgpSnWAJQvjPqu1dJRvqd31TNHoifPzENGSRIn
	 QY8OenL/Jx0JM37qoQz2x6xezn2ylYYX7AhzkI9tlQD3fHHKXdfk9/h+IHJ3fUHAaJQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793181736;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=6vWbJ5WEX7+Hhe9l+MsNMHI+M51QuBqwCDm+9LW/q2E=;
	b=4qVn8MnQjCy0jOoJ+/4zcBIno4WqukB9/TJjrAS6VzVThxY03L+6QZtPj7lr5XtVIP6E
	 X0sA+f0obZtHdaCz0W740xHnN2BUueorCSUopOkObzuTqGtjm8lEtlTqpB4VyKc/YUk75
	 hCy6SRuMJULCdo1FEFf4AsYV41EIgvceqWpuN0mC4TpJ92hRhLV+X8PBb8U+d+iZf7uPS
	 CxpMJjuNf4b4gysTc9LmfBsKWrdUOpOAw8WzkrXWAy+0z6pL3QrIzL0PDT2USlyfAz701
	 E7tIKpK46tyQHqNJT5QsmGM3eFpR9DL7yYZX19R9Wc53SZlj9K3/QS4ysULvGegh+Zw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBbBgVE6;
	arc=none smtp.remote-ip=100.103.45.18
X-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 BDE39606A31A;
	Wed, 28 Oct 2026 10:02:15 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 528751F01828;
	Wed, 28 Oct 2026 10:02:15 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793181735;
	bh=6vWbJ5WEX7+Hhe9l+MsNMHI+M51QuBqwCDm+9LW/q2E=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=LBbBgVE6CSOJogR7vhGc5bl09bBLRy4+dWwQZoxYu+7np6H47zoTRur51fBqdAgF7
	 1w0kLdMZPJezlbklJqzUlUtnIwl6u3H8S82mDKbBht70ciII25Dw1gF5Fd8rREq1Mb
	 UVI8hgZ9TBQotQ2BOdkq7Ro2l1Ti+6jkis/8ZvJbAAdwjuKpQk+qcjJtWITZygQ1wE
	 FGggmshSb3hD89yQZ4LXjgjp6eHp6umSI6nLVxMwMwPO0uenXpUzCUr68NOKmUohVb
	 n6MXylFaKAcIave7aVUPlpazKrA4I3LmXXpSKEEG4HU3hVcYa6eQlYR+VtBHplAQK4
	 wtwVFhl9D9ADg==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 447313AAA0DC;
	Wed, 28 Oct 2026 10:02:15 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261023195309.3527129-1-tristmd@gmail.com>
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, qingfang.deng@linux.dev,
 linux-ppp@vger.kernel.org, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, stable@vger.kernel.org,
 tristan@talencesecurity.com