{"id":"CVE-2026-31690","aliases":["CVE-2026-31690"],"related":[],"kind":"vulnerability","state":"published","title":"firmware: thead: Fix buffer overflow and use standard endian macros","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: thead: Fix buffer overflow and use standard endian macros\n\nAddresses two issues in the TH1520 AON firmware protocol driver:\n\n1. Fix a potential buffer overflow where the code used unsafe pointer\n   arithmetic to access the 'mode' field through the 'resource' pointer\n   with an offset. This was flagged by Smatch static checker as:\n   \"buffer overflow 'data' 2 <= 3\"\n\n2. Replace custom RPC_SET_BE* and RPC_GET_BE* macros with standard\n   kernel endianness conversion macros (cpu_to_be16, etc.) for better\n   portability and maintainability.\n\nThe functionality was re-tested with the GPU power-up sequence,\nconfirming the GPU powers up correctly and the driver probes\nsuccessfully.\n\n[   12.702370] powervr ffef400000.gpu: [drm] loaded firmware\npowervr/rogue_36.52.104.182_v1.fw\n[   12.711043] powervr ffef400000.gpu: [drm] FW version v1.0 (build\n6645434 OS)\n[   12.719787] [drm] Initialized powervr 1.0.0 for ffef400000.gpu on\nminor 0","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: thead: Fix buffer overflow and use standard endian macros\n\nAddresses two issues in the TH1520 AON firmware protocol driver:\n\n1. Fix a potential buffer overflow where the code used unsafe pointer\n   arithmetic to access the 'mode' field through the 'resource' pointer\n   with an offset. This was flagged by Smatch static checker as:\n   \"buffer overflow 'data' 2 <= 3\"\n\n2. Replace custom RPC_SET_BE* and RPC_GET_BE* macros with standard\n   kernel endianness conversion macros (cpu_to_be16, etc.) for better\n   portability and maintainability.\n\nThe functionality was re-tested with the GPU power-up sequence,\nconfirming the GPU powers up correctly and the driver probes\nsuccessfully.\n\n[   12.702370] powervr ffef400000.gpu: [drm] loaded firmware\npowervr/rogue_36.52.104.182_v1.fw\n[   12.711043] powervr ffef400000.gpu: [drm] FW version v1.0 (build\n6645434 OS)\n[   12.719787] [drm] Initialized powervr 1.0.0 for ffef400000.gpu on\nminor 0","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nfirmware: thead: Corrige el desbordamiento de búfer y usa macros endian estándar\n\nAborda dos problemas en el controlador del protocolo de firmware AON TH1520:\n\n1. 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’\n\n2. 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.\n\nLa 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.\n\n[   12.702370] powervr ffef400000.gpu: [drm] firmware cargado powervr/rogue_36.52.104.182_v1.fw\n[   12.711043] powervr ffef400000.gpu: [drm] Versión de FW v1.0 (compilación 6645434 OS)\n[   12.719787] [drm] powervr 1.0.0 inicializado para ffef400000.gpu en minor 0","source":"nvd"}],"published":"2026-04-27T17:34:28.738Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"e4b3cbd840e565484d0ad8d260d27c057466ed17","fixed":"fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb","status":"affected"},{"type":"git","introduced":"e4b3cbd840e565484d0ad8d260d27c057466ed17","fixed":"bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97","status":"affected"},{"type":"git","introduced":"e4b3cbd840e565484d0ad8d260d27c057466ed17","fixed":"88c4bd90725557796c15878b7cb70066e9e6b5ab","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.15","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88c4bd90725557796c15878b7cb70066e9e6b5ab","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31690","url":"https://www.cve.org/CVERecord?id=CVE-2026-31690","licence":"CVE Terms of Use","modified":"2026-05-11T22:13:45.476Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31690","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31690","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.688Z","epss":{"score":0.00136,"percentile":0.03245,"date":"2026-12-01T12:00:22.000Z"}}