← Back to CVE Explorer

CVE-2026-93120

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: configfs: fix out-of-bounds read of qw_sign os_desc_qw_sign_show() passes OS_STRING_QW_SIGN_LEN as the input length to utf16s_to_utf8s(), but that argument counts UTF-16 code units while OS_STRING_QW_SIGN_LEN (14) is the byte size of qw_sign[]. The array holds only OS_STRING_QW_SIGN_LEN / 2 (7) code units, so the conversion reads up to 7 units (14 bytes) past the end of qw_sign[] into the following members of struct gadget_info when the stored signature fills the array without a NUL terminator, exposing those bytes through the configfs attribute. The store path halves the count for its input bound but passes the full byte count as the utf8s_to_utf16s() output limit; use the destination code-unit count in both directions.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-17 17:18:06.667000
Last modified
2026-10-19 10:17:01.980000
View original CVE JSON
{
  "id": "CVE-2026-93120",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-17T17:18:06.667",
  "lastModified": "2026-10-19T10:17:01.980",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: configfs: fix out-of-bounds read of qw_sign\n\nos_desc_qw_sign_show() passes OS_STRING_QW_SIGN_LEN as the input\nlength to utf16s_to_utf8s(), but that argument counts UTF-16 code\nunits while OS_STRING_QW_SIGN_LEN (14) is the byte size of qw_sign[].\nThe array holds only OS_STRING_QW_SIGN_LEN / 2 (7) code units, so the\nconversion reads up to 7 units (14 bytes) past the end of qw_sign[]\ninto the following members of struct gadget_info when the stored\nsignature fills the array without a NUL terminator, exposing those\nbytes through the configfs attribute.\n\nThe store path halves the count for its input bound but passes the\nfull byte count as the utf8s_to_utf16s() output limit; use the\ndestination code-unit count in both directions."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/usb/gadget/configfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "b895dbed8ac9e12a5ffa1a2165575a8469f8340d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "9b45125501aad2dff7730970461b455b0e0658ee",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "f6da500b0f8106882598b6dec87fe37d653946cf",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "a28c486434634f6d1e120711d2b09f3eddea6c98",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "7e94cb967778e074411940db4db97f22ed77560c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "afbf39c0f2297c6abef6d670a82a2079b0836191",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "36315a330e067f7773196940552feacb1debbef1",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "76180d716f91f035d9c8639497cf5459b44e1a51",
              "lessThan": "f63edb54d8f738f9c21e2068c777ae1c097df6b7",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/usb/gadget/configfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "4.13",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "4.13",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.270",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.221",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.188",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.157",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.110",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.52",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.6",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/36315a330e067f7773196940552feacb1debbef1",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7e94cb967778e074411940db4db97f22ed77560c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/9b45125501aad2dff7730970461b455b0e0658ee",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/a28c486434634f6d1e120711d2b09f3eddea6c98",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/afbf39c0f2297c6abef6d670a82a2079b0836191",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b895dbed8ac9e12a5ffa1a2165575a8469f8340d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f63edb54d8f738f9c21e2068c777ae1c097df6b7",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f6da500b0f8106882598b6dec87fe37d653946cf",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}