{"api_version":"1","generated_at":"2026-09-18T01:20:10+00:00","cve":"CVE-2026-93122","urls":{"html":"https://cve.report/CVE-2026-93122","api":"https://cve.report/api/cve/CVE-2026-93122.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-93122","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-93122"},"summary":{"title":"usb: gadget: uac: validate rate list length before storing","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uac: validate rate list length before storing\n\nUAC1 and UAC2 configfs rate-list attributes parse a comma-separated\nlist of sampling rates and store each parsed value in fixed-size arrays.\nThe arrays have UAC_MAX_RATES entries, but the store paths do not check\nthat the input contains at most that many tokens before writing through\nopts->name##s[i++].\n\nWriting more than ten rates therefore writes past the end of the\np_srates[] or c_srates[] array in struct f_uac1_opts or struct\nf_uac2_opts.\n\nWith CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the\nUAC1 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac1.c:1669:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac1_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nThe same reproducer against the UAC2 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac2.c:2087:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac2_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nReject additional tokens once UAC_MAX_RATES entries have been parsed.\nAlso keep the original kstrdup() pointer for kfree(), because strsep()\nadvances the parsing cursor. Freeing the advanced cursor leaks the\noriginal buffer on successful parses and can free an interior pointer on\nsome error paths.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-17 17:18:06","updated_at":"2026-09-17 17:18:06"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb","name":"https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc","name":"https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-93122","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93122","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7339e4f5788bd088bb0be1f96a6cce459676ed0 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7339e4f5788bd088bb0be1f96a6cce459676ed0 844d83d5964b87919b958ff48405188c6ddae9cc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.6 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/usb/gadget/function/f_uac1.c","drivers/usb/gadget/function/f_uac2.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb","status":"affected","version":"a7339e4f5788bd088bb0be1f96a6cce459676ed0","versionType":"git"},{"lessThan":"844d83d5964b87919b958ff48405188c6ddae9cc","status":"affected","version":"a7339e4f5788bd088bb0be1f96a6cce459676ed0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/usb/gadget/function/f_uac1.c","drivers/usb/gadget/function/f_uac2.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.18"},{"lessThan":"5.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.6","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"5.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uac: validate rate list length before storing\n\nUAC1 and UAC2 configfs rate-list attributes parse a comma-separated\nlist of sampling rates and store each parsed value in fixed-size arrays.\nThe arrays have UAC_MAX_RATES entries, but the store paths do not check\nthat the input contains at most that many tokens before writing through\nopts->name##s[i++].\n\nWriting more than ten rates therefore writes past the end of the\np_srates[] or c_srates[] array in struct f_uac1_opts or struct\nf_uac2_opts.\n\nWith CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the\nUAC1 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac1.c:1669:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac1_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nThe same reproducer against the UAC2 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac2.c:2087:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac2_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nReject additional tokens once UAC_MAX_RATES entries have been parsed.\nAlso keep the original kstrdup() pointer for kfree(), because strsep()\nadvances the parsing cursor. Freeing the advanced cursor leaks the\noriginal buffer on successful parses and can free an interior pointer on\nsome error paths."}],"providerMetadata":{"dateUpdated":"2026-09-17T16:11:27.890Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb"},{"url":"https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc"}],"title":"usb: gadget: uac: validate rate list length before storing","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-93122","datePublished":"2026-09-17T16:11:27.890Z","dateReserved":"2026-09-17T16:02:15.086Z","dateUpdated":"2026-09-17T16:11:27.890Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-17 17:18:06","lastModifiedDate":"2026-09-17 17:18:06","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"93122","Ordinal":"1","Title":"usb: gadget: uac: validate rate list length before storing","CVE":"CVE-2026-93122","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"93122","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uac: validate rate list length before storing\n\nUAC1 and UAC2 configfs rate-list attributes parse a comma-separated\nlist of sampling rates and store each parsed value in fixed-size arrays.\nThe arrays have UAC_MAX_RATES entries, but the store paths do not check\nthat the input contains at most that many tokens before writing through\nopts->name##s[i++].\n\nWriting more than ten rates therefore writes past the end of the\np_srates[] or c_srates[] array in struct f_uac1_opts or struct\nf_uac2_opts.\n\nWith CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the\nUAC1 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac1.c:1669:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac1_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nThe same reproducer against the UAC2 p_srate attribute reports:\n\n  UBSAN: array-index-out-of-bounds\n  drivers/usb/gadget/function/f_uac2.c:2087:1\n  index 10 is out of range for type 'int [10]'\n  __ubsan_handle_out_of_bounds.cold\n  f_uac2_opts_p_srate_store\n  configfs_write_iter\n  vfs_write\n  ksys_write\n  do_syscall_64\n\nReject additional tokens once UAC_MAX_RATES entries have been parsed.\nAlso keep the original kstrdup() pointer for kfree(), because strsep()\nadvances the parsing cursor. Freeing the advanced cursor leaks the\noriginal buffer on successful parses and can free an interior pointer on\nsome error paths.","Type":"Description","Title":"usb: gadget: uac: validate rate list length before storing"}]}}}