{"id":"CVE-2025-38497","summary":"usb: gadget: configfs: Fix OOB read on empty string write","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: configfs: Fix OOB read on empty string write\n\nWhen writing an empty string to either 'qw_sign' or 'landingPage'\nsysfs attributes, the store functions attempt to access page[l - 1]\nbefore validating that the length 'l' is greater than zero.\n\nThis patch fixes the vulnerability by adding a check at the beginning\nof os_desc_qw_sign_store() and webusb_landingPage_store() to handle\nthe zero-length input case gracefully by returning immediately.","modified":"2026-04-16T00:01:20.114033156Z","published":"2025-07-28T11:22:05.855Z","related":["SUSE-SU-2025:02848-1","SUSE-SU-2025:02849-1","SUSE-SU-2025:02850-1","SUSE-SU-2025:02851-1","SUSE-SU-2025:02852-1","SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:03344-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38497.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/15a87206879951712915c03c8952a73d6a74721e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/22b7897c289cc25d99c603f5144096142a30d897"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2798111f8e504ac747cce911226135d50b8de468"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3014168731b7930300aab656085af784edc861f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/58bdd5160184645771553ea732da5c2887fc9bd1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/783ea37b237a9b524f1e5ca018ea17d772ee0ea0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/78b41148cfea2a3f04d87adf3a71b21735820a37"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38497.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38497"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1"},{"fixed":"78b41148cfea2a3f04d87adf3a71b21735820a37"},{"fixed":"d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76"},{"fixed":"15a87206879951712915c03c8952a73d6a74721e"},{"fixed":"2798111f8e504ac747cce911226135d50b8de468"},{"fixed":"58bdd5160184645771553ea732da5c2887fc9bd1"},{"fixed":"783ea37b237a9b524f1e5ca018ea17d772ee0ea0"},{"fixed":"22b7897c289cc25d99c603f5144096142a30d897"},{"fixed":"3014168731b7930300aab656085af784edc861f6"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38497.json"}}],"schema_version":"1.7.5"}