spi: pic32-sqi: fail transfer when the BD ring is exhausted

Summary

CVECVE-2026-143366
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:18:26 UTC
Updated2026-12-03 10:18:26 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: spi: pic32-sqi: fail transfer when the BD ring is exhausted pic32_sqi_one_transfer() silently stopped programming buffer descriptors when ring_desc_get() 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 PESQI_BD_COUNT (256) descriptors of at most PESQI_BD_BUF_LEN_MAX (256) bytes each, so messages larger than 64 KiB (or with enough SG entries) can exhaust it. Since the driver sets no max_message_size/max_transfer_size, 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 4f5a9ef948e8fd6e3ad1d38fe7109814a8ce4e27 git Not specified
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 c5f2d90b8a3e53f47518df441c11c35de610ab4f git Not specified
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 bc358f616b6693f16250703c515bb33fb6dfff49 git Not specified
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 7f9fdb562e28a9383d9f0b7d50e7059c6a4e7897 git Not specified
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 4f27739c460f05f1e15e2f4d20002830d7cfb818 git Not specified
CNA Linux Linux affected 3270ac230f660843a7f7d631746ee2c8ee63f347 2066970324a1439e5a2e08c4599098367f8f82cc git Not specified
CNA Linux Linux affected 4.7 Not specified
CNA Linux Linux unaffected 4.7 semver Not specified
CNA Linux Linux unaffected 5.10.276 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.227 5.15.* semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/bc358f616b6693f16250703c515bb33fb6dfff49 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7f9fdb562e28a9383d9f0b7d50e7059c6a4e7897 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c5f2d90b8a3e53f47518df441c11c35de610ab4f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4f5a9ef948e8fd6e3ad1d38fe7109814a8ce4e27 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2066970324a1439e5a2e08c4599098367f8f82cc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4f27739c460f05f1e15e2f4d20002830d7cfb818 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report