Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98592 Overview
CVE-2026-98592 is a Linux kernel vulnerability in the SpacemiT Ethernet MAC (EMAC) network driver. The flaw resides in the emac_tx_mem_map() transmit path, where TX descriptors are committed with the TX_DESC_0_OWN flag before all buffer fragments have been successfully DMA-mapped. When a later fragment mapping fails, the error path tears down the DMA mappings but leaves the ring descriptor memory intact, creating a stale descriptor referencing freed DMA addresses. The upstream fix clears the TX descriptor on fragment mapping failure, mirroring the pairing that emac_tx_clean_desc() already performs during normal reclaim.
Critical Impact
The DMA engine may fetch stale, already-unmapped buffer addresses, leading to use-after-free style memory corruption, data integrity issues, or system instability on affected SpacemiT platforms.
Affected Products
- Linux kernel versions containing the SpacemiT EMAC driver (drivers/net/ethernet/spacemit/)
- Stable kernel branches prior to the fixing commits 2d14720beb58, 3001a103a367, and ca9986cc824f
- SpacemiT RISC-V based hardware platforms using the EMAC network interface
Discovery Timeline
- 2026-10-18 - CVE-2026-98592 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98592
Vulnerability Analysis
The defect lives in the SpacemiT EMAC driver's scatter-gather transmit path. emac_tx_mem_map() iterates over an skb's fragments and, for each ring slot beyond old_head, writes a locally prepared tx_desc into the DMA-visible ring with *tx_desc_addr = tx_desc. That store commits the TX_DESC_0_OWN ownership bit to hardware before emac_tx_map_frag() has mapped every subsequent fragment.
If a later dma_map_* call fails, the function jumps to err_free_skb, which calls emac_free_tx_buf() to unmap previously mapped buffers and drop the skb. However, the already-written descriptor contents remain in the ring, and tx_ring->head is never advanced past old_head because the tx_ring->head = head store is bypassed by the goto. The result is a ring slot that software treats as free while hardware still sees TX_DESC_0_OWN with buffer_addr_1 and buffer_addr_2 pointing at DMA addresses that have already been unmapped.
Root Cause
The root cause is a missing invariant between descriptor publication and buffer-mapping success. The driver publishes descriptor state optimistically rather than atomically with successful mapping. On the error path, cleanup is incomplete: DMA mappings are released but the matching descriptor words are not zeroed, breaking the pairing that emac_tx_clean_desc() enforces on the completion path.
Attack Vector
Triggering the bug requires a DMA fragment mapping failure during transmit, which can occur under memory pressure, IOMMU exhaustion, or when crafted traffic generates many fragmented skbs. If the DMA engine auto-advances past old_head after completing its current packet, it fetches the stale descriptor and performs a DMA read against freed memory. This can produce silent data corruption on the wire, bus errors, or memory safety violations exploitable for denial of service. The attack vector is local to the host generating transmit traffic; no network-reachable primitive is described.
No verified public exploit code is available. See the upstream commits for the exact patch content: commit 2d14720b, commit 3001a103, and commit ca9986cc.
Detection Methods for CVE-2026-98592
Indicators of Compromise
- Kernel log entries from the SpacemiT EMAC driver reporting dma_map failures or TX errors on affected interfaces.
- Unexplained TX ring stalls, watchdog timeouts, or interface resets on SpacemiT EMAC hardware.
- IOMMU fault messages correlated with transmit activity, indicating fetches of unmapped DMA addresses.
Detection Strategies
- Audit running kernel versions on SpacemiT RISC-V hosts against the fixing commit hashes 2d14720b, 3001a103, and ca9986cc.
- Enable kernel DMA debugging (CONFIG_DMA_API_DEBUG) in test environments to surface use of unmapped addresses by the EMAC driver.
- Monitor ethtool -S counters for abnormal TX error, dropped, or aborted frame rates on the EMAC interface.
Monitoring Recommendations
- Centralize kernel ring buffer and dmesg output from SpacemiT devices into a SIEM for anomaly review.
- Alert on repeated network interface resets, TX timeouts, or IOMMU faults on affected platforms.
- Track the kernel package version inventory across fleets to confirm patch rollout coverage.
How to Mitigate CVE-2026-98592
Immediate Actions Required
- Identify all Linux hosts using the SpacemiT EMAC driver and prioritize them for patching.
- Apply a kernel update that includes commits 2d14720b, 3001a103, or ca9986cc from the mainline or stable trees.
- Reduce transmit memory pressure where possible by tuning queue sizes and avoiding workloads that produce highly fragmented skbs on unpatched systems.
Patch Information
The fix clears the TX descriptor memory on the fragment mapping failure path, pairing descriptor teardown with emac_free_tx_buf() the same way emac_tx_clean_desc() does on the completion path. Patches are available in the following upstream commits: commit 2d14720b, commit 3001a103, and commit ca9986cc. Distribution-specific kernel updates should be applied as they become available.
Workarounds
- No official software workaround exists; patching the kernel is the authoritative remediation.
- Where patching is delayed, limit the exposure of SpacemiT EMAC devices to workloads that stress DMA mapping (large scatter-gather transmits under memory pressure).
- Consider temporarily switching to an alternate network interface on affected hardware if available until the kernel update is deployed.
# Verify whether the running kernel contains the fix
uname -r
zcat /proc/config.gz 2>/dev/null | grep -i spacemit
dmesg | grep -i -E 'emac|spacemit'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

