CVE-2026-139756

spi: amlogic: spisg: Fix transfer size limit and timeout handling

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

spi: amlogic: spisg: Fix transfer size limit and timeout handling

The CFG_BLOCK_NUM field can encode at most 20 bits, so reduce
SPISG_BLOCK_MAX to 0xfffff to avoid programming a zero-length transfer.

Perform the delay calculation in 64-bit arithmetic to avoid overflow
when converting nanoseconds to SPI clock cycles.

Stop the controller on transfer timeout by clearing the descriptor list
register before returning an error.

Analysis

AI-generated

Technical impact

Based on the description in the CVE, it is inferred that the spisg driver in the Linux kernel uses the CFG_BLOCK_NUM field to encode transfer size, which only supports 20 bits. If an attacker supplies a value larger than this limit the driver may program a zero‑length transfer. This can lead to undefined behavior, potential kernel panics, or memory corruption. The original delay calculation performed a 32‑bit conversion of requested nanoseconds into SPI clock cycles, which could overflow and corrupt internal registers or cause incorrect timing. In addition, the driver did not stop the controller on a transfer timeout, potentially leaving the hardware in a permanently hung state. These weaknesses provide a means for an attacker that can influence SPI transfers—whether through a privileged driver, firmware, or physical access—to cause denial of service or, in some contexts, to corrupt kernel memory. The vulnerabilities involve integer overflows and improper validation of input sizes, aligning with CWEs such as CWE-190 and CWE-665.

Affected Systems

Based on the description in the CVE, it is inferred that the issue is present in all Linux kernel configurations that include the Amlogic spisg driver before the patch commits referenced in the advisory. The affected code is part of the kernel’s SPI subsystem for Amlogic System‑on‑Chip devices. No specific kernel release numbers are listed, so any kernel that builds the spisg driver for Amlogic hardware and has not yet been updated to the patched state is potentially vulnerable.

Risk and Exploitability

Based on the description in the CVE, it is inferred that attack access is likely limited to those with control over the SPI bus or ability to load a firmware module that uses the spisg driver; thus the attack vector is local or physical. The CVSS score is not provided, and the EPSS score is unavailable, which makes it difficult to quantify the probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Given the absence of publicly reported exploits and the specific hardware interface, the overall risk is moderate, with a primary concern being possible denial of service or kernel instability if the flaw is triggered.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates the spisg driver fixes identified in the referenced commits.
  • After upgrading, verify that transfer size limits are capped at 0xFFFFF and that delay calculations use 64‑bit arithmetic to avoid overflow.
  • If an upgrade is not possible, disable the Amlogic spisg driver or restrict access to the SPI controller to prevent misuse.

Generated by OpenCVE AI on December 1, 2026 at 02:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-190
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: amlogic: spisg: Fix transfer size limit and timeout handling The CFG_BLOCK_NUM field can encode at most 20 bits, so reduce SPISG_BLOCK_MAX to 0xfffff to avoid programming a zero-length transfer. Perform the delay calculation in 64-bit arithmetic to avoid overflow when converting nanoseconds to SPI clock cycles. Stop the controller on transfer timeout by clearing the descriptor list register before returning an error.
Title spi: amlogic: spisg: Fix transfer size limit and timeout handling
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-665

    Improper Initialization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM