In the Linux kernel, the following vulnerability has been resolved:
crypto: marvell/octeontx - fix DMA cleanup using wrong loop index
The sg_cleanup path used list[i] instead of list[j] when unmapping DMA
buffers, leaking successfully mapped entries and repeatedly unmapping
the failed one.
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS Score: 10
AV:N - On OcteonTX/Thunder network appliances, remote peers reach setup_sgio_components() through inbound IPsec ESP or kTLS decryption that offloads AEAD/skcipher to the Marvell CPT VF before any peer authentication.
AC:L - An attacker can reliably force the buggy sg_cleanup path by submitting heavily fragmented scatter-gather crypto requests that exhaust DMA/IOMMU mappings, causing dma_map_single() to fail at index i>=1 while earlier entries remain mapped.
PR:N - Inbound network decryption invokes CPT hardware offload without attacker credentials; no init-namespace root or CAP_NET_ADMIN is required on an already configured VPN/TLS endpoint to deliver ciphertext that reaches this driver.
UI:N - Exploitation requires only automated kernel crypto processing of attacker-supplied ciphertext or AF_ALG requests; no victim mount, file open, or other interactive action is needed.
S:C - The flaw leaks DMA_BIDIRECTIONAL IOMMU mappings for the CPT PCI device, crossing the intended DMA boundary between host memory and hardware crypto offload rather than staying within a single software security scope.
C:H - Leaked bidirectional IOMMU mappings leave previously mapped pages device-readable after logical cleanup, enabling memory disclosure when stale mappings persist or interact with subsequent CPT DMA activity under resource pressure.
I:H - Unreleased DMA_BIDIRECTIONAL mappings and repeated bogus dma_unmap_single() calls on the failed entry can corrupt IOMMU bookkeeping and allow the CPT device to perform unintended DMA writes to host memory outside the aborted request buffers.
A:H - Each triggered failure leaks IOMMU mappings and may WARN or panic on invalid unmaps, causing gradual DMA resource exhaustion or immediate kernel crashes that deny crypto and overall system availability on affected OcteonTX systems.
| Attack Vector |
Network |
Scope |
Changed |
| Attack Complexity |
Low |
Confidentiality Impact |
High |
| Privileges Required |
None |
Integrity Impact |
High |
| User Interaction |
None |
Availability Impact |
High |
AV:N - On OcteonTX/Thunder network appliances, remote peers reach setup_sgio_components() through inbound IPsec ESP or kTLS decryption that offloads AEAD/skcipher to the Marvell CPT VF before any peer authentication.
AC:L - An attacker can reliably force the buggy sg_cleanup path by submitting heavily fragmented scatter-gather crypto requests that exhaust DMA/IOMMU mappings, causing dma_map_single() to fail at index i>=1 while earlier entries remain mapped.
PR:N - Inbound network decryption invokes CPT hardware offload without attacker credentials; no init-namespace root or CAP_NET_ADMIN is required on an already configured VPN/TLS endpoint to deliver ciphertext that reaches this driver.
UI:N - Exploitation requires only automated kernel crypto processing of attacker-supplied ciphertext or AF_ALG requests; no victim mount, file open, or other interactive action is needed.
S:C - The flaw leaks DMA_BIDIRECTIONAL IOMMU mappings for the CPT PCI device, crossing the intended DMA boundary between host memory and hardware crypto offload rather than staying within a single software security scope.
C:H - Leaked bidirectional IOMMU mappings leave previously mapped pages device-readable after logical cleanup, enabling memory disclosure when stale mappings persist or interact with subsequent CPT DMA activity under resource pressure.
I:H - Unreleased DMA_BIDIRECTIONAL mappings and repeated bogus dma_unmap_single() calls on the failed entry can corrupt IOMMU bookkeeping and allow the CPT device to perform unintended DMA writes to host memory outside the aborted request buffers.
A:H - Each triggered failure leaks IOMMU mappings and may WARN or panic on invalid unmaps, causing gradual DMA resource exhaustion or immediate kernel crashes that deny crypto and overall system availability on affected OcteonTX systems.
CVSS 3.1