{
  "id": "CVE-2026-31690",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31690",
  "published_at": "2026-04-27T17:34:28.738Z",
  "title": "firmware: thead: Fix buffer overflow and use standard endian macros",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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 \u003c= 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",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= e4b3cbd840e565484d0ad8d260d27c057466ed17, \u003c fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb",
          "\u003e= e4b3cbd840e565484d0ad8d260d27c057466ed17, \u003c bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97",
          "\u003e= e4b3cbd840e565484d0ad8d260d27c057466ed17, \u003c 88c4bd90725557796c15878b7cb70066e9e6b5ab"
        ],
        "fixed_in": [
          "fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb",
          "bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97",
          "88c4bd90725557796c15878b7cb70066e9e6b5ab"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.15"
        ],
        "fixed_in": [
          "0",
          "6.18.23",
          "6.19.13",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to fbdb43f6bb2a15ed382d6eb0ef82c8b07b0d47bb or bd15a5deb5a7251dc1a0cf9186f0253f7eacdb97 or 88c4bd90725557796c15878b7cb70066e9e6b5ab or later.",
      "Upgrade Linux to 0 or 6.18.23 or 6.19.13 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
