CVEvulnerability

CVE-2025-38497

7.1 HIGH Published 2025-07-28 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2025-07-28
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

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 configurations

• linux linux kernel (>= 3.16 < 5.4.297) • linux linux kernel (>= 5.5 < 5.10.241) • linux linux kernel (>= 5.11 < 5.15.190) • linux linux kernel (>= 5.16 < 6.1.147) • linux linux kernel (>= 6.2 < 6.6.100) • linux linux kernel (>= 6.7 < 6.12.40) • linux linux kernel (>= 6.13 < 6.15.8) • linux linux kernel 6.16 • debian debian linux 11.0

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References