🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18749

Re: [PATCH net] rxrpc: rxgk: Fix uninitialised stack byte leaked via RXRPC_CHALLENGED

#18749
From: Simon Horman
Date: Wed, 18 Nov 2026 20:30
16 lines
8466 bytes
On Thu, Nov 12, 2026 at 07:43:05PM +0800, lirongqing wrote:
> From: Li RongQing <lirongqing@baidu.com>
> 
> rxgk_challenge_to_recvmsg() builds struct rxgk_challenge on the stack
> and passes all 8 bytes to put_cmsg() via RXRPC_CHALLENGED, but never
> initialises base.pad at offset 3. The struct has no implicit padding,
> so this byte contain leftover kernel stack data and be exposed to
> userspace. This issue was identified by code inspection.
> 
> Zero-initialise the structure to prevent the potential information leak.
> 
> Fixes: 9d1d2b59341f ("rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI)")
> Signed-off-by: Li RongQing <lirongqing@baidu.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261118203042.GR860048@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366437-linux-kernel-netdev=dewy.ru
References: <20261112114305.2340-1-lirongqing@baidu.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366437-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] rxrpc: rxgk: Fix uninitialised stack byte leaked via
 RXRPC_CHALLENGED
Date: Wed, 18 Nov 2026 20:30:42 +0000
Organization: Usenet Network
Message-ID: <20261118203042.GR860048@horms.kernel.org>
References: <20261112114305.2340-1-lirongqing@baidu.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2692693"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:9uUsizP1EwWaHG5c530RodCKr8k= sha256:zGLH+onyRkz6i9c1Mz4QZzW2DCnZcXnWv5N9EGYX9eg=
	sha1:HS1LFc54NXe/QXk/fF471a3gJyg= sha256:kztxEM4PKQ3Gi6sEKY30IIeQcFauWl4xgROmJH5m/iM=
Content-Disposition: inline
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 C3FC41153CD; Wed, 18 Nov 2026 23:36:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 e6VYs1rxS5QW;
	Wed, 18 Nov 2026 23:35:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-366437-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 1BB401153CA; Wed, 18 Nov 2026 23:35:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id D264E1669BA; Wed, 18 Nov 2026 20:30:51 +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=1795033848;
	b=ZFPEyvMGa8Rwb8VYptRBWo7557EhkQaKbrABPx0ClCJRECh1rc9a/P3YBXONiydNF/LZ
	 I+pc9THlo99hjXOaxQLM3dCZMNlXarsEJ6CNEMAqUbCEN5Ke41EnaIZPJX6mVn1BTh6F0
	 DZN1tqZq4+JU2/+Zl20K4vsC1/pOs72BZ+RP4D/8HW4Mi6T1dfXOoVVybeLQDHbXF3O7c
	 dtYQi/0o4JjExfL+FQ3aszU212f9xMce+lue5GRMgKpeCqMNw7yRpQKtj/UbAIW7fqHvV
	 X9Q+HzVbJ32BUSM3OFR543rFjUJ5opyYHa1NqEFDebLO7roKoHDiCOyNznsPqCQ+6Ng==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795033848;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FB+aIq8L1fmrLNyEt2DjQ8jj7Py87jZZnAJlxx914mE=;
	b=08UPQZ2GA19RKYDgC40YI7HzKTDvFW46j47UkraWsq9gygp1pxnXpEV715kiG0q//29M
	 MgBlg9SK2q0/7ivTUJBtENQ1s9M/2jwj6LDUSzNF5cPzvJFMAa7FP6qU/VaRsGH81ifDP
	 /42KH+EwsSBzPdlfys9J82fTO5EKzVoiFkoFpI6JMRNlr0+tzF94Eml/VQOlXvJswPW5X
	 ULIIl1keXEI5AiET3NQY8QERIUw9zQJoMUOmT0KIgXQV60hNL7lCg3saV8UZ9X2XlGV+q
	 O6saElmo/nqvJCYxPqA1k2eVaMOhjYYCRwH2bISzFY8IaYiNKjOFo9+IFabraWJa4Dw==
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=eSsG6kSH;
	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 46A77606A33A;
	Wed, 18 Nov 2026 20:30:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eSsG6kSH
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=1795033847;
	b=ulCprx3qlQVgJw1ultDIypDeW1q6z2+i4mLHnXuL4mAXBixkrbllfEtsRKoCU+DGHQek
	 f/ylDckYB+jUqyvKirvF546yIYJLJ5zBeLyqN7A7kjCt/nXzMkYOq6bRP2aQc9S+/2JYl
	 epNVfpbJreNgLgLveFCgQIPPkJygGYjUFMxoN4gSOeIJO+EatAhvIaEpHZo32x2HsI7M3
	 JWrWzH0hVuu76Uy6tvxa9wS6WKkfiXignyAYUqcPGe8O79i2H5ECiSuMabXGB4zqyMtVK
	 ZZL0sU6oDzmar9UtRL1Fe2liARVR1PIw+Z1hIr9EvcR8M2Rl7+VpxCFd+EFnCRKcC1A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795033847;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FB+aIq8L1fmrLNyEt2DjQ8jj7Py87jZZnAJlxx914mE=;
	b=BkFdeVriaR+CTx5CZOMEvY2Y4mQ9dadM+gXR7L3RHMbx7ZcO5ZimVvn6LXmYyPjUlaiq
	 rnOJ850Vva1SvoeuplTl4w6SF14a2IEIYFGMxgWjrpDl9un9quvz+iZt1DJGtynIfoKzL
	 5i0dCuak8dDTfkenZqs7agBP3iPWDx1DwjvZdkEf3VQg5uUlckZ2FsU6xDeRuIJoJEqYy
	 2GWhBI+xKJ3VbGbA0y1+YVRMIsPkdS9BXYrAW4sIDIBFGgyfsprkCdpS7FxV70JcruCUe
	 n71TtDzCRyksFRGudcPUKrBt+aa3u/gruvN03JnlkZZMxR8sm6Wtarp1wsqUrqiROAQ==
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=eSsG6kSH;
	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 62F99606A336;
	Wed, 18 Nov 2026 20:30:47 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22D3B1F000C6;
	Wed, 18 Nov 2026 20:30:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795033847;
	bh=FB+aIq8L1fmrLNyEt2DjQ8jj7Py87jZZnAJlxx914mE=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=eSsG6kSHVdjL8VGjI52bmfsguH1k2D2tE8rUPZsEuc5sMWFXlBtNyx31kZAxhaRgh
	 lMCjLKSDN14yjKGfI3a7LY4dEro6QJ/BzlYS51phOWn9DIxhyQEiw904CoxpKzT5JF
	 ciFPUxDLypaelxzj9y+J2d2bb1SzTtnzuT2TpMfusCa8Enf9MMLXpdcM/nniZvPNGJ
	 BrJpS9aavLZylCZrCY6uMUfmmnRmZwu310tGxh5NLNzZiAtKPwsV27Pkr6ToYy9nJ8
	 7iuQXm4DGKMf/0bqs2K2N7hr6v9tEYPbwjYdfZYw1v56BYedLAXvRXcGqnSB2Z1uJr
	 x5vto8RcdZ3Mw==
X-Cc: David Howells <dhowells@redhat.com>,
	Marc Dionne <marc.dionne@auristor.com>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	linux-afs@lists.infradead.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
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: <20261112114305.2340-1-lirongqing@baidu.com>