AZL-118679: CVE-2026-143366 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
spi: pic32-sqi: fail transfer when the BD ring is exhausted
pic32sqionetransfer() silently stopped programming buffer descriptors when ringdescget() returned NULL and still returned success. The caller then marked the last programmed descriptor as the end of the list and started the DMA engine, so the hardware transferred only a prefix of the requested data while the message completed with status 0.
The ring holds PESQIBDCOUNT (256) descriptors of at most PESQIBDBUFLENMAX (256) bytes each, so messages larger than 64 KiB (or with enough SG entries) can exhaust it. Since the driver sets no maxmessagesize/maxtransfersize, the SPI core does not prevent this.
Return -ENOMEM instead, and set msg->status so the failure reaches the caller rather than being silently truncated.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to the transfer truncation behavior?
Systems using the pic32-sqi SPI driver are exposed when a transfer exhausts its 256-entry buffer-descriptor ring. This can occur with messages larger than 64 KiB or with enough scatter-gather entries to consume all descriptors.
What happens when the descriptor ring is exhausted?
The driver can start DMA using only the descriptors programmed before exhaustion, while reporting successful completion with status 0. As a result, the hardware transfers only a prefix of the requested data without notifying the caller of the failure.
Does the SPI core limit requests to avoid this condition?
No. The driver does not set max_message_size or max_transfer_size, so the SPI core does not prevent oversized messages or descriptor-heavy scatter-gather transfers.
What can be done if the resolved driver is not yet available?
Avoid SPI messages larger than 64 KiB and avoid scatter-gather layouts that require 256 or more descriptors. Requests should be split or otherwise constrained so they do not exhaust the driver's descriptor ring.