bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98131

5.5medium

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

net: stmmac: fix dma mapping leak in stmmac_tso_xmit()

In stmmac_tso_xmit(), if the DMA mapping of an skb fragment fails, the frame is dropped but the DMA mappings already created for the linear part and for the fragments mapped before the failure are never unmapped, leaking DMA mappings.

Fix the leak by walking back over the descriptors used by the frame and releasing each of them with stmmac_free_tx_buffer(). Moreover, release the descriptors with stmmac_release_tx_desc() unmapping the DMA buffers.

Published 2026-09-25NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References 4
Review Av26.10.0aarch64_minimalNot affected✓ accepted by a member, 2026-11-18 · settles 1 of 8

Fable 5.1 · high confidence · 2026-11-06

The fix for CVE-2026-98131 is already present in the linux 6.18.60 source used by this build. stmmac_tso_xmit() in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c contains the new error_dma_unmap: label (lines 4484-4498) that walks back over the descriptors used by the frame and releases each with stmmac_release_tx_desc() + stmmac_free_tx_buffer(), and the fragment-mapping failure path jumps to it (line 4377) instead of the old error label.

No local patch supplies this; it is a stable backport contained in the stock 6.18.60 tarball, so NVD's version range is simply stale.

The stmmac driver is compiled in (CONFIG_STMMAC_ETH=y, DWMAC_ROCKCHIP/GENERIC) so this is NOT_AFFECTED rather than NOT_BUILT, but reachability is moot since the vulnerable code is not in the image.

Evidence 6
  1. Fragment DMA mapping failure now jumps to `error_dma_unmap` (fixed code); the vulnerable code jumped straight to `error` without unmapping.

    output/build/linux-6.18.60/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4376-4377

  2. `error_dma_unmap:` loop walks from first_entry to entry calling stmmac_release_tx_desc() and stmmac_free_tx_buffer() on each descriptor - exactly the remediation described in the CVE/fix commit.

    output/build/linux-6.18.60/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4484-4498

  3. Linear-part mapping failure (nothing mapped yet) still goes to plain `error`, matching the upstream fix structure.

    output/build/linux-6.18.60/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4345-4346

  4. No applied patch mentions stmmac or TSO; the fixed code comes from the stock 6.18.60 stable tarball, i.e. a stable backport not reflected in NVD's range.

    output/build/linux-6.18.60/.applied_patches_list

  5. CONFIG_STMMAC_ETH=y, CONFIG_STMMAC_PLATFORM=y, CONFIG_DWMAC_GENERIC=y, CONFIG_DWMAC_ROCKCHIP=y - the driver is compiled in, so the verdict rests on the fix being present, not on the feature being absent.

    output/build/linux-6.18.60/.config:2558-2564

  6. stmmac objects were produced by this build, confirming the driver is in the image.

    output/objects.txt (drivers/net/ethernet/stmicro/stmmac/*.o)

Version and patches

CVE fix commits: 8a3257f142ae, a5d946466a95, c5449b635362, e85adaac3dc6 (mainline + stable backports). The 6.18.60 source in this tree already contains the fixed error_dma_unmap walk-back in stmmac_tso_xmit(), with no local patch providing it, so the fix arrived via the 6.18.y stable series. NVD's CPE match on 6.18.60 is based on a stale version range.

Recommendation

Document as N/A (fix already present in 6.18.60 stable source). No upgrade or backport needed. Consider adding a Buildroot LINUX_IGNORE_CVES entry or SBOM annotation for CVE-2026-98131 to suppress future re-flags.

Open questions

None material. The exact stable release that introduced the backport into 6.18.y was not determined from the tree (no git history for the tarball), but the fixed code is unambiguously present in the compiled source.

Members of Kernel Kit decide. Sign in if you are one.