Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8F4313B636B for ; Wed, 25 Mar 2026 10:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434729; cv=none; b=tzvTKL801gsYFKe2V4rpyjaKIIUZhcPya82hkxp2MmMIV4vE2C+NbYVOGIEkzoIZ4MjFy4gIKy5IeIYoBLlHLJsyGl727MFbpUSMuqmLsYcDL09Pev/D6HP4Z3PKbRYASeNSPDQi1ZibwAkiSbyaSE1RXiZpMBknB6QJceymsKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434729; c=relaxed/simple; bh=28ddA9m2O+kkyfLRO8VpgJlZ6GFDJ0Ek5v4+5lJptPQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ys2OH2R1KVO491xZpvmLfT0J9hMNNyJdWvKAUyDGirpZNTzpQPyg9sreug0G1Z5WbpDpcNNBIusXPnmU96O9NCajrieIOsbIolnHsFJ0ZoR4LB4w/NRgvYwuWZdQEzTzr+oxv45OoR26gnFU8fdlc3a8buIO8j2tka/b04LTR/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ve8ctDBo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ve8ctDBo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AF3AC4CEF7; Wed, 25 Mar 2026 10:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434729; bh=28ddA9m2O+kkyfLRO8VpgJlZ6GFDJ0Ek5v4+5lJptPQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ve8ctDBoG6Mve6XjOOBKgG9PCjoIgZVJqLpTn/7sDBSVwFC04MXACzwa9ZpoinWqP SAu8NmCHVtQSHuph1kZ0375qT0/n2uK1qKVXjcFF9g+5Yywcnq/SeHrKEuPBrQ/ISq R6XyU9umNbRFC1y8KIqBKrQ9T3Xp16G0YxwI5LeQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23380: tracing: Fix WARN_ON in tracing_buffers_mmap_close Date: Wed, 25 Mar 2026 11:28:04 +0100 Message-ID: <2026032542-CVE-2026-23380-9e3c@gregkh> X-Mailer: git-send-email 2.53.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=2993; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JVHRo4MAHQNILZjgzFoFnfz2g7SoZvwHt5frcdMK9Ag=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdyQJH3/B2e3U2yD5Lf35pxWmP1KmpG88cTB0xqybX 5/Ulj/40BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATebuXYa70ktux/H5H1T2v PJn0MXV6WbRXVBrDXLFtCqnMpfdefLr18JPwtKDCvKz7DAA= 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: tracing: Fix WARN_ON in tracing_buffers_mmap_close When a process forks, the child process copies the parent's VMAs but the user_mapped reference count is not incremented. As a result, when both the parent and child processes exit, tracing_buffers_mmap_close() is called twice. On the second call, user_mapped is already 0, causing the function to return -ENODEV and triggering a WARN_ON. Normally, this isn't an issue as the memory is mapped with VM_DONTCOPY set. But this is only a hint, and the application can call madvise(MADVISE_DOFORK) which resets the VM_DONTCOPY flag. When the application does that, it can trigger this issue on fork. Fix it by incrementing the user_mapped reference count without re-mapping the pages in the VMA's open callback. The Linux kernel CVE team has assigned CVE-2026-23380 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 and fixed in 6.12.77 with commit 91f3e8d84c89918769e71393f839c9fefadc2580 Issue introduced in 6.10 with commit cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 and fixed in 6.18.17 with commit cdd96641b64297a2db42676f051362b76280a58b Issue introduced in 6.10 with commit cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 and fixed in 6.19.7 with commit b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0 Issue introduced in 6.10 with commit cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 and fixed in 7.0-rc3 with commit e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e 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-23380 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/linux/ring_buffer.h kernel/trace/ring_buffer.c kernel/trace/trace.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/91f3e8d84c89918769e71393f839c9fefadc2580 https://git.kernel.org/stable/c/cdd96641b64297a2db42676f051362b76280a58b https://git.kernel.org/stable/c/b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0 https://git.kernel.org/stable/c/e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e