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 153224FD793 for ; Thu, 17 Sep 2026 16:29:18 +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=1789662559; cv=none; b=j/BcVtAOhptz6MeyyJ7ZnCy7ha1FmGDWn7CCsoy6aQ2x5Ue0Jw7kak3app0JT4LsXIKl8NciR3nRx4wm3g8StfxqEUAm+j4zKpkcjqsD+NZ+h0xASZR88CxvzBh/QLZV8bOoHcREHWKOs9hRCaJobN7DiD3+BSWsixp1YDO7VrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662559; c=relaxed/simple; bh=b/GfGbyQfOeZYIsUw6Ln79dtSduOVvDxsfXqqESPt04=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RKcr+6TC9tomHdtmBOtFMku0ZpFT/bMLjgw6FqHrNg29lYoFU+oSgxFR+/oV9T7BLKMDJuRi0Z/ZBEmHuRakR90gNg7dWPCjx5BlujKB/JjpSKdl66r39jBuNTfMh0krd8QtlDUDaSfuhKUfHCw4CxsYQrAcMm58jPicEXaweWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OziDl3ry; 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="OziDl3ry" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E1211F000FF; Thu, 17 Sep 2026 16:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662558; bh=DSoi0rH1aDOsBdIwnBjE5IfJz8J53qzte2T/rBAcqHQ=; h=From:To:Cc:Subject:Date:Reply-To; b=OziDl3ryXcD+oqXj6ERy6srsIYrxmFNTEsLOZNUihU9CEmUGn05rJsjgW7zOWnbfo 8hH/eHSMHMXDij4V7u+Mf/uahWDbMcx6h/AQG7PtUXIKgx4TXV3+u8MSNBua2oMeNp CBmiTOA0c7/ATpZS0svmVH0z3sl7tFsRgUzcrweI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90393: bpf: Fix potential UAF in bpf_netns_link_update_prog Date: Thu, 17 Sep 2026 17:13:43 +0100 Message-ID: <2026091712-CVE-2026-90393-b010@gregkh> X-Mailer: git-send-email 2.55.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=4229; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gbLdkIeIz0ZNQXB/xF1hqd0oC1IJr7P594WuDJaUXdw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBFYI8Qn8Kt4c+9gvsuHk4gPyrz+u7mvvCe6tdvn6U ppF+92KjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI93aGeWY7dd+wvSm5eOHm 3eDzL6bWs1p90GeYX9jK8GzT+SkrVN78jIqecpgjc/2t6wA= 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: bpf: Fix potential UAF in bpf_netns_link_update_prog In bpf_netns_link_update_prog, the checks for old_prog and prog type are currently performed locklessly before acquiring netns_bpf_mutex. This creates a race condition that can lead to a UAF issue. If two threads concurrently execute BPF_LINK_UPDATE on the same netns link, the following execution path can trigger a UAF: CPU0 CPU1 bpf_netns_link_update_prog if (old_prog && old_prog != link->prog) return -EPERM; bpf_netns_link_update_prog if (old_prog && old_prog != link->prog) ... old_prog = xchg(&link->prog, new_prog); bpf_prog_put(old_prog); if (new_prog->type != link->prog->type) <-- trigger UAF Fix this by moving the old_prog and prog->type checks inside the netns_bpf_mutex critical section. Meanwhile, use guard() to simplify lock management and avoid all the goto jumping. The Linux kernel CVE team has assigned CVE-2026-90393 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 5.10.270 with commit d462b5481d77ce7df8a5ff89a699386f00c9214d Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 5.15.221 with commit bdddf3e1493ee973619c154a57071ce67f78598b Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 6.1.188 with commit 79a66fd997d4eecf17302d613194879eb32e0986 Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 6.6.157 with commit f4ce6803df4095777191d800bebc50219b615ca0 Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 6.12.110 with commit 277168cb9d153ce8e9c3f9275670e32ae61b41d6 Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 6.18.52 with commit bda86e9f31b9a296b6e64a51c91dc776fc9f613e Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 7.2.6 with commit 923f559e95b89b33c7e1793b3d8f7f4ec9b2e4b7 Issue introduced in 5.8 with commit 7f045a49fee04b5662cbdeaf0838f9322ae8c63a and fixed in 7.3-rc1 with commit 5c5997836381010fc5907b36bc17d3b19407e933 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-90393 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: kernel/bpf/net_namespace.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/d462b5481d77ce7df8a5ff89a699386f00c9214d https://git.kernel.org/stable/c/bdddf3e1493ee973619c154a57071ce67f78598b https://git.kernel.org/stable/c/79a66fd997d4eecf17302d613194879eb32e0986 https://git.kernel.org/stable/c/f4ce6803df4095777191d800bebc50219b615ca0 https://git.kernel.org/stable/c/277168cb9d153ce8e9c3f9275670e32ae61b41d6 https://git.kernel.org/stable/c/bda86e9f31b9a296b6e64a51c91dc776fc9f613e https://git.kernel.org/stable/c/923f559e95b89b33c7e1793b3d8f7f4ec9b2e4b7 https://git.kernel.org/stable/c/5c5997836381010fc5907b36bc17d3b19407e933