Skip to content
Heist/ feed
High

usb: gadget: uac: validate rate list length before storing

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uac: validate rate list length before storing UAC1 and UAC2 configfs rate-list attributes parse a comma-separated list of sampling rates and store each parsed value in fixed-size arrays. The arrays have UAC_MAX_RATES entries, but the store paths do not check that the input contains at most that many tokens before writing through opts->name##s[i++]. Writing more than ten rates therefore writes past the end of the p_srates[] or c_srates[] array in struct f_uac1_opts or struct f_uac2_opts. With CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the UAC1 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac1.c:1669:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac1_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 The same reproducer against the UAC2 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac2.c:2087:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac2_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 Reject additional tokens once UAC_MAX_RATES entries have been parsed. Also keep the original kstrdup() pointer for kfree(), because strsep() advances the parsing cursor. Freeing the advanced cursor leaks the original buffer on successful parses and can free an interior pointer on some

Announced Source revision 1
Original source ↗

CVE-2026-93122

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-93122

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
        "lessThan": "72888d54bae3677ecd4ba9793b7fd27ba0b27862",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
        "lessThan": "0c2710a36b41bf8defba83c395b99eb1660e9e9a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
        "lessThan": "0203146ad450932c2d3132e367a99c49efe3122d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
        "lessThan": "3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
        "lessThan": "844d83d5964b87919b958ff48405188c6ddae9cc",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/usb/gadget/function/f_uac1.c",
      "drivers/usb/gadget/function/f_uac2.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.18"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.18",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.114",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.6",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/usb/gadget/function/f_uac1.c",
      "drivers/usb/gadget/function/f_uac2.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-93122

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#48713 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement