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 85BA14F4D12 for ; Thu, 17 Sep 2026 16:23:46 +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=1789662227; cv=none; b=iD5huz6+rrygt6fMG9h4IcGTDqaNQMMSDWs3QhMJjZE4psu9597DbzSeAQ81/0flRPrp9TQl2I557SrgHzKYIa9TERlGJJDheUgi1rAEHbZLDxO7Tg6IQcSIWTU7IDH1bZJD9a4imRHciZGAzoavlJa0jX356ej9Aq2VKleL7MU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662227; c=relaxed/simple; bh=BLVshKXrTOa1Lp+PfOYnEH1VCOfAzYIx2QdRJ5VDKMY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O/Xar3MkigW/h/OebIbso4HIbKH+KG0GrzabItmQZw11r+P1v7mvsHI82F0X/n6k1K7JIWLtfp7fvPAhd9YbyosEppv8iYC5lKouZVZ4tnzYHJn0AzgjQPUlhOlMC8A4qVUGQtNctQceP7vDDwL/FSd+/mb5LE2l1LHgfHVnAEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qHuzCjGw; 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="qHuzCjGw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAB601F00898; Thu, 17 Sep 2026 16:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662226; bh=PmZqXJJHkNOyCDVqRLBPU2j1LZDlypHqlv5FxYFOEBs=; h=From:To:Cc:Subject:Date:Reply-To; b=qHuzCjGwSkNn7n8Eu9dn9S67bidZe1RJQ4oGOHu4qyxzsf5qRlwxpKrD1tj37aJrb 4jdRIHU38I5kBajiyTLCNkLrCnOIgva2uvJJw1HuP9vOSrdgbgwvN1Zay9Y3BBh5Ml uFmUkfekeSCjCys5PnUdg5FtlNeQ9I/kgrPohh1g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90247: bpf: Fix mmap_lock leak in irq_work path Date: Thu, 17 Sep 2026 17:11:17 +0100 Message-ID: <2026091743-CVE-2026-90247-895f@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=2914; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oIge84fzIF6jVxRTXgbXqy23r16DyJpO1Ei65LJuD7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBLqVXkeEfJU8oJr/590E1j5mz/OdzC8NFj1aUGacW rI2d05GRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk1hmGBdOWMk2QSV4Vpf0x xWLy/qn+IX+2GzLMM/0Ysu8G86mtF4wP/T11yEX0tfftlQA= 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 mmap_lock leak in irq_work path stack_map_get_build_id_offset() introduced a per-CPU irq_work to defer mmap_read_unlock() from NMI context, and bpf_find_vma() later reused the same mmap_unlock_work. Both callers only check whether the work is busy before taking mmap_lock, so a nested caller can reuse the slot before the first caller queues it. Two read locks may then be acquired while only one deferred unlock runs, leaking a read lock and blocking exit_mmap(). Reserve the per-CPU slot before mmap_read_trylock(). Use the same wrapper in stackmap and bpf_find_vma() so both callers release the reservation on trylock failure. Keep rejecting the slot while the irq_work remains busy. Release it after the irq_work callback unlocks the mm. The Linux kernel CVE team has assigned CVE-2026-90247 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit eac9153f2b584c702cea02c1f1a57d85aa9aea42 and fixed in 6.18.52 with commit a052ad5edccf5319f50ed955de4368f8318a9f20 Issue introduced in 5.5 with commit eac9153f2b584c702cea02c1f1a57d85aa9aea42 and fixed in 7.2.6 with commit 051f2da26ce377f683b938a3382e0f16d02f3139 Issue introduced in 5.5 with commit eac9153f2b584c702cea02c1f1a57d85aa9aea42 and fixed in 7.3-rc1 with commit fa9dcacdcdf487f0ffef64bf67622f1caed509f1 Issue introduced in 4.19.92 with commit a7f4da875c16f3b8bef0d9ec67528111045bfcd8 Issue introduced in 5.4.7 with commit f1838da73cccb238b8be4ef464fce0168dc7ba84 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-90247 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/mmap_unlock_work.h kernel/bpf/stackmap.c kernel/bpf/task_iter.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/a052ad5edccf5319f50ed955de4368f8318a9f20 https://git.kernel.org/stable/c/051f2da26ce377f683b938a3382e0f16d02f3139 https://git.kernel.org/stable/c/fa9dcacdcdf487f0ffef64bf67622f1caed509f1