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

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-28T11:22:05.855Z
- Modified: 2026-06-17T09:16:59.113Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 78b41148cfea2a3f04d87adf3a71b21735820a37; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 15a87206879951712915c03c8952a73d6a74721e; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 2798111f8e504ac747cce911226135d50b8de468; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 58bdd5160184645771553ea732da5c2887fc9bd1; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 783ea37b237a9b524f1e5ca018ea17d772ee0ea0; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 22b7897c289cc25d99c603f5144096142a30d897; from 87213d388e927aaa88b21d5ff7e1f75ca2288da1 before 3014168731b7930300aab656085af784edc861f6; 3.16 (not affected: before 3.16; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.147 up to 6.1.*; from 6.6.100 up to 6.6.*; from 6.12.40 up to 6.12.*; from 6.15.8 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 3.16 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.147; from 6.2 before 6.6.100; from 6.7 before 6.12.40; from 6.13 before 6.15.8; 6.16
- debian debian_linux: 11.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38497](https://www.cve.org/CVERecord?id=CVE-2025-38497), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38497](https://nvd.nist.gov/vuln/detail/CVE-2025-38497), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38497 · Whole record: https://cve.day/CVE-2025-38497.json · Rebuilt by cve.day 2026-11-25T22:59:01.812Z
