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 076A37DA7F for ; Tue, 5 Nov 2024 17:05:22 +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=1730826322; cv=none; b=LyT0AV2uQfvegDwt9+meY6Sh2mcHJ+o+PAAujLUWkkhGQcOtBdX0er54GFc3hzQv2Mkl99fMUqm7Mh94TxTvPJ2NkATzO5dbgsun12/pDIdTPogueHQ+foSHDkHjW0F9h0277By3uQ9Oc8vm8HBdgXBL/p5SicbEcpV+qE07d+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826322; c=relaxed/simple; bh=gCV+xG+owpr5CmLCaUTaAN1WGCvOoBTlKMso/lhp6/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rBAMPPv1WiE7ubrx0jVZ2P5AQnK4WUGGt/N+iZQZ+NoCFq6Mfj3iPBngHBct0Z4qq6nze2c+kqDxo3MPAcJ9Uinhq3w1WVpd7a+2dt8Tmqlwu4VEGF6coHzd0iqubSP8GwyE2Qbh+PHJMdXAlBhFewpnsIaFkMNLQeaErSbsAHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wm5SdAuc; 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="wm5SdAuc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77E24C4CECF; Tue, 5 Nov 2024 17:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826321; bh=gCV+xG+owpr5CmLCaUTaAN1WGCvOoBTlKMso/lhp6/k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wm5SdAucF0TTboo3Z2+FCZAfqhhxzqX/UI4dXMhMxmC0tHaQn8V58Y9VcjlUI+BGI cbsllM4FTBDkD+A4aNnxhAFC0Tw/1APdb6JGOTYvzjRjcjA7QF67uGk9yT82Zz9Ln2 oGk0X1CK3udGxuCVcAhAvyrBDUEPGQ6RvVM72gwg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50092: net: netconsole: fix wrong warning Date: Tue, 5 Nov 2024 18:04:52 +0100 Message-ID: <2024110551-CVE-2024-50092-b565@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gCV+xG+owpr5CmLCaUTaAN1WGCvOoBTlKMso/lhp6/k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlaAcYMb0/NFUo8bSdRzuJuHjL1UNmxr7x7eSsE3ga2n /vtOL21I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDaEi1MAJiL2kGFB571Dhx7c0nX5ba3y ft4C94KCEn8VhvmOb0/dqHqpd3lb5yr2MzvPK13ZVLkKAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: netconsole: fix wrong warning A warning is triggered when there is insufficient space in the buffer for userdata. However, this is not an issue since userdata will be sent in the next iteration. Current warning message: ------------[ cut here ]------------ WARNING: CPU: 13 PID: 3013042 at drivers/net/netconsole.c:1122 write_ext_msg+0x3b6/0x3d0 ? write_ext_msg+0x3b6/0x3d0 console_flush_all+0x1e9/0x330 The code incorrectly issues a warning when this_chunk is zero, which is a valid scenario. The warning should only be triggered when this_chunk is negative. The Linux kernel CVE team has assigned CVE-2024-50092 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1ec9daf95093 and fixed in 6.11.4 with commit 712a3af37102 Issue introduced in 6.9 with commit 1ec9daf95093 and fixed in 6.12-rc3 with commit d94785bb46b6 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-2024-50092 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: drivers/net/netconsole.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/712a3af3710263444217df54e7f337f99df198d2 https://git.kernel.org/stable/c/d94785bb46b6167382b1de3290eccc91fa98df53