CVE-2026-98771 (GCVE-0-2026-98771)
Vulnerability from cvelistv5
Published
2026-10-18 15:48
Modified
2026-10-30 12:39
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: storage: sierra_ms: reject short SWoC info transfers sierra_get_swoc_info() requests sizeof(struct swoc_info) (60) bytes from the device via usb_control_msg(), but its callers only treat a negative return value as failure. A device that answers the vendor-specific GetSwocInfo request with a short IN transfer is therefore accepted, leaving the tail of the freshly allocated (kmalloc(), non-zeroing) swoc_info buffer uninitialized. truinst_show() subsequently prints swocInfo->rev, swocInfo->LinuxSKU and swocInfo->LinuxVer from that buffer into the world-readable (0444) "truinst" sysfs attribute. An emulated/malicious USB device (VID 0x1199, PID 0x0fff) can exploit this to disclose up to 5 bytes of stale kernel heap memory (kmalloc-64) to unprivileged userspace, once per sysfs read, indefinitely. On kernels built without init_on_alloc this leaks recently freed heap contents. Only accept the transfer when the full structure was received. sierra_ms_init() already retries failed queries, so well-behaved devices are unaffected.
Impacted products
Vendor Product Version
Linux Linux Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Version: 32fe5e393455d87db4988af03915634304870fb4
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/storage/sierra_ms.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "353ca2623104a3baf5642c3ea31569df04ce4aaf",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "799810166646bcf9dc5a4e77bc4b0bdf6bc443f2",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "411da2ec8c62bfa39407e5a20d659b973b3cf311",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "4faaad69f18332246bbd4ca41718beb2a305bb72",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "c85e8331d298b8f1dee8fe63718e76435cec7133",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "e2d62928f2666a2964a23b1d39e6e762f0628d7b",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "db9d3be156baca6ef80ae5d93acfeb85c61a74dd",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            },
            {
              "lessThan": "8a0200d14acd9db388b85cd016e68a4e60d900ec",
              "status": "affected",
              "version": "32fe5e393455d87db4988af03915634304870fb4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/storage/sierra_ms.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.27"
            },
            {
              "lessThan": "2.6.27",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.273",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.224",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.191",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.56",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.273",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.224",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.191",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.160",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.113",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.56",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.10",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "2.6.27",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: storage: sierra_ms: reject short SWoC info transfers\n\nsierra_get_swoc_info() requests sizeof(struct swoc_info) (60) bytes\nfrom the device via usb_control_msg(), but its callers only treat a\nnegative return value as failure. A device that answers the\nvendor-specific GetSwocInfo request with a short IN transfer is\ntherefore accepted, leaving the tail of the freshly allocated\n(kmalloc(), non-zeroing) swoc_info buffer uninitialized.\n\ntruinst_show() subsequently prints swocInfo-\u003erev, swocInfo-\u003eLinuxSKU\nand swocInfo-\u003eLinuxVer from that buffer into the world-readable\n(0444) \"truinst\" sysfs attribute. An emulated/malicious USB device\n(VID 0x1199, PID 0x0fff) can exploit this to disclose up to 5 bytes\nof stale kernel heap memory (kmalloc-64) to unprivileged userspace,\nonce per sysfs read, indefinitely. On kernels built without\ninit_on_alloc this leaks recently freed heap contents.\n\nOnly accept the transfer when the full structure was received.\nsierra_ms_init() already retries failed queries, so well-behaved\ndevices are unaffected."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-30T12:39:39.761Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/353ca2623104a3baf5642c3ea31569df04ce4aaf"
        },
        {
          "url": "https://git.kernel.org/stable/c/799810166646bcf9dc5a4e77bc4b0bdf6bc443f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/411da2ec8c62bfa39407e5a20d659b973b3cf311"
        },
        {
          "url": "https://git.kernel.org/stable/c/4faaad69f18332246bbd4ca41718beb2a305bb72"
        },
        {
          "url": "https://git.kernel.org/stable/c/c85e8331d298b8f1dee8fe63718e76435cec7133"
        },
        {
          "url": "https://git.kernel.org/stable/c/e2d62928f2666a2964a23b1d39e6e762f0628d7b"
        },
        {
          "url": "https://git.kernel.org/stable/c/db9d3be156baca6ef80ae5d93acfeb85c61a74dd"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a0200d14acd9db388b85cd016e68a4e60d900ec"
        }
      ],
      "title": "usb: storage: sierra_ms: reject short SWoC info transfers",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98771",
    "datePublished": "2026-10-18T15:48:07.367Z",
    "dateReserved": "2026-09-25T10:25:14.369Z",
    "dateUpdated": "2026-10-30T12:39:39.761Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…