CVE-2026-68192 PUBLISHED

wifi: brcmfmac: make release_scratchbuffers idempotent

Assigner: Linux
Reserved: 30.07.2026 Published: 10.08.2026 Updated: 10.08.2026

In the Linux kernel, the following vulnerability has been resolved:

wifi: brcmfmac: make release_scratchbuffers idempotent

brcmf_pcie_release_scratchbuffers() frees the shared.scratch and shared.ringupd DMA buffers with dma_free_coherent() but does not clear the pointers afterwards, unlike the sibling release_ringbuffers() which NULLs commonrings/flowrings/idxbuf on release.

Both the bus_reset .reset callback (brcmf_pcie_reset) and brcmf_pcie_remove() call release_scratchbuffers. When reset teardown has run before removal, remove's own teardown would call dma_free_coherent() a second time on the already-freed DMA allocation.

NULL the pointers after free, matching release_ringbuffers(), so a later release observes that the allocation has already been released. This patch makes repeated sequential release safe; the reset-work lifetime is handled separately by the following patch.

This issue was found by an in-house static analysis tool.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4684997d9eea29380000e062755aa6d368d789a3 to b7d1d8cb1bdca56aecebacd2896615da0acc126a (excl.)
  • affected from 4684997d9eea29380000e062755aa6d368d789a3 to 5a045c2f0fbf029873d2295178fa0785ade35af0 (excl.)
  • affected from 4684997d9eea29380000e062755aa6d368d789a3 to 044fca8f45ba9ab6ca526163155234cf88287ff5 (excl.)
  • affected from 4684997d9eea29380000e062755aa6d368d789a3 to 0ca80328df23f851c86866720d4977783c919ee6 (excl.)
  • affected from 4684997d9eea29380000e062755aa6d368d789a3 to 538c51e9d124cf656f2dd0c0394a8545efc7102d (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.2 is affected
  • unaffected from 0 to 5.2 (excl.)
  • unaffected from 6.6.148 to 6.6.* (incl.)
  • unaffected from 6.12.101 to 6.12.* (incl.)
  • unaffected from 6.18.42 to 6.18.* (incl.)
  • unaffected from 7.1.6 to 7.1.* (incl.)
  • unaffected from 7.2-rc5 to * (incl.)

References