{"id":"CVE-2025-38497","aliases":["CVE-2025-38497"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: configfs: Fix OOB read on empty string write","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: gadget: configfs: Corrección de lectura OOB en escritura de cadena vacía. Al escribir una cadena vacía en los atributos sysfs 'qw_sign' o 'landingPage', las funciones de almacenamiento intentan acceder a page[l - 1] antes de validar que la longitud 'l' sea mayor que cero. Este parche corrige la vulnerabilidad añadiendo una comprobación al inicio de os_desc_qw_sign_store() y webusb_landingPage_store() para gestionar correctamente la entrada de longitud cero, retornando inmediatamente.","source":"nvd"}],"published":"2025-07-28T11:22:05.855Z","modified":"2026-06-17T09:16:59.113Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"78b41148cfea2a3f04d87adf3a71b21735820a37","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"15a87206879951712915c03c8952a73d6a74721e","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"2798111f8e504ac747cce911226135d50b8de468","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"58bdd5160184645771553ea732da5c2887fc9bd1","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"783ea37b237a9b524f1e5ca018ea17d772ee0ea0","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"22b7897c289cc25d99c603f5144096142a30d897","status":"affected"},{"type":"git","introduced":"87213d388e927aaa88b21d5ff7e1f75ca2288da1","fixed":"3014168731b7930300aab656085af784edc861f6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.147","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.100","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.40","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.8","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.147"},{"status":"affected","introduced":"6.2","fixed":"6.6.100"},{"status":"affected","introduced":"6.7","fixed":"6.12.40"},{"status":"affected","introduced":"6.13","fixed":"6.15.8"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/78b41148cfea2a3f04d87adf3a71b21735820a37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d68b7c8fefbaeae8f065b84e40cf64baf4cc0c76","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/15a87206879951712915c03c8952a73d6a74721e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2798111f8e504ac747cce911226135d50b8de468","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58bdd5160184645771553ea732da5c2887fc9bd1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/783ea37b237a9b524f1e5ca018ea17d772ee0ea0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22b7897c289cc25d99c603f5144096142a30d897","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3014168731b7930300aab656085af784edc861f6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38497","url":"https://www.cve.org/CVERecord?id=CVE-2025-38497","licence":"CVE Terms of Use","modified":"2026-05-11T21:29:09.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38497","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38497","licence":"Public domain","modified":"2026-06-17T09:16:59.113Z"}],"updatedAt":"2026-11-25T22:59:01.812Z","epss":{"score":0.0019,"percentile":0.09109,"date":"2026-12-01T12:00:22.000Z"}}