Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEF8738332A for ; Thu, 25 Jun 2026 08:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377170; cv=none; b=AwE6nya6yLfGmySoIas8zHpgs0jZef/WPjIRx/MzZQTbRphKBfcCERWtRgFtBSQRzWjL4vXsFjq4AZISAz/Pg0FhLbwgsiCfmQon53oM6xofipjxsqxURlGN2VCT2GgbiFnnew3vEzqn7hh1h3IcVWpyB1U3klj/HzkOntYSwOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377170; c=relaxed/simple; bh=ZWP4IQfwggWfnOmEbbpFuoV0O3n8mnfK2nlcIyb6Lrg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dtcZspt/Ty+d+PvMiDaJcL8K8hJ8iT0Xc/Y449uXucrXY/grZylAwr3lAIZW2fsFmqyislJP8NDR/MFFQTJ7yYgHTEEDRLQXYZbl9D/StDbvUlaK4cwiGie6wbvK10FC8ukcDcPquJEN/VFmWem7Wu7uqh9oimLZXH6hUyKeqHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d/u2fxnI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="d/u2fxnI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 181091F000E9; Thu, 25 Jun 2026 08:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377169; bh=0IRgMHWvIYFno++CSCAAUTcPe9qXRNkbp6KSpXOj9tk=; h=From:To:Cc:Subject:Date:Reply-To; b=d/u2fxnIdLLQj4wHoMBPirQphv/cwQd8OTk09TH1iH3X0FugI4z7+lLaAasKh1dgt hnRxifDgJoE8x401PkW4Kf+NINscFNyOXfEqnQPCI+PEqCpYglVykLaRUQv5b4g9s+ j5KsrK2V3MkbMe8JpWDT7Q+nkB8Ht/AYu/eE9FA8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53170: accel/ethosu: reject DMA commands with uninitialized length Date: Thu, 25 Jun 2026 09:40:18 +0100 Message-ID: <2026062552-CVE-2026-53170-29c9@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2562; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C/C4SGl0xL8xNf8Dx3nK7gA5ruF4GemMvbfVnwuu0EM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LyPePVvHYp3axfsrm/fds+62ad6m8f6Tnj6ZKxkbf HfTPtbfHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZRIMC9Y3vS3TPf7TOK2z +IzJ7Srm9XvXLWSYw3WB96xGbGs76/Pr7vYX49y7mHcvAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: accel/ethosu: reject DMA commands with uninitialized length cmd_state_init() initializes the command state with memset(0xff), leaving dma->len at U64_MAX to signal missing setup. The only setter is NPU_SET_DMA0_LEN; if userspace omits this command and issues NPU_OP_DMA_START, dma->len remains U64_MAX. In dma_length(), a positive stride added to U64_MAX wraps to a small value. With size0 == 1, check_mul_overflow() does not trigger and dma_length() returns 0 instead of U64_MAX. The caller's U64_MAX check then passes, region_size[] stays 0, and the bounds check in ethosu_job.c is bypassed, allowing hardware to execute DMA with stale physical addresses. Fix by checking for U64_MAX at the start of dma_length() before any arithmetic, consistent with the sentinel value used throughout the driver to detect uninitialized fields. The Linux kernel CVE team has assigned CVE-2026-53170 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.0.13 with commit fb25c76a820ca8a547aa478bfb503da0a11494ab Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.1 with commit d9d021218162b6c4fe0bdf42b2b340f1aae23a12 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53170 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/accel/ethosu/ethosu_gem.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fb25c76a820ca8a547aa478bfb503da0a11494ab https://git.kernel.org/stable/c/d9d021218162b6c4fe0bdf42b2b340f1aae23a12