CVE-2025-38497

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

published July 28, 2025

CVSS
—
EPSS
0%
Percentile
6.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00173 · 6.4th percentile
Published
2025-07-28T11:22Z
EPSS history
Timeline
  • 28 JUL 11:22Z
    usb: gadget: configfs: Fix OOB read on empty string write
    cvelistv5