{
  "id": "CVE-2025-38497",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38497",
  "published_at": "2025-07-28T11:22:05.855Z",
  "title": "usb: gadget: configfs: Fix OOB read on empty string write",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: configfs: Fix OOB read on empty string write\n\nWhen writing an empty string to either 'qw_sign' or 'landingPage'\nsysfs attributes, the store functions attempt to access page[l - 1]\nbefore validating that the length 'l' is greater than zero.\n\nThis patch fixes the vulnerability by adding a check at the beginning\nof os_desc_qw_sign_store() and webusb_landingPage_store() to handle\nthe zero-length input case gracefully by returning immediately.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 78b41148cfea2a3f04d87adf3a71b21735820a37",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 15a87206879951712915c03c8952a73d6a74721e",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 2798111f8e504ac747cce911226135d50b8de468",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 58bdd5160184645771553ea732da5c2887fc9bd1",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 783ea37b237a9b524f1e5ca018ea17d772ee0ea0",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 22b7897c289cc25d99c603f5144096142a30d897",
          "\u003e= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \u003c 3014168731b7930300aab656085af784edc861f6"
        ],
        "fixed_in": [
          "78b41148cfea2a3f04d87adf3a71b21735820a37",
          "d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76",
          "15a87206879951712915c03c8952a73d6a74721e",
          "2798111f8e504ac747cce911226135d50b8de468",
          "58bdd5160184645771553ea732da5c2887fc9bd1",
          "783ea37b237a9b524f1e5ca018ea17d772ee0ea0",
          "22b7897c289cc25d99c603f5144096142a30d897",
          "3014168731b7930300aab656085af784edc861f6"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.16"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.147",
          "6.6.100",
          "6.12.40",
          "6.15.8",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 78b41148cfea2a3f04d87adf3a71b21735820a37 or d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76 or 15a87206879951712915c03c8952a73d6a74721e or 2798111f8e504ac747cce911226135d50b8de468 or 58bdd5160184645771553ea732da5c2887fc9bd1 or 783ea37b237a9b524f1e5ca018ea17d772ee0ea0 or 22b7897c289cc25d99c603f5144096142a30d897 or 3014168731b7930300aab656085af784edc861f6 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.147 or 6.6.100 or 6.12.40 or 6.15.8 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
