HIGH Introduced in 6.18
ice TxDoorbell Race
CVE-2026-98965
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
KernelScan AI4.7MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: ice: Restore Ordered MMIO Writes for Tx Doorbells The DQL accounting state which tracks the number of bytes queued for the NIC to transmit, namely dql->num_queued, is updated by the ICE driver when it invokes __netdev_tx_sent_queue(). Subsequently the driver updates the hardware queue tail allowing the NIC to begin processing the work queue. The queue accounting update should be ordered before the NIC begins transmitting descriptors. The transmit path currently updates the hardware doorbell using writel_relaxed(), which (on arm64) does not provide the same ordering guarantees between writes to normal memory and writes to MMIO registers that writel() does. This introduces a potential race where the NIC begins transmitting descriptors before the dql->num_queued update is globally visible. If the NIC finishes before the update is observed by dql_completed(), it detects an invalid state where more bytes have been completed than have been queued. When this happens the following BUG_ON is triggered. BUG_ON(count > num_queued - dql->num_completed); This has been observed and manifests as the following crash (note that the trace has been trimmed) in an environment with sustained network load that uses an Intel Corporation Ethernet Controller E810-XXV for SFP (rev 02) on an arm64 machine. Replacing writel_relaxed() with writel() in a test kernel eliminated the crash in the user's workload, which previously reproduced the issue reliably. kernel BUG at lib/dynamic_queue_limits.c:99 Internal error: Oops - BUG: 00000000f2000800 [#1] SMP pc : dql_completed+0x268/0x2a0 lr : ice_clean_tx_irq+0x1d4/0x620 [ice] Call trace: dql_completed+0x268/0x2a0 (P) ice_napi_poll+0x94/0x520 [ice] __napi_poll+0x48/0x3f0 net_rx_action+0x194/0x420 This restores the behaviour prior to commit ccde82e90946 ("ice: add E830 Earliest TxTime First Offload support"), which changed the notification mechanism from writel() to writel_relaxed().
02KernelScan AI Analysis
Risk summary
A missing memory barrier in the Intel ICE Ethernet driver allows a race condition on arm64 systems where the NIC can begin transmitting packets before the kernel's queue accounting update becomes visible. This triggers a kernel BUG_ON and system crash under sustained network load. Any local user or container workload capable of generating transmit traffic on an affected E810/E830 NIC can exploit this.
Vulnerability analysis
The ICE driver updates a software queue counter (dql->num_queued) before ringing the hardware doorbell to start transmission. On arm64, the commit that added E830 Earliest TxTime First support changed the doorbell write from writel() to writel_relaxed(), which does not order the prior memory write against the MMIO write. This lets the NIC see the doorbell and finish transmission before the counter update is globally visible. When the completion path runs, it observes more bytes completed than queued and hits a BUG_ON, crashing the kernel. The fix restores writel() for both the timestamp ring and regular TX ring doorbells, re-establishing the required memory ordering. The bug is reachable by any process that can send packets through the affected interface — no special privileges, hardware access, or user interaction are needed beyond generating sustained transmit load.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.18 | 6.18.57 | b7725acf9c57 |
| 7.2 | 6.18 | 7.2.11 | f94ab1fffd00 |
| mainline | 6.18 | 7.3 | 7a579dec8423 |