Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 F15EA403E9A for ; Wed, 27 May 2026 13:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886821; cv=none; b=qy2mUpu3DyPLQ3OHjk6hOUPGJWBF4vTo31GrnF3T+kPtkbPqjvevZ4jS6WUfUzgyG6K0mH0YA9hntTMLQHc2h94KkwPq+5Hlxgf/w9uwd0Y90elOwc5a4Y/jMnPNmGOfaCSDOkXoss1D8HDyQDUMXa6gwpEcfuT3mEyGqGLd9MQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886821; c=relaxed/simple; bh=Gfp034pOaI6svXj3Kdx3ybuoxytRYiBOuyzW0Pw/Fm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p9hwkTY0TtpJu0Gl8F7EMlximWyGoZsoYra0MGDt3ylHc0H3ISzi3T2Mh2kfRF1qjMNeqckK6+zqJgMShrItGvAU201WPPifkrPBs6nGCoHf1MYJfNLuVDosegs8LIb3Ms/TD7hB3FvT7Jy4HpUKWGq2UY4KkGJBmnpRQbg7CsM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B4HKrAGL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B4HKrAGL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC5781F000E9; Wed, 27 May 2026 13:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886819; bh=4/uJ3Mg5vzIULiOXmnnYCihaJPc+XD+bUTbUrafVMjk=; h=From:To:Cc:Subject:Date:Reply-To; b=B4HKrAGLR4yVQOx0rdAgm2ky4RRXkdf0WZb9vY4/Z4xbsLjqJHz0QU2pu5cvrrVQf 7YVbxcJD0twSjY1D67LUktBczwVnNbPPZ6HMksrQbDMXQTmfVDFbDGNxrUvBUO/qOE 5oD9rDr2R4zRxbOVmm7VL9/Y+MU5GU0SP6Ebm5/w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45998: rxrpc: Fix potential UAF after skb_unshare() failure Date: Wed, 27 May 2026 14:58:49 +0200 Message-ID: <2026052741-CVE-2026-45998-6b5d@gregkh> X-Mailer: git-send-email 2.54.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=3201; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1zMrkLeuGBepeOZuxdPAwpTy3lhCBz8BpGC58PxKPgk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlirxpX3C2Klgtv+SGc//nhrTwm3onXZOcfaHrzVTdqz 5kcmbvTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAij2YxzBX7ZHjPWv67xoeE mzLHUutk4oqKpzHMz5y7xftTZXj3ZpvvrX97Qg7oixjnAwA= 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 potential UAF after skb_unshare() failure If skb_unshare() fails to unshare a packet due to allocation failure in rxrpc_input_packet(), the skb pointer in the parent (rxrpc_io_thread()) will be NULL'd out. This will likely cause the call to trace_rxrpc_rx_done() to oops. Fix this by moving the unsharing down to where rxrpc_input_call_event() calls rxrpc_input_call_packet(). There are a number of places prior to that where we ignore DATA packets for a variety of reasons (such as the call already being complete) for which an unshare is then avoided. And with that, rxrpc_input_packet() doesn't need to take a pointer to the pointer to the packet, so change that to just a pointer. The Linux kernel CVE team has assigned CVE-2026-45998 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 and fixed in 6.6.140 with commit e3bf143b1e98fb3d6d9e6825bcd683974d478e8c Issue introduced in 6.2 with commit 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 and fixed in 6.12.86 with commit bf20f46d94f1db38e6ffc0ca204a5fe0de01b495 Issue introduced in 6.2 with commit 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 and fixed in 6.18.27 with commit 996b0487b3cdda4c91811dbb1c9564626bc840bd Issue introduced in 6.2 with commit 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 and fixed in 7.0.4 with commit 8fde6296c4d4da2be7ab761305ab7f232b94eefd Issue introduced in 6.2 with commit 2d1faf7a0ca3c0b327cf064c80e4e775532c9319 and fixed in 7.1-rc1 with commit 1f2740150f904bfa60e4bad74d65add3ccb5e7f8 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-45998 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/ar-internal.h net/rxrpc/call_event.c net/rxrpc/io_thread.c net/rxrpc/skbuff.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/e3bf143b1e98fb3d6d9e6825bcd683974d478e8c https://git.kernel.org/stable/c/bf20f46d94f1db38e6ffc0ca204a5fe0de01b495 https://git.kernel.org/stable/c/996b0487b3cdda4c91811dbb1c9564626bc840bd https://git.kernel.org/stable/c/8fde6296c4d4da2be7ab761305ab7f232b94eefd https://git.kernel.org/stable/c/1f2740150f904bfa60e4bad74d65add3ccb5e7f8