Bug 2535173 (CVE-2026-90023) - CVE-2026-90023 kernel: usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()
Summary: CVE-2026-90023 kernel: usb: gadget: f_mass_storage: fix null pointer derefere...
Keywords:
Status: NEW
Alias: CVE-2026-90023
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-16 11:07 UTC by OSIDB Bzimport
Modified: 2026-10-21 13:27 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-16 11:07:38 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()

Previously fsg_num_buffers_validate() was removed as it was not
necessary due to Kconfig setting the limits for n from 2 to 256 with
default as 2. However, setting the page content in such a way that
kstrtou8() reflects n value as either 0 or 1 bypasses these
restrictions leading to a null pointer dereference if n is 0. Fix
this by adding a check for n < 2 and returning -EINVAL if n is
either 0 or 1 consistent with Kconfig logic.


Note You need to log in before you can comment on or make changes to this bug.