7.8high
firmware: thead: Fix buffer overflow and use standard endian macros
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from e4b3cbd840e565484d0ad8d260d27c057466ed17 before fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb, from e4b3cbd840e565484d0ad8d260d27c057466ed17 before bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97, from e4b3cbd840e565484d0ad8d260d27c057466ed17 before 88c4bd90725557796c15878b7cb70066e9e6b5ab, 6.15 Not affected: before 6.15, from 6.18.23 up to 6.18.*, from 6.19.13 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.15 before 6.18.23, from 6.19 before 6.19.13, 7.0 | NVD |
Classification
What each source says
CVE List
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
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: firmware: thead: Corrige el desbordamiento de búfer y usa macros endian estándar Aborda dos problemas en el controlador del protocolo de firmware AON TH1520: 1. Corrige un posible desbordamiento de búfer donde el código usaba aritmética de punteros insegura para acceder al campo ’mode’ a través del puntero ’resource’ con un desplazamiento. Esto fue marcado por el verificador estático Smatch como: ’buffer overflow ’data’ 2 menor o igual que 3’ 2. Reemplaza las macros personalizadas RPC_SET_BE y RPC_GET_BE con macros estándar de conversión de endianness del kernel (cpu_to_be16, etc.) para una mejor portabilidad y mantenibilidad. La funcionalidad fue reevaluada con la secuencia de encendido de la GPU, confirmando que la GPU se enciende correctamente y el controlador se inicializa con éxito. [ 12.702370] powervr ffef400000.gpu: [drm] firmware cargado powervr/rogue_36.52.104.182_v1.fw [ 12.711043] powervr ffef400000.gpu: [drm] Versión de FW v1.0 (compilación 6645434 OS) [ 12.719787] [drm] powervr 1.0.0 inicializado para ffef400000.gpu en minor 0
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31690 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-31690 changed 2026-11-11 | Public domain |