CVE-2026-93120

usb: gadget: configfs: fix out-of-bounds read of qw_sign

State
Published
Severity
Not scored
Published
Sep 17, 2026
Updated
Oct 19, 2026
Reserved
Sep 17, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: configfs: fix out-of-bounds read of qw_sign

os_desc_qw_sign_show() passes OS_STRING_QW_SIGN_LEN as the input length to utf16s_to_utf8s(), but that argument counts UTF-16 code units while OS_STRING_QW_SIGN_LEN (14) is the byte size of qw_sign[]. The array holds only OS_STRING_QW_SIGN_LEN / 2 (7) code units, so the conversion reads up to 7 units (14 bytes) past the end of qw_sign[] into the following members of struct gadget_info when the stored signature fills the array without a NUL terminator, exposing those bytes through the configfs attribute.

The store path halves the count for its input bound but passes the full byte count as the utf8s_to_utf16s() output limit; use the destination code-unit count in both directions.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before b895dbed8ac9e12a5ffa1a2165575a8469f8340dAffected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before 9b45125501aad2dff7730970461b455b0e0658eeAffected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before f6da500b0f8106882598b6dec87fe37d653946cfAffected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before a28c486434634f6d1e120711d2b09f3eddea6c98Affected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before 7e94cb967778e074411940db4db97f22ed77560cAffected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before afbf39c0f2297c6abef6d670a82a2079b0836191Affected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before 36315a330e067f7773196940552feacb1debbef1Affected
  • 76180d716f91f035d9c8639497cf5459b44e1a51 to before f63edb54d8f738f9c21e2068c777ae1c097df6b7Affected
LinuxLinux
  • 4.13Affected
  • before 4.13Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.52 through 6.18.*Not affected
  • 7.2.6 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.