{
  "id": "CVE-2026-31720",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31720",
  "published_at": "2026-05-01T14:14:22.832Z",
  "title": "usb: gadget: f_uac1_legacy: validate control request size",
  "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": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_uac1_legacy: validate control request size\n\nf_audio_complete() copies req-\u003elength bytes into a 4-byte stack\nvariable:\n\n  u32 data = 0;\n  memcpy(\u0026data, req-\u003ebuf, req-\u003elength);\n\nreq-\u003elength is derived from the host-controlled USB request path,\nwhich can lead to a stack out-of-bounds write.\n\nValidate req-\u003eactual against the expected payload size for the\nsupported control selectors and decode only the expected amount\nof data.\n\nThis avoids copying a host-influenced length into a fixed-size\nstack object.",
  "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [
    {
      "repo": "foxirain/linux-kernel-codex-harness",
      "url": "https://github.com/foxirain/linux-kernel-codex-harness",
      "created_at": "2026-04-02T16:08:03Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-11-17T06:00:15Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 557d1d4e862eccd0b74cc377b66de3e1e8d49605",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 21b11e8581285c6f10ef43d05df349d445f24273",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c c6da4fed7537aec19880c24f6c3a95065adb1406",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 26304d124e7f0383f8fe1168b5801a0ac7e16b1c",
          "\u003e= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \u003c 6e0e34d85cd46ceb37d16054e97a373a32770f6c"
        ],
        "fixed_in": [
          "557d1d4e862eccd0b74cc377b66de3e1e8d49605",
          "21b11e8581285c6f10ef43d05df349d445f24273",
          "0d41772d98dcaf6c17e875b7d0ea0154ae1191ee",
          "c6da4fed7537aec19880c24f6c3a95065adb1406",
          "be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8",
          "8e5eb1d6e6a3d7bbea9c92132d0cda5793176426",
          "26304d124e7f0383f8fe1168b5801a0ac7e16b1c",
          "6e0e34d85cd46ceb37d16054e97a373a32770f6c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.31"
        ],
        "fixed_in": [
          "0",
          "5.10.253",
          "5.15.203",
          "6.1.168",
          "6.6.134",
          "6.12.81",
          "6.18.22",
          "6.19.12",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 557d1d4e862eccd0b74cc377b66de3e1e8d49605 or 21b11e8581285c6f10ef43d05df349d445f24273 or 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee or c6da4fed7537aec19880c24f6c3a95065adb1406 or be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8 or 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426 or 26304d124e7f0383f8fe1168b5801a0ac7e16b1c or 6e0e34d85cd46ceb37d16054e97a373a32770f6c or later.",
      "Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.168 or 6.6.134 or 6.12.81 or 6.18.22 or 6.19.12 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
