CVE-2025-38497

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

State
Published
Severity
Not scored
Published
Jul 28, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 78b41148cfea2a3f04d87adf3a71b21735820a37Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 15a87206879951712915c03c8952a73d6a74721eAffected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 2798111f8e504ac747cce911226135d50b8de468Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 58bdd5160184645771553ea732da5c2887fc9bd1Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 783ea37b237a9b524f1e5ca018ea17d772ee0ea0Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 22b7897c289cc25d99c603f5144096142a30d897Affected
  • 87213d388e927aaa88b21d5ff7e1f75ca2288da1 to before 3014168731b7930300aab656085af784edc861f6Affected
LinuxLinux
  • 3.16Affected
  • before 3.16Not affected
  • 5.4.297 through 5.4.*Not affected
  • 5.10.241 through 5.10.*Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.147 through 6.1.*Not affected
  • 6.6.100 through 6.6.*Not affected
  • 6.12.40 through 6.12.*Not affected
  • 6.15.8 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.