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 7753137D111 for ; Tue, 16 Dec 2025 13:44:26 +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=1765892666; cv=none; b=Jw+wcQaeNP7CKIAwP4KjZPi+ZbpybfNWeA7JZqWsw7g+kb7PMI2UAxZN5mgvfC6Fn5lg/YxEPHp9NL08ePHmSWYWcN9qBUJESyzLu6qw7kw81dKsB0SiVdzd4NqGrp8ZsRMA8fIALK5MpOxeiCec8hMWLo8bmqB2ocXwmmj4Eq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892666; c=relaxed/simple; bh=vlb5L7u4UZjiBYzmPMacL0tggkGMQB0GLuj+S6sOGSw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uTpFMeAsc26IJNEVjSevqkwPFU5sArKrallLQV5FH6s3Qo8+odKhj9XhIEzKnmXNrqY0NvjtZ2pjC1BwXj6SIdWkakwFupOun2VMlmRdlc0qp+Rh+cTox5mVtpZiEWtsc26xRUzxWWXdQ6myJC/64C7Pq1Vi6Vy98ZCvBZCFc6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dpZmmp+U; 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="dpZmmp+U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93C68C4CEF1; Tue, 16 Dec 2025 13:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892666; bh=vlb5L7u4UZjiBYzmPMacL0tggkGMQB0GLuj+S6sOGSw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dpZmmp+UOWtzKRWY51kpZYAJaVn6InySN5KLC/oBY9VcTjNrsIhg2NhyuyMc+875f bqtFDos/n3+8kYIxlqnJ6XWFrCJubgDMZNbvfvl52XkA43AFejpk0/5bxbg2rgIzPr QWi0L3ud9n8DZo4RIIZImBBf9bX1Ut61cCde3dkg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68186: ring-buffer: Do not warn in ring_buffer_map_get_reader() when reader catches up Date: Tue, 16 Dec 2025 14:43:47 +0100 Message-ID: <2025121633-CVE-2025-68186-8a42@gregkh> X-Mailer: git-send-email 2.52.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=2649; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fgvmIc7oungNr++X7gUjFSMzzS4qaDLvALH5Wag2GdY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSaylp348PO+1SSTMbVVtv5LWFbP1aXKl547s+ne4o i/WJI+5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZS3sWw4Jp2d+q0XR/Dlc/s +rxg7s3ss+dt5RnmyjIGiy6v8GZ4WZ7ce+N50tPYCYrrAA== 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: ring-buffer: Do not warn in ring_buffer_map_get_reader() when reader catches up The function ring_buffer_map_get_reader() is a bit more strict than the other get reader functions, and except for certain situations the rb_get_reader_page() should not return NULL. If it does, it triggers a warning. This warning was triggering but after looking at why, it was because another acceptable situation was happening and it wasn't checked for. If the reader catches up to the writer and there's still data to be read on the reader page, then the rb_get_reader_page() will return NULL as there's no new page to get. In this situation, the reader page should not be updated and no warning should trigger. The Linux kernel CVE team has assigned CVE-2025-68186 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 6.12.58 with commit b42dbef4f208326271434d5ab71c4129a3ddd1a9 Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 6.17.8 with commit 6f5c4f8109fa4d0955b3712597a26b310bdc736f Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 6.18 with commit aa997d2d2a0b2e76f4df0f1f12829f02acb4fb6b 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-2025-68186 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/trace/ring_buffer.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/b42dbef4f208326271434d5ab71c4129a3ddd1a9 https://git.kernel.org/stable/c/6f5c4f8109fa4d0955b3712597a26b310bdc736f https://git.kernel.org/stable/c/aa997d2d2a0b2e76f4df0f1f12829f02acb4fb6b