CVE-2025-38497

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

No CVSS score yet EPSS 0.19%

Published 28 Jul 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-38497

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38497 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.11% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 78b41148cfea2a3f04d87adf3a71b21735820a37
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 15a87206879951712915c03c8952a73d6a74721e
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 2798111f8e504ac747cce911226135d50b8de468
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 58bdd5160184645771553ea732da5c2887fc9bd1
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 783ea37b237a9b524f1e5ca018ea17d772ee0ea0
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 22b7897c289cc25d99c603f5144096142a30d897
affected from 87213d388e927aaa88b21d5ff7e1f75ca2288da1, before 3014168731b7930300aab656085af784edc861f6
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.147 up to and including 6.1.*
unaffected from 6.6.100 up to and including 6.6.*
unaffected from 6.12.40 up to and including 6.12.*
unaffected from 6.15.8 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38497 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38497

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38497
trivy image --scanners vuln IMAGE | grep CVE-2025-38497

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38497 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.