# CVE-2026-31690: firmware: thead: Fix buffer overflow and use standard endian macros

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-04-27T17:34:28.738Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< 88c4bd90725557796c15878b7cb70066e9e6b5ab
- Anyone running Linux 6.15

## 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 and fixed versions

- Linux: \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< 88c4bd90725557796c15878b7cb70066e9e6b5ab (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 88c4bd90725557796c15878b7cb70066e9e6b5ab or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31690. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31690.md
Affected: Linux >= e4b3cbd840e565484d0ad8d260d27c057466ed17, < fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb; >= e4b3cbd840e565484d0ad8d260d27c057466ed17, < bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97; >= e4b3cbd840e565484d0ad8d260d27c057466ed17, < 88c4bd90725557796c15878b7cb70066e9e6b5ab; Linux 6.15
Fixed in: Linux 88c4bd90725557796c15878b7cb70066e9e6b5ab

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31690 being exploited?

There is no confirmed exploitation: CVE-2026-31690 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31690?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31690?

Linux \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97; \>= e4b3cbd840e565484d0ad8d260d27c057466ed17, \< 88c4bd90725557796c15878b7cb70066e9e6b5ab; Linux 6.15.

### Is there a fix for CVE-2026-31690?

Yes. Fixed in Linux 88c4bd90725557796c15878b7cb70066e9e6b5ab. Upgrade Linux to 88c4bd90725557796c15878b7cb70066e9e6b5ab or later.

### How do I check if I'm affected by CVE-2026-31690?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb>
- patch: <https://git.kernel.org/stable/c/bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97>
- patch: <https://git.kernel.org/stable/c/88c4bd90725557796c15878b7cb70066e9e6b5ab>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31690>

HTML: <https://flawdb.com/CVE-2026-31690> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31690>
