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 79F253E0235 for ; Fri, 24 Apr 2026 14:48:56 +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=1777042136; cv=none; b=ORX4jPracAK/VoTYzLf6alaD5O0o2ux0j/hRtl4yL8G52ECtwnlUZnwYjBI9A4e98MgRYkjtA2Jjgh37EOlov7BNkvw+cBu0Tj6sQfs4FJCFRuuq4bToH+GGuJnj+qNY9KdwkYRYVO9VrmZBuem2dF2GzjxE+C63b5i5SrQIN84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042136; c=relaxed/simple; bh=HeFUCAtD49A+wr4BBES9AS3pN0nwSFpFvAVMK7PPAJA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EUmfsdQPvr24qXsOONJoqAunD84VMS01GRvm6NfQFwPAYg9jduLSJwvnbokB4UPgFBHAnf0Ch1WAYMIeVTTe6260SJ6ArZwAgjon3GFExSHqqwbzvxqyt2X4yQ8xZ3S99ft+1Q48d5MUaWCTeAr6Q4Zclzyq84stSZ5hshq6Mes= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WNbZrSq6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WNbZrSq6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EFEDC19425; Fri, 24 Apr 2026 14:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042136; bh=HeFUCAtD49A+wr4BBES9AS3pN0nwSFpFvAVMK7PPAJA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WNbZrSq6+kOMgNKJdc0NAlZ7dmo1hRDihZgsrk0w1rsOPt0sJN75CGr4Ugb3suUP7 fRbsPnr0WbBvsSoA6HwerYQRb3PxJ3B3IBACSP+sTPd25RuOPQeZWMaemjLaStRaFn JodEj+Nz7ihpAywPt/r2NSuCBfK//VPpcS2g/rRU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31640: rxrpc: Fix use of wrong skb when comparing queued RESP challenge serial Date: Fri, 24 Apr 2026 16:46:02 +0200 Message-ID: <2026042456-CVE-2026-31640-3477@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2464; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PHdKBMU3E/aCooKi+MPaGV6LDFihjS+ONOvJcEIyVKY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm1TyPtdb/0heszWjfP4vSSXr5VeV05zE7rbqC552u NGmvHlxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEjIlhnmKxne/GuU2hjycc K/6TmNp2yvXJPIYFa5UsmtcHyUaU912y3Xr11Wvllc+uAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix use of wrong skb when comparing queued RESP challenge serial In rxrpc_post_response(), the code should be comparing the challenge serial number from the cached response before deciding to switch to a newer response, but looks at the newer packet private data instead, rendering the comparison always false. Fix this by switching to look at the older packet. Fix further[1] to substitute the new packet in place of the old one if newer and also to release whichever we don't use. The Linux kernel CVE team has assigned CVE-2026-31640 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 5800b1cf3fd8ccab752a101865be1e76dac33142 and fixed in 6.18.23 with commit 9132b1a7bf83b4a8042fffbc99d075b727a16742 Issue introduced in 6.16 with commit 5800b1cf3fd8ccab752a101865be1e76dac33142 and fixed in 6.19.13 with commit 20386e7f8d97475b8d815873e246423317ec4260 Issue introduced in 6.16 with commit 5800b1cf3fd8ccab752a101865be1e76dac33142 and fixed in 7.0 with commit b33f5741bb187db8ff32e8f5b96def77cc94dfca Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31640 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/trace/events/rxrpc.h net/rxrpc/conn_event.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/9132b1a7bf83b4a8042fffbc99d075b727a16742 https://git.kernel.org/stable/c/20386e7f8d97475b8d815873e246423317ec4260 https://git.kernel.org/stable/c/b33f5741bb187db8ff32e8f5b96def77cc94dfca