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 044C917B50A for ; Wed, 1 Oct 2025 11:53:06 +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=1759319587; cv=none; b=qMshDQMqxQq+snvAl09PApElorLmYIuNIQDKE0PjloI1eEOGpsZCrReIyNhYJB8yJIttEsNYFzPgzzGLigOvZoDL8UR0CqWJDL2nJ+kEYXV87AIGNaGJXHiFG5w8is10IQZwF/S1M6n07RWenOp69LPA1qi0Rs4dzM//P24Ml4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319587; c=relaxed/simple; bh=WXGL3Rpa8DPY/BmTz8cdKOoYnalEaHVhMrJpaNDjfxw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qnice4aophW6iCXvBlv79MB4eO93E/g39e7XJi1a/uexJjcDrg1UVEonlYvBN/afv/Uyp2zmtNpHw8i+Fuq1I+GCAFLW4G1q/wyqaYDjQMU6A3BMCbsTuINSUjS1ierYsFsVMG3SlaoIcdhO8qJaQ75TM9DYHxC7RawwzrBI5FQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KHbbILG1; 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="KHbbILG1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A9F1C4CEF4; Wed, 1 Oct 2025 11:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319586; bh=WXGL3Rpa8DPY/BmTz8cdKOoYnalEaHVhMrJpaNDjfxw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KHbbILG1LXnhMVed2edyV0oQ9kMn0m3dPqmAeVZecKpdamOLKxyuoGXBz135ox9hQ ehKS7aHzZNhzXN5ccd7FWvhDeRcot/2xn/4bW9okxdgHzmtA095sOhPqcHXe9zAoVt CaqjcC2dqCwwvhVi+B+jkey2JZ2+YMjyfpE6gpPI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53463: ibmvnic: Do not reset dql stats on NON_FATAL err Date: Wed, 1 Oct 2025 13:42:33 +0200 Message-ID: <2025100107-CVE-2023-53463-49fd@gregkh> X-Mailer: git-send-email 2.51.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=4245; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qtxkr00lPP9gYQP0x/FlHNXS+W8/HZuWJgGLYxLsJ9Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hfsZkzuCmrcduW+13lTv0Df1mtCcl1ITfCZ5FlZYV J+JvOfQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORPMkwv9jxJbPR4VXJehss OI48nvXvV/obB4YF27yLo7siVrhMafjdPtW5hT1B8UgVAA== 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: ibmvnic: Do not reset dql stats on NON_FATAL err All ibmvnic resets, make a call to netdev_tx_reset_queue() when re-opening the device. netdev_tx_reset_queue() resets the num_queued and num_completed byte counters. These stats are used in Byte Queue Limit (BQL) algorithms. The difference between these two stats tracks the number of bytes currently sitting on the physical NIC. ibmvnic increases the number of queued bytes though calls to netdev_tx_sent_queue() in the drivers xmit function. When, VIOS reports that it is done transmitting bytes, the ibmvnic device increases the number of completed bytes through calls to netdev_tx_completed_queue(). It is important to note that the driver batches its transmit calls and num_queued is increased every time that an skb is added to the next batch, not necessarily when the batch is sent to VIOS for transmission. Unlike other reset types, a NON FATAL reset will not flush the sub crq tx buffers. Therefore, it is possible for the batched skb array to be partially full. So if there is call to netdev_tx_reset_queue() when re-opening the device, the value of num_queued (0) would not account for the skb's that are currently batched. Eventually, when the batch is sent to VIOS, the call to netdev_tx_completed_queue() would increase num_completed to a value greater than the num_queued. This causes a BUG_ON crash: ibmvnic 30000002: Firmware reports error, cause: adapter problem. Starting recovery... ibmvnic 30000002: tx error 600 ibmvnic 30000002: tx error 600 ibmvnic 30000002: tx error 600 ibmvnic 30000002: tx error 600 ------------[ cut here ]------------ kernel BUG at lib/dynamic_queue_limits.c:27! Oops: Exception in kernel mode, sig: 5 [....] NIP dql_completed+0x28/0x1c0 LR ibmvnic_complete_tx.isra.0+0x23c/0x420 [ibmvnic] Call Trace: ibmvnic_complete_tx.isra.0+0x3f8/0x420 [ibmvnic] (unreliable) ibmvnic_interrupt_tx+0x40/0x70 [ibmvnic] __handle_irq_event_percpu+0x98/0x270 ---[ end trace ]--- Therefore, do not reset the dql stats when performing a NON_FATAL reset. The Linux kernel CVE team has assigned CVE-2023-53463 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 0d973388185d49add56b81ca82fa5e4348019df8 and fixed in 5.15.121 with commit b8aedf29db1280c83191fc9579ae605791faf97f Issue introduced in 5.11 with commit 0d973388185d49add56b81ca82fa5e4348019df8 and fixed in 6.1.39 with commit f67ef8f9f6776e2b2073cad7c5cf29de850f83d7 Issue introduced in 5.11 with commit 0d973388185d49add56b81ca82fa5e4348019df8 and fixed in 6.4.4 with commit 91a0632e73070928aafeb36b3cc676843c716931 Issue introduced in 5.11 with commit 0d973388185d49add56b81ca82fa5e4348019df8 and fixed in 6.5 with commit 48538ccb825b05544ec308a509e2cc9c013402db 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-2023-53463 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/ibm/ibmvnic.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/b8aedf29db1280c83191fc9579ae605791faf97f https://git.kernel.org/stable/c/f67ef8f9f6776e2b2073cad7c5cf29de850f83d7 https://git.kernel.org/stable/c/91a0632e73070928aafeb36b3cc676843c716931 https://git.kernel.org/stable/c/48538ccb825b05544ec308a509e2cc9c013402db