{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31720","id":"CVE-2026-31720","title":"usb: gadget: f_uac1_legacy: validate control request size","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->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 again","descriptionLong":"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.","published":"2026-05-01T14:14:22.832Z","updated":"2026-11-13T02:31:01.818646439Z","reserved":"2026-03-09T15:48:24.134Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"557d1d4e862eccd0b74cc377b66de3e1e8d49605","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"21b11e8581285c6f10ef43d05df349d445f24273","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"0d41772d98dcaf6c17e875b7d0ea0154ae1191ee","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"c6da4fed7537aec19880c24f6c3a95065adb1406","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"8e5eb1d6e6a3d7bbea9c92132d0cda5793176426","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"26304d124e7f0383f8fe1168b5801a0ac7e16b1c","status":"affected","versionType":"git"},{"version":"c6994e6f067cf0fc4c6cca3d164018b1150916f8","lessThan":"6e0e34d85cd46ceb37d16054e97a373a32770f6c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","lessThan":"2.6.31","status":"unaffected","versionType":"semver"},{"version":"5.10.253","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.203","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.168","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.134","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.81","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.22","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.12","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/557d1d4e862eccd0b74cc377b66de3e1e8d49605","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/21b11e8581285c6f10ef43d05df349d445f24273","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0d41772d98dcaf6c17e875b7d0ea0154ae1191ee","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c6da4fed7537aec19880c24f6c3a95065adb1406","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8e5eb1d6e6a3d7bbea9c92132d0cda5793176426","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/26304d124e7f0383f8fe1168b5801a0ac7e16b1c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6e0e34d85cd46ceb37d16054e97a373a32770f6c","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31720.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31720","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00129,"epssPercentile":0.02646,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31720","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31720","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31720","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31720","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}