VDB

CVE-2025-38497

CVE-2025-38497 PUBLISHED

usb: gadget: configfs: Fix OOB read on empty string write

Reported by linux · Published July 28, 2025

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: configfs: Fix OOB read on empty string write When writing an empty string to either 'qw_sign' or 'landingPage' sysfs attributes, the store functions attempt to access page[l - 1] before validating that the length 'l' is greater than zero. This patch fixes the vulnerability by adding a check at the beginning of os_desc_qw_sign_store() and webusb_landingPage_store() to handle the zero-length input case gracefully by returning immediately.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxd68b7c8fefbaeae8f065b84e40cf64baf4cc0c76, 78b41148cfea2a3f04d87adf3a71b21735820a37, 783ea37b237a9b524f1e5ca018ea17d772ee0ea0, 58bdd5160184645771553ea732da5c2887fc9bd1, 3014168731b7930300aab656085af784edc861f6, 3.16, 2798111f8e504ac747cce911226135d50b8de468, 22b7897c289cc25d99c603f5144096142a30d897

Affected products

VendorProductVersions
LinuxLinux87213d388e927aaa88b21d5ff7e1f75ca2288da1, 87213d388e927aaa88b21d5ff7e1f75ca2288da1, 87213d388e927aaa88b21d5ff7e1f75ca2288da1
LinuxLinux3.16, 0, 5.4.297
LinuxLinux5.15.190, 5.4.297, 5.10.241
linuxlinux_kernel3.16, 3.16, 3.16

Timeline

  • Jul 28, 2025 EPSS Score (30 in total, the first dated here)
  • Jul 28, 2025 CVE Published
  • Oct 12, 2025 PoC Published (12 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (157 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (203 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 7, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38497
vulnetix vdb fixes CVE-2025-38497

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38497/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›