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 24A4747FB1B for ; Sun, 18 Oct 2026 16:24:30 +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=1792340671; cv=none; b=aRwW94Uykih6sJYhV6T8mOEDgLY32MtZ4MBrymXiajRwAgkDfHo9laG9qK8UrmOzXQ6cHOhmggQWDN/wWqFFlGBug8rNesfmV33gixVlkY7R3jXkMQ1Ge7GYPZLU5Nww6KqBX4cFMj0wS7/2w3cZeJVmIX6salxsogCAsmLcRzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340671; c=relaxed/simple; bh=PNOfWdeTp1S+pGrLg1wvGZAZJKpfCZO96o/0Y7j1sVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sdfP8jXhMr0PZaabE3r86QnxsHA9tcd2COvMzYPXTPFIsoR5ig3IkD8unRDKz40MHefPBMP75/fqITJATs0eFdugeiR7wtodVbyPIanO6Nm/+2QjZTY5hSFIDhe+yRWxex/8QW6PbCDOjVoEfUh7PsYBQ8lf2rHeEvydmcU8yAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fs6R73Rz; 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="Fs6R73Rz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A9931F000C4; Sun, 18 Oct 2026 16:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340670; bh=caea7mJqqjjqWwiAWNjx0RP5p7+a7Rq/imLeusTZaJ8=; h=From:To:Cc:Subject:Date:Reply-To; b=Fs6R73RzyIp93ng8DLrbZxs6dwnE3r2KInTqb6XbDqHvr23TXnT3agIDO/v9iZTAx PXfhcngmPUkBvHVTCwuegRdTeiVlV7jD1dfyS9KkJ9DkH+IzwiISGhpzhijCbWwlWO oa60JOgX/omSgJUWRIRVdx2BzIODigq12y8cBJro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98849: pfcp: fix socket lifetime on netdevice registration failure Date: Sun, 18 Oct 2026 17:47:04 +0200 Message-ID: <2026101834-CVE-2026-98849-c15d@gregkh> X-Mailer: git-send-email 2.56.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=3271; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pKdpxHh565cn4mdUVjgzUMu1GIL7TS6Ld7tiWD7Qy/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXiYZrzDv5r4xkz33uvisvTZz9V98YmY6e2rLRVXVT Yq7Xgh2d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXk9nmO+8WWf/nx5DS4Vf mjJq/Dp2Uze8bGeYZ/CKR1al4tNhwcsLhRMjL+5eWmmxCwA= 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: pfcp: fix socket lifetime on netdevice registration failure pfcp_newlink() creates the UDP socket before register_netdevice(). If registration fails after pfcp_dev_init() succeeds, the core calls pfcp_dev_uninit(), which releases the socket and clears pfcp->sk. The newlink error path then releases it again, causing a NULL pointer dereference. This was observed with failslab fault injection: FAULT_INJECTION: forcing a failure. kobject: kobject_add_internal failed for pfcp0 (error: -12 parent: net) BUG: KASAN: null-ptr-deref in udp_tunnel_sock_release+0x1c/0x50 Read of size 8 at addr 0000000000000120 by task ip/1037 Call trace: show_stack+0x18/0x24 (C) dump_stack_lvl+0x78/0x90 print_report+0x468/0x5cc kasan_report+0xa4/0xf0 __asan_load8+0x7c/0xd0 udp_tunnel_sock_release+0x1c/0x50 pfcp_newlink+0x128/0x184 rtnl_newlink+0x848/0xe44 rtnetlink_rcv_msg+0x468/0x514 netlink_rcv_skb+0xc0/0x1f0 rtnetlink_rcv+0x18/0x24 netlink_unicast+0x4b8/0x558 netlink_sendmsg+0x2b8/0x584 ... Return from pfcp_del_sock() if pfcp->sk is NULL. The Linux kernel CVE team has assigned CVE-2026-98849 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 76c8764ef36a5d37ea2e551bda28ac7f028383ba and fixed in 6.12.113 with commit dcb8f6a79c3360a440c399d85df465a6e59351f1 Issue introduced in 6.10 with commit 76c8764ef36a5d37ea2e551bda28ac7f028383ba and fixed in 6.18.56 with commit 4b8ce1686dea1a10805a0807bf492409b0300ee1 Issue introduced in 6.10 with commit 76c8764ef36a5d37ea2e551bda28ac7f028383ba and fixed in 7.2.10 with commit 2cee3603ec1d9b5ec7f2121ea3efe9488e906f46 Issue introduced in 6.10 with commit 76c8764ef36a5d37ea2e551bda28ac7f028383ba and fixed in 7.3-rc6 with commit 0f17d2e3dd9cda3ee6d94033d5e5489af168920d 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-98849 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: drivers/net/pfcp.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/dcb8f6a79c3360a440c399d85df465a6e59351f1 https://git.kernel.org/stable/c/4b8ce1686dea1a10805a0807bf492409b0300ee1 https://git.kernel.org/stable/c/2cee3603ec1d9b5ec7f2121ea3efe9488e906f46 https://git.kernel.org/stable/c/0f17d2e3dd9cda3ee6d94033d5e5489af168920d