{"id":"CVE-2026-31720","published":"2026-05-01T14:14:22Z","modified":"2026-05-11T22:14:27Z","title":"usb: gadget: f_uac1_legacy: validate control request size","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->length bytes into a 4-byte stack\nvariable:\n\n  u32 data = 0;\n  memcpy(&data, req->buf, req->length);\n\nreq->length is derived from the host-controlled USB request path,\nwhich can lead to a stack out-of-bounds write.\n\nValidate req->actual 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00176,"percentile":0.04189,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/557d1d4e862eccd0b74cc377b66de3e1e8d49605","tags":[]},{"url":"https://git.kernel.org/stable/c/21b11e8581285c6f10ef43d05df349d445f24273","tags":[]},{"url":"https://git.kernel.org/stable/c/0d41772d98dcaf6c17e875b7d0ea0154ae1191ee","tags":[]},{"url":"https://git.kernel.org/stable/c/c6da4fed7537aec19880c24f6c3a95065adb1406","tags":[]},{"url":"https://git.kernel.org/stable/c/be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8","tags":[]},{"url":"https://git.kernel.org/stable/c/8e5eb1d6e6a3d7bbea9c92132d0cda5793176426","tags":[]},{"url":"https://git.kernel.org/stable/c/26304d124e7f0383f8fe1168b5801a0ac7e16b1c","tags":[]},{"url":"https://git.kernel.org/stable/c/6e0e34d85cd46ceb37d16054e97a373a32770f6c","tags":[]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":0.84},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-02","earliestUrl":"https://github.com/foxirain/linux-kernel-codex-harness","repos":[{"name":"foxirain/linux-kernel-codex-harness","url":"https://github.com/foxirain/linux-kernel-codex-harness","stars":0,"created":"2026-04-02"}]},"first":{"date":"2026-04-02","source":"PoC-in-GitHub","url":"https://github.com/foxirain/linux-kernel-codex-harness"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 557d1d4e862eccd0b74cc377b66de3e1e8d49605",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 21b11e8581285c6f10ef43d05df349d445f24273",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < c6da4fed7537aec19880c24f6c3a95065adb1406",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 26304d124e7f0383f8fe1168b5801a0ac7e16b1c",">= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 6e0e34d85cd46ceb37d16054e97a373a32770f6c"]},{"vendor":"Linux","product":"Linux","versions":["2.6.31"]}],"euvd":{"id":"EUVD-2026-26533","exploited":false,"provenance":"source"}}