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 881C9379EF7 for ; Thu, 17 Sep 2026 16:25:32 +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=1789662333; cv=none; b=naqpxyCGgNuNQDQr947Iw1Y1q+MxNBxQgUNoUuZQk9CkHCPYEOdiwv+0wc6cN9S1KomfJHR76bV9PUKzQJAM3waNqD8WZpOj8pIsURF55EiZ70tdoc45VDIAkF1Ug5aLehqyGhMb6xTuEokeM3ktPxQAs/nO8y8yWGgdZeRL/ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662333; c=relaxed/simple; bh=A+U7mgqT8cGRKi18jwJdEdQc6ZLNrkQbaNLsaaAXFPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q59CGiBS7Sicw++KgwZvaRxW0mj/qxrw0at8br5kEsXpt7RakqSJSl2ezYywRBrEMCbkyQxwyRdjnLD0F0fxpNntFJYYXgR4LtOgpPH9H5noPdeY1y7sE1BxDJBLUln2soEbUkGZbC8eKvKCHp14nnxkkxX2IIX+DQq+6gUD49U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wf/Vgl+4; 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="Wf/Vgl+4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D55181F00893; Thu, 17 Sep 2026 16:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662332; bh=bbpNxtwVoRry+8SiYZeaqj4fxyZ50WTTU6GjNo6DoiM=; h=From:To:Cc:Subject:Date:Reply-To; b=Wf/Vgl+4ZGkZpnMAl70JuX/+2Q0xsA37nksT4VuOJfi5iUXQBI6iNEZc/1eMfDTr/ 87WzSoXK2Olj32ODYSjl0tCI4cKJtTmxjiGVp31ltocTBchQ1KIAnRNPlBAFq0oIpT GD14YFKmGiUHnRAEIRUGYVKt4l/r8+9LBfEsL4TQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90317: bpf: Invalidate RCU pointers after final spin unlock Date: Thu, 17 Sep 2026 17:12:27 +0100 Message-ID: <2026091757-CVE-2026-90317-c9bf@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=2384; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hXYlUcIDMF6hwX/QT4aKAF0MjKl07lbDFjWSTMtJ4hk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBGY+2R9mMEFvQdIC29exPy6G8q75ol4+/3111843J rpGCsfWd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEWp8zLLiUZvxgm1Uju8rD csNHry5XdH7Q6mKYzXYtJePkrf9zrzLLXHgtebdGr0VbEwA= 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: Invalidate RCU pointers after final spin unlock In a sleepable BPF program, a spin lock can provide the only RCU protection for a kptr. The final bpf_spin_unlock() ends that protection, but the verifier leaves the pointer valid. Another CPU can then free the object before the pointer is used. A capability-limited runtime PoC triggered a task_struct use-after-free in __bpf_get_task_stack(). Record whether the program is in an RCU-protected context before releasing the lock. Invalidate RCU-protected pointers only when the unlock leaves the final such context. This preserves valid pointers in non-sleepable programs and inside an explicit RCU read-side section. The Linux kernel CVE team has assigned CVE-2026-90317 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07 and fixed in 7.2.6 with commit 7ae71629357d0a6d0bdadb929c7b296d5b7e61c2 Issue introduced in 6.6 with commit 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07 and fixed in 7.3-rc1 with commit 180c7000712db77063b3a26f4c97e7dd9038f449 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-90317 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/verifier.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/7ae71629357d0a6d0bdadb929c7b296d5b7e61c2 https://git.kernel.org/stable/c/180c7000712db77063b3a26f4c97e7dd9038f449