Bug 2383919 (CVE-2025-38497) - CVE-2025-38497 kernel: usb: gadget: configfs: Fix OOB read on empty string write
Summary: CVE-2025-38497 kernel: usb: gadget: configfs: Fix OOB read on empty string write
Keywords:
Status: NEW
Alias: CVE-2025-38497
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-28 12:03 UTC by OSIDB Bzimport
Modified: 2025-07-28 13:29 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-28 12:03:17 UTC
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.

Comment 1 Avinash Hanwate 2025-07-28 13:11:22 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025072818-CVE-2025-38497-b5c7@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.