# CVE-2025-38497: usb: gadget: configfs: Fix OOB read on empty string write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 15, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-07-28T11:22:05.855Z
- **Modified:** 2026-06-17T09:16:59.113Z

## 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

## 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

- Linux: \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 78b41148cfea2a3f04d87adf3a71b21735820a37; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 15a87206879951712915c03c8952a73d6a74721e; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 2798111f8e504ac747cce911226135d50b8de468; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 58bdd5160184645771553ea732da5c2887fc9bd1; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 22b7897c289cc25d99c603f5144096142a30d897; \>= 87213d388e927aaa88b21d5ff7e1f75ca2288da1, \< 3014168731b7930300aab656085af784edc861f6 (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- Upgrade Linux to 3014168731b7930300aab656085af784edc861f6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/78b41148cfea2a3f04d87adf3a71b21735820a37>
- patch: <https://git.kernel.org/stable/c/d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76>
- patch: <https://git.kernel.org/stable/c/15a87206879951712915c03c8952a73d6a74721e>
- patch: <https://git.kernel.org/stable/c/2798111f8e504ac747cce911226135d50b8de468>
- patch: <https://git.kernel.org/stable/c/58bdd5160184645771553ea732da5c2887fc9bd1>
- patch: <https://git.kernel.org/stable/c/783ea37b237a9b524f1e5ca018ea17d772ee0ea0>
- patch: <https://git.kernel.org/stable/c/22b7897c289cc25d99c603f5144096142a30d897>
- patch: <https://git.kernel.org/stable/c/3014168731b7930300aab656085af784edc861f6>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38497>

HTML: <https://flawdb.com/CVE-2025-38497> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38497>
