PoC Monitor
← All CVEs
CVE-2025-38497published 28 Jul 2025 11:22 UTCData: JSON · API

Linux

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

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by NVD · CWE-125
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 2798111f8e504ac747cce911226135d50b8de468
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 58bdd5160184645771553ea732da5c2887fc9bd1
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 783ea37b237a9b524f1e5ca018ea17d772ee0ea0
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 22b7897c289cc25d99c603f5144096142a30d897
  • >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 3014168731b7930300aab656085af784edc861f6

Fixed in 78b41148cfea2a3f04d87adf3a71b21735820a37, d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76, 15a87206879951712915c03c8952a73d6a74721e, 2798111f8e504ac747cce911226135d50b8de468, 58bdd5160184645771553ea732da5c2887fc9bd1, 783ea37b237a9b524f1e5ca018ea17d772ee0ea0, 22b7897c289cc25d99c603f5144096142a30d897, 3014168731b7930300aab656085af784edc861f6

Linux Linux
  • 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

Mitigation

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.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published28 Jul 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.