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 D08241487EA for ; Wed, 3 Apr 2024 14:56:56 +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=1712156216; cv=none; b=IXXvTE7n76LXLNvIsFSqeSTgX6/JFHGLNVxcCbsrOxY4rx2mw2pmVZPmeGlvjFUWOGoGyNIn+f49cujwDmcIODmKNLX1w41uxmsmbZSMtmICa94qknzoop+5M6PgZ0zMDej94Vd+EL1kaDDQdMeECJDVmJ4+K7vV67Anahn8/XI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156216; c=relaxed/simple; bh=NO2sob/0SyTHprM/Ce9Pe3lmmWCyhLuUz6HJMKH2+dw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a6Bes/ILWMnmulg12qBf4LOqqDIdA7CPrwmxzE+XW9hbPEfRO7H9b/STEBJdTImCBDrZl+Q03fd/fBwOHaEolRLBiErMMataRHJ7B81jMNJ6sieRr9p16nlGqdwhU03cTVr0d/TDqdvmR9H15EFznAF5RV+ZZdGptFAwWC+t9zQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FC6a54yf; 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="FC6a54yf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 553FEC433C7; Wed, 3 Apr 2024 14:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156216; bh=NO2sob/0SyTHprM/Ce9Pe3lmmWCyhLuUz6HJMKH2+dw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FC6a54yfTu9iryY0RWrPeVVFrGJRslhxjPi3u1eeH3c5Fp4x0AwxwHjyu4z9ryOZn zDPJ+9klDTTT34ZSMjxgJL/zmHWJEB/OM68qqrYfP+/Re8dr4G93dUBax0CZ625x+s tFB0NV0zD5mBK4g3rdMKDpgiP3WvqdwNEkEdCP70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26707: net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame() Date: Wed, 3 Apr 2024 16:55:58 +0200 Message-ID: <2024040341-CVE-2024-26707-1153@gregkh> X-Mailer: git-send-email 2.44.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=3673; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NO2sob/0SyTHprM/Ce9Pe3lmmWCyhLuUz6HJMKH2+dw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uW9nZb/xiVCZ8vKXK9+iM4o1Ey7YFm9PyDz0dvLUh 5vYSi+s64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ3AxgmO/4NkK0m4ujKCpw nuirjtv6U981v2WYZ8lUqxBQse3ezaNfTAVt9qzqLgpuAgA= 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: hsr: remove WARN_ONCE() in send_hsr_supervision_frame() Syzkaller reported [1] hitting a warning after failing to allocate resources for skb in hsr_init_skb(). Since a WARN_ONCE() call will not help much in this case, it might be prudent to switch to netdev_warn_once(). At the very least it will suppress syzkaller reports such as [1]. Just in case, use netdev_warn_once() in send_prp_supervision_frame() for similar reasons. [1] HSR: Could not send supervision frame WARNING: CPU: 1 PID: 85 at net/hsr/hsr_device.c:294 send_hsr_supervision_frame+0x60a/0x810 net/hsr/hsr_device.c:294 RIP: 0010:send_hsr_supervision_frame+0x60a/0x810 net/hsr/hsr_device.c:294 ... Call Trace: hsr_announce+0x114/0x370 net/hsr/hsr_device.c:382 call_timer_fn+0x193/0x590 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb20 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x21a/0x8de kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 ... This issue is also found in older kernels (at least up to 5.10). The Linux kernel CVE team has assigned CVE-2024-26707 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 5.10.210 with commit 0d8011a878fd Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 5.15.149 with commit de769423b2f0 Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 6.1.79 with commit 56440799fc46 Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 6.6.18 with commit 923dea2a7ea9 Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 6.7.6 with commit 547545e50c91 Issue introduced in 5.9 with commit 121c33b07b31 and fixed in 6.8 with commit 37e8c97e5390 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-26707 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: net/hsr/hsr_device.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/0d8011a878fdf96123bc0d6a12e2fe7ced5fddfb https://git.kernel.org/stable/c/de769423b2f053182a41317c4db5a927e90622a0 https://git.kernel.org/stable/c/56440799fc4621c279df16176f83a995d056023a https://git.kernel.org/stable/c/923dea2a7ea9e1ef5ac4031fba461c1cc92e32b8 https://git.kernel.org/stable/c/547545e50c913861219947ce490c68a1776b9b51 https://git.kernel.org/stable/c/37e8c97e539015637cb920d3e6f1e404f707a06e