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 B79D716EB5D for ; Wed, 18 Sep 2024 07:19:18 +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=1726643958; cv=none; b=FUxRoSyT4SPK/UywybBr25WmGWXDwmVEHRB+WxLbL94L7w1anJjFIiXsQZjtwwcx/NGt/qsIBprC7XZJClDMi0YH/aSO9yk8PcAQMYcb0/uZaDG0sfJiHJUu33sin3VJOqs4TmDwq6Jjhnl67+bMIu4RufHIa/8Tdj49UP/kNXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643958; c=relaxed/simple; bh=RtaH2CLq08dnLJ8kjqAzpQopf184IUE5R2OGdec7Wo4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ubPKb0NP8anXHC81AyLOI+AttIU2qN0op81XkLVyr5GJ1vdxPZwvg7Q6xDyGV9B4lKvn2tbgYRHu6Anhe1ymYvt/sS9Q/mFQN6VzoXf3VtNiUr1GTj00qZ3J/NKeWMMiXXt9UvugOmynClnGpv7z0S8cY7I2hG9Qx0calUG0zb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KpbR1VHb; 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="KpbR1VHb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A2E9C4CECE; Wed, 18 Sep 2024 07:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643958; bh=RtaH2CLq08dnLJ8kjqAzpQopf184IUE5R2OGdec7Wo4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KpbR1VHbxhaDm/49cpQM6QbmCVT2fSnmFzp+LPFIQNdLKwaN0Eeg3Th89ph/BauEe tbqhlXga/xfaPYMBXTDFKh1olpt/gdnqiX5FIzNRDZS6GL20G4SPgRbkijrHzopX/2 uU0CP2BWeF4RzFglI5r6A4j19CKE49B/xoY3ZSzI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46784: net: mana: Fix error handling in mana_create_txq/rxq's NAPI cleanup Date: Wed, 18 Sep 2024 09:17:19 +0200 Message-ID: <2024091851-CVE-2024-46784-4773@gregkh> X-Mailer: git-send-email 2.46.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=2733; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RtaH2CLq08dnLJ8kjqAzpQopf184IUE5R2OGdec7Wo4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6pInvpMWnDr9pk/onoapIvmr1npOefP81uoDnob+f 1eHbuZr74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTLvNME8tYM77O0cSY7Pz w9jmSkv2M9Qtv8cwm91S+pL0BmZZr3M6apdDLIp1b2ydAQA= 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: mana: Fix error handling in mana_create_txq/rxq's NAPI cleanup Currently napi_disable() gets called during rxq and txq cleanup, even before napi is enabled and hrtimer is initialized. It causes kernel panic. ? page_fault_oops+0x136/0x2b0 ? page_counter_cancel+0x2e/0x80 ? do_user_addr_fault+0x2f2/0x640 ? refill_obj_stock+0xc4/0x110 ? exc_page_fault+0x71/0x160 ? asm_exc_page_fault+0x27/0x30 ? __mmdrop+0x10/0x180 ? __mmdrop+0xec/0x180 ? hrtimer_active+0xd/0x50 hrtimer_try_to_cancel+0x2c/0xf0 hrtimer_cancel+0x15/0x30 napi_disable+0x65/0x90 mana_destroy_rxq+0x4c/0x2f0 mana_create_rxq.isra.0+0x56c/0x6d0 ? mana_uncfg_vport+0x50/0x50 mana_alloc_queues+0x21b/0x320 ? skb_dequeue+0x5f/0x80 The Linux kernel CVE team has assigned CVE-2024-46784 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e1b5683ff62e and fixed in 6.1.110 with commit 9178eb8ebcd8 Issue introduced in 5.15 with commit e1b5683ff62e and fixed in 6.6.51 with commit 9e0bff4900b5 Issue introduced in 5.15 with commit e1b5683ff62e and fixed in 6.10.10 with commit 4982a47154f0 Issue introduced in 5.15 with commit e1b5683ff62e and fixed in 6.11 with commit b6ecc6620376 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-46784 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/ethernet/microsoft/mana/mana_en.c include/net/mana/mana.h 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/9178eb8ebcd887ab75e54ac40d538e54bb9c7788 https://git.kernel.org/stable/c/9e0bff4900b5d412a9bafe4baeaa6facd34f671c https://git.kernel.org/stable/c/4982a47154f0b50de81ee0a0b169a3fc74120a65 https://git.kernel.org/stable/c/b6ecc662037694488bfff7c9fd21c405df8411f2