aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorXinyu Liu <[email protected]>2025-07-09 03:55:33 +0000
committerGreg Kroah-Hartman <[email protected]>2025-07-09 10:10:52 +0000
commit3014168731b7930300aab656085af784edc861f6 (patch)
tree7ade519ceade7a99e026a32d7d16ceda5c5ad16c /drivers/fpga/altera-fpga2sdram.c
parentusb: musb: fix gadget state on disconnect (diff)
downloadkernel-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 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions