CVE-2026-93122 (GCVE-0-2026-93122)

Vulnerability from cvelistv5 – Published: 2026-09-17 16:11 – Updated: 2026-09-18 17:56
VLAI
Title
usb: gadget: uac: validate rate list length before storing
Summary
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 error paths.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a7339e4f5788bd088bb0be1f96a6cce459676ed0 , < 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb (git)
Affected: a7339e4f5788bd088bb0be1f96a6cce459676ed0 , < 844d83d5964b87919b958ff48405188c6ddae9cc (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.18
Unaffected: 0 , < 5.18 (semver)
Unaffected: 7.2.6 , ≤ 7.2.* (semver)
Unaffected: 7.3-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "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-\u003ename##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 \u0027int [10]\u0027\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 \u0027int [10]\u0027\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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The malformed comma-separated rates enter via write(2)\u2192configfs_write_iter()\u2192f_uac1_opts_p_srate_store/f_uac1_opts_c_srate_store (and the UAC2 twins) on /sys/kernel/config/usb_gadget/\u003cg\u003e/functions/uac{1,2}.*/{p,c}_srate; USB SETUP/iso packets never supply that page.\nAC:L - A fresh function_make() uac1/uac2 instance has opts-\u003erefcnt==0, so one write of eleven or more kstrtou32 tokens (up to configfs SIMPLE_ATTR_SIZE-1 bytes) stores through opts-\u003ep_srates[i++]/c_srates[i++] past UAC_MAX_RATES with no race or victim state.\nPR:L - f_uac1_opts_p_srate_store and f_uac2_opts_p_srate_store (and the c_srate stores) do no capable() check; CONFIGFS_ATTR is S_IWUSR, and Android/embedded USB gadget HALs routinely chown /sys/kernel/config/usb_gadget to a non-root system or HAL daemon.\nUI:N - The attacker mkdir\u0027s the uac1/uac2 function instance and writes the oversized p_srate or c_srate list themselves; no other user must plug a cable, mount a volume, or open a file.\nS:U - The store overwrites the kmalloc\u0027d struct f_uac1_opts/f_uac2_opts and neighbouring host-kernel slab in the same OS authority; it is not a VM escape, IOMMU/DMA bypass, or sandbox breakout.\nC:H - Each extra token is an attacker-chosen u32 written past p_srates[9]/c_srates[9] into the rest of the kzalloc\u0027d opts object and adjacent slab; that heap overflow is groomable into a kernel-memory disclosure primitive.\nI:H - f_uac1_opts_p_srate_store writes attacker-controlled ints past p_srates[] over p_ssize, the 126-byte name arrays, refcnt, and opts-\u003elock, then mutex_unlock()s the corrupted mutex \u2014 an arbitrary-write and control-flow hijack primitive.\nA:H - The commit\u0027s UBSAN report is array-index-out-of-bounds at f_uac1_opts_p_srate_store/f_uac2_opts_p_srate_store index 10 of int[10]; without UBSAN the same store corrupts opts-\u003elock and adjacent slab and oopses or panics."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-18T17:56:04.397Z",
        "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-18T17:56:04.397Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-93122",
      "date": "2026-09-25",
      "epss": "0.00165",
      "percentile": "0.05077"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\u003ename##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 \u0027int [10]\u0027\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 \u0027int [10]\u0027\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."
          }
        ],
        "id": "CVE-2026-93122",
        "lastModified": "2026-09-18T18:18:21.737",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-09-17T17:18:06.917",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-19T01:37:23Z",
      "cve": "CVE-2026-93122",
      "id": "CVE-2026-93122",
      "initial_release_date": "2026-09-19T01:37:23Z",
      "product_status:known_affected": "30",
      "product_status:known_not_affected": "317",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-93122",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-93122.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…