Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99164

published high CVSS 3.1 · 7.8

spi: imx: fix slab corruption from undersized DMA bounce buffers

Published
28 Oct 2026, 10:35:16 UTC
Updated
31 Oct 2026, 12:44:24 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxfaa8e404ad8e686cb98c51dc507fdcacfb8020ce to < 2777f6637da02da84c9c1ff92f413ce0f0995084 · faa8e404ad8e686cb98c51dc507fdcacfb8020ce to < 59eb22641f0c526dd064390b11cff99ae87c2858 · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.2.13 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu noble linux-buildinfo-7.0.0-1017-oracle Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-buildinfo-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-buildinfo-7.0.0-1018-gcp Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-buildinfo-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-buildinfo-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-buildinfo-7.0.0-44-generic-64k Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-cloud-tools-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-gcp-7.0 Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-gcp-7.0-headers-7.0.0-1018 Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-gcp-7.0-tools-7.0.0-1018 Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-headers-7.0.0-1017-oracle Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-headers-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-headers-7.0.0-1018-gcp Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-headers-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-headers-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-headers-7.0.0-44-generic-64k Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-hwe-7.0 Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-hwe-7.0-cloud-tools-7.0.0-44 Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-hwe-7.0-headers-7.0.0-44 Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-hwe-7.0-tools-7.0.0-44 Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-image-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-image-unsigned-7.0.0-1017-oracle Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-image-unsigned-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-image-unsigned-7.0.0-1018-gcp Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-image-unsigned-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-image-unsigned-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-image-unsigned-7.0.0-44-generic-64k Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-lib-rust-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-modules-7.0.0-1017-oracle Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-modules-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-modules-7.0.0-1018-gcp Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-modules-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-modules-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-modules-7.0.0-44-generic-64k Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-oracle-7.0 Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-oracle-7.0-headers-7.0.0-1017 Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-oracle-7.0-tools-7.0.0-1017 Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-tools-7.0.0-1017-oracle Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-tools-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21~24.04.1 USN-9190-1
Ubuntu noble linux-tools-7.0.0-1018-gcp Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-tools-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20~24.04.1 USN-9166-1
Ubuntu noble linux-tools-7.0.0-44-generic Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu noble linux-tools-7.0.0-44-generic-64k Advisory build 7.0.0-44.44~24.04.1 USN-9190-2
Ubuntu resolute bpftool Advisory build 7.7.0+7.0.0-44.44 USN-9166-1
Ubuntu resolute linux Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-aws Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-aws-cloud-tools-7.0.0-1018 Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-aws-headers-7.0.0-1018 Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-aws-tools-7.0.0-1018 Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-azure-fde Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-azure-fde-cloud-tools-7.0.0-1020 Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-azure-fde-headers-7.0.0-1020 Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-azure-fde-tools-7.0.0-1020 Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-1007-vmware Advisory build 7.0.0-1007.7 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1011-gke Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1011-gke-64k Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1017-oracle Advisory build 7.0.0-1017.21 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-1018-aws Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1018-aws-64k Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1018-gcp Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1019-ibm Advisory build 7.0.0-1019.19 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1019-oem Advisory build 7.0.0-1019.19 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-1020-azure-fde Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-1024-raspi Advisory build 7.0.0-1024.24 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-1024-raspi-realtime Advisory build 7.0.0-1024.24 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-44-generic Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-44-generic-64k Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-buildinfo-7.0.0-44-realtime Advisory build 7.0.0-44.44.1 USN-9190-1
Ubuntu resolute linux-buildinfo-7.0.0-44-realtime-64k Advisory build 7.0.0-44.44.1 USN-9190-1
Ubuntu resolute linux-cloud-tools-7.0.0-1007-vmware Advisory build 7.0.0-1007.7 USN-9166-1
Ubuntu resolute linux-cloud-tools-7.0.0-1018-aws Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-cloud-tools-7.0.0-1018-aws-64k Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-cloud-tools-7.0.0-1020-azure-fde Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-cloud-tools-7.0.0-44 Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-cloud-tools-7.0.0-44-generic Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-cloud-tools-7.0.0-44-realtime Advisory build 7.0.0-44.44.1 USN-9190-1
Ubuntu resolute linux-cloud-tools-common Advisory build 7.0.0-44.44 USN-9166-1
Ubuntu resolute linux-gcp Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-gcp-headers-7.0.0-1018 Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-gcp-tools-7.0.0-1018 Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-gke Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-gke-headers-7.0.0-1011 Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-gke-tools-7.0.0-1011 Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1007-vmware Advisory build 7.0.0-1007.7 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1011-gke Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1011-gke-64k Advisory build 7.0.0-1011.12 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1017-oracle Advisory build 7.0.0-1017.21 USN-9190-1
Ubuntu resolute linux-headers-7.0.0-1017-oracle-64k Advisory build 7.0.0-1017.21 USN-9190-1
Ubuntu resolute linux-headers-7.0.0-1018-aws Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1018-aws-64k Advisory build 7.0.0-1018.19 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1018-gcp Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1018-gcp-64k Advisory build 7.0.0-1018.20 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1019-ibm Advisory build 7.0.0-1019.19 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1019-oem Advisory build 7.0.0-1019.19 USN-9166-1
Ubuntu resolute linux-headers-7.0.0-1020-azure-fde Advisory build 7.0.0-1020.20 USN-9190-1
Ubuntu resolute linux-headers-7.0.0-1024-raspi Advisory build 7.0.0-1024.24 USN-9190-1
Ubuntu resolute linux-headers-7.0.0-1024-raspi-realtime Advisory build 7.0.0-1024.24 USN-9190-1
Ubuntu resolute linux-headers-7.0.0-44 Advisory build 7.0.0-44.44 USN-9166-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: spi: imx: fix slab corruption from undersized DMA bounce buffers Since commit faa8e404ad8e ("spi: imx: support dynamic burst length for ECSPI DMA mode"), the driver allocates its private DMA TX/RX buffers with kzalloc(dma_len), where dma_len is only rounded up to 4 bytes, but maps, syncs and unmaps them with DMA_CACHE_ALIGNED_LEN(dma_len), i.e. rounded up to the cache line size. As a result, the DMA API operates on memory beyond the end of the allocation. This was observed on a custom i.MX8MP platform with an mcp251xfd CAN controller under heavy RPMSG load, as a series of refcount_t warnings triggered from rpmsg_recv_done() in virtio_rpmsg_bus: refcount_t: addition on 0; use-after-free. refcount_t: underflow; use-after-free. refcount_t: saturated; leaking memory. Leading finally to an "Unable to handle kernel paging request" oops. Reproducing this problem took between 30 minutes and roughly 30 hours under the same workload. Hardware watchpoints on the refcount of a struct rpmsg_endpoint showed it was overwritten from 2 to 1 by __pi_memcpy_generic() in the irq/155-spi2.0 thread. Additionally it was found that a "normal" rpmsg_recv_done() took 11µs +/-2µs from its kref_get to kref_put. In the error case the same sequence took about 215µs +/-10µs. Based on this, an LLM was used to identify the size mismatch fixed here. Allocate the buffers with DMA_CACHE_ALIGNED_LEN(dma_len) so they cover the full mapped length, and use the same length for dma_sync_single_for_cpu() to stay consistent with map and unmap. With this patch applied, the same workload ran for more than 200 hours without the problem reproducing.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

5

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - A local caller can issue a 64-byte SPI_IOC_MESSAGE through spidev_ioctl()->spidev_message()->spi_sync()->spi_transfer_one_message()->spi_imx_transfer_one()->spi_imx_dma_transfer()->spi_imx_dma_tx_data_handle(). The faulty length is generated by spi_imx_dma_map(), not supplied by a remote CAN message. AC:L - spi_imx_can_dma() accepts caller-controlled transfers of at least 64 bytes; on arm64, 64 bytes deterministically makes spi_imx_dma_map() map 128 bytes after spi_imx_dma_tx_data_handle() allocated 64. The caller can repeat transfers and set word_delay to widen the corruption window without an uncontrollable hardware fault. PR:L - spidev_open() and spidev_ioctl() contain no capable() check, so an ordinary account with access to an existing /dev/spidev node can submit the transfer. Independently, can_create() and raw_sendmsg() let an unprivileged local user drive qualifying MCP251xFD CAN-FD SPI transfers on an already-up interface. UI:N - The attacker invokes spidev_ioctl() or CAN raw_sendmsg() directly, and those operations reach the faulty DMA mapping without another user mounting media, opening a file, or approving a transfer. S:U - spi_imx_dma_map() and spi_imx_dma_unmap() corrupt neighboring allocations in the same host kernel; the path crosses no VM, IOMMU, or other security-authority boundary. C:H - The oversized DMA_FROM_DEVICE cache maintenance reverted an adjacent struct rpmsg_endpoint refcount from 2 to 1, allowing __ept_release() to free an endpoint while it remained in use. This demonstrated UAF can expose reclaimed kernel-object contents. I:H - spi_imx_dma_unmap() invalidates cache lines beyond the undersized dma_rx_buf, demonstrably altering an adjacent rpmsg_endpoint refcount and creating a UAF. Reclaiming that freed object can convert the slab corruption into attacker-influenced writes or control-flow corruption. A:H - The corrupted rpmsg_endpoint refcount produced addition-on-zero, underflow, and saturation warnings and ultimately an Unable to handle kernel paging request oops, demonstrating a kernel crash.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux faa8e404ad8e686cb98c51dc507fdcacfb8020ce to < 2777f6637da02da84c9c1ff92f413ce0f0995084 (affected · git)faa8e404ad8e686cb98c51dc507fdcacfb8020ce to < 59eb22641f0c526dd064390b11cff99ae87c2858 (affected · git)Default: unaffected Linux · cna
Linux Linux 7.0 (affected)0 to < 7.0 (unaffected · semver)7.2.13 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

spi: imx: fix slab corruption from undersized DMA bounce buffers

Provenance

Schema
5.2
Searchable
yes
Content hash
4f5a3ca5182d67660262d7ff18c5d62f4e4257b128f0c574cb4b5a98240b7110
Ingested
31 Oct 2026, 12:46:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected