diff options
| author | Xinyu Liu <[email protected]> | 2025-07-09 03:55:33 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-07-09 10:10:52 +0000 |
| commit | 3014168731b7930300aab656085af784edc861f6 (patch) | |
| tree | 7ade519ceade7a99e026a32d7d16ceda5c5ad16c /tools/perf/scripts/python/sched-migration.py | |
| parent | usb: musb: fix gadget state on disconnect (diff) | |
| download | kernel-3014168731b7930300aab656085af784edc861f6.tar.gz kernel-3014168731b7930300aab656085af784edc861f6.zip | |
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.
Signed-off-by: Xinyu Liu <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
