Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8AA703E3C63 for ; Mon, 27 Apr 2026 17:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777311274; cv=none; b=QMKA9ykb2nXiuyCRADnGyC9egQPrUprw6Sw7VQhCMz89Q0BOmXAimZ/XkM8ZDhikYULgW2AozxUnUNDh+s3Dkbou1ws6uiRYhrkTcog2AMUM2I3Ece7vlJ+7cPmR83vB0ogLl8a+z3GZne1zw0xaV0rUPWHXQHYnrA4UlVbr18g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777311274; c=relaxed/simple; bh=1Je7YVdDtiaPWmhEF3e6ieLl+7WIEiIbbUxDa7iHH1Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d2QdMQBhBdZe1kWN9Lg1mlC64Atyr7/tVLLrkHy87hbLBF2sAAZDIUbGreqzCxuySjStNSwThI7+TTHiAzC7OJ/Ce7gK3st9GI8cBBje6oY7XHRWPBIcK/RVrrM7VeymCJHv9DkSEHV13Me2xctPgBtRynKI3e22h8AQXC3y28I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YU9d60ji; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YU9d60ji" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1508C19425; Mon, 27 Apr 2026 17:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777311274; bh=1Je7YVdDtiaPWmhEF3e6ieLl+7WIEiIbbUxDa7iHH1Y=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YU9d60jiO0hOk71ypK4kPmDdOqZ6faBGU0thkX1wTU9g+eITfxWUWkIXX5qYpZ1KM E6APy7dweKY8AwDLgI7VeaFWqCIrQfLMR5yI1eMGsUXAVArqWuXkVYTaCEsWY0pK4h SgZ96DI6SrWyng+woFFJykwlwqR7R96vGTmDGOr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31690: firmware: thead: Fix buffer overflow and use standard endian macros Date: Mon, 27 Apr 2026 11:33:59 -0600 Message-ID: <2026042757-CVE-2026-31690-018e@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=2959; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hXaklmPucttr6KhlyWVUTqjwchIlP9ABpp2s6RncTP0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnv57HeOtIQf9SqOYB5z/vfn9cvrRJZXPLRVcDpo1KE5 JKNbXeOdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEblUwzNOerJZ1M+NMXMxr q8mTZLi2hXU7pDAsmDpN9LO1adNR22rrMrXcVafXFFUdAgA= 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: firmware: thead: Fix buffer overflow and use standard endian macros Addresses two issues in the TH1520 AON firmware protocol driver: 1. Fix a potential buffer overflow where the code used unsafe pointer arithmetic to access the 'mode' field through the 'resource' pointer with an offset. This was flagged by Smatch static checker as: "buffer overflow 'data' 2 <= 3" 2. Replace custom RPC_SET_BE* and RPC_GET_BE* macros with standard kernel endianness conversion macros (cpu_to_be16, etc.) for better portability and maintainability. The functionality was re-tested with the GPU power-up sequence, confirming the GPU powers up correctly and the driver probes successfully. [ 12.702370] powervr ffef400000.gpu: [drm] loaded firmware powervr/rogue_36.52.104.182_v1.fw [ 12.711043] powervr ffef400000.gpu: [drm] FW version v1.0 (build 6645434 OS) [ 12.719787] [drm] Initialized powervr 1.0.0 for ffef400000.gpu on minor 0 The Linux kernel CVE team has assigned CVE-2026-31690 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit e4b3cbd840e565484d0ad8d260d27c057466ed17 and fixed in 6.18.23 with commit fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb Issue introduced in 6.15 with commit e4b3cbd840e565484d0ad8d260d27c057466ed17 and fixed in 6.19.13 with commit bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97 Issue introduced in 6.15 with commit e4b3cbd840e565484d0ad8d260d27c057466ed17 and fixed in 7.0 with commit 88c4bd90725557796c15878b7cb70066e9e6b5ab 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-31690 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/firmware/thead,th1520-aon.c include/linux/firmware/thead/thead,th1520-aon.h 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/fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb https://git.kernel.org/stable/c/bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97 https://git.kernel.org/stable/c/88c4bd90725557796c15878b7cb70066e9e6b5ab