CVE-2025-38497
usb: gadget: configfs: Fix OOB read on empty string write
Mitigation
- Upgrade Linux to 3014168731b7930300aab656085af784edc861f6 or later.
Who should check
- Anyone running Linux >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 2798111f8e504ac747cce911226135d50b8de468; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 58bdd5160184645771553ea732da5c2887fc9bd1; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 22b7897c289cc25d99c603f5144096142a30d897; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 3014168731b7930300aab656085af784edc861f6
- Anyone running Linux 3.16
Vulnerability facts
- Affected
- Linux >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 2798111f8e504ac747cce911226135d50b8de468; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 58bdd5160184645771553ea732da5c2887fc9bd1; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 22b7897c289cc25d99c603f5144096142a30d897; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 3014168731b7930300aab656085af784edc861f6; Linux 3.16
- Fixed in
- Linux 78b41148cfea2a3f04d87adf3a71b21735820a37, Linux 15a87206879951712915c03c8952a73d6a74721e, Linux 2798111f8e504ac747cce911226135d50b8de468, Linux 58bdd5160184645771553ea732da5c2887fc9bd1, Linux 783ea37b237a9b524f1e5ca018ea17d772ee0ea0, Linux 22b7897c289cc25d99c603f5144096142a30d897, Linux 3014168731b7930300aab656085af784edc861f6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-125
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 2798111f8e504ac747cce911226135d50b8de468; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 58bdd5160184645771553ea732da5c2887fc9bd1; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 22b7897c289cc25d99c603f5144096142a30d897; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 3014168731b7930300aab656085af784edc861f6 | — | cvelist |
| Linux | 3.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38497. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38497.md Affected: Linux >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e; >= 87213d388e927aaa88b21d5… Fixed in: Linux 78b41148cfea2a3f04d87adf3a71b21735820a37, Linux 15a87206879951712915c03c8952a73d6a74721e, Linux 2798111f8e504ac747cce911226135d50b8de468, Linux 58bdd5160184645771553ea732da5c2887fc9bd1, Linux 783ea37b237a9b524f1e5ca018ea17d772ee0ea0, Linux 22b7897c289cc25d99c603f5144096142a30d897, Linux 30141… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/78b41148cfea2a3f04d87adf3a71b21735820a37
- https://git.kernel.org/stable/c/d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76
- https://git.kernel.org/stable/c/15a87206879951712915c03c8952a73d6a74721e
- https://git.kernel.org/stable/c/2798111f8e504ac747cce911226135d50b8de468
- https://git.kernel.org/stable/c/58bdd5160184645771553ea732da5c2887fc9bd1
- https://git.kernel.org/stable/c/783ea37b237a9b524f1e5ca018ea17d772ee0ea0
- https://git.kernel.org/stable/c/22b7897c289cc25d99c603f5144096142a30d897
- https://git.kernel.org/stable/c/3014168731b7930300aab656085af784edc861f6
FAQ
Is CVE-2025-38497 being exploited?
There is no confirmed exploitation: CVE-2025-38497 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38497?
High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38497?
Linux >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 78b41148cfea2a3f04d87adf3a71b21735820a37; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 15a87206879951712915c03c8952a73d6a74721e; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 2798111f8e504ac747cce911226135d50b8de468; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 58bdd5160184645771553ea732da5c2887fc9bd1; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 22b7897c289cc25d99c603f5144096142a30d897; >= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, < 3014168731b7930300aab656085af784edc861f6; Linux 3.16.
Is there a fix for CVE-2025-38497?
Yes. Fixed in Linux 78b41148cfea2a3f04d87adf3a71b21735820a37, Linux 15a87206879951712915c03c8952a73d6a74721e, Linux 2798111f8e504ac747cce911226135d50b8de468, Linux 58bdd5160184645771553ea732da5c2887fc9bd1, Linux 783ea37b237a9b524f1e5ca018ea17d772ee0ea0, Linux 22b7897c289cc25d99c603f5144096142a30d897, Linux 3014168731b7930300aab656085af784edc861f6. Upgrade Linux to 3014168731b7930300aab656085af784edc861f6 or later.
How do I check if I'm affected by CVE-2025-38497?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.