CVE-2026-90023

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

N/A
Published: September 16, 2026 at 10:33 AM UTC
Updated: October 21, 2026 at 01:20 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.8fe5a6c48fd954489f51aab151d5dad9254c76419
Vendor states this is fixed in 2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc (fixed)
Vendor states this is fixed in 51cc9af4f2d3f0b765266aced66b9b532b423b13 (fixed)
Vendor states this is fixed in 9e8dd2a7a8ccbb756771ad985b0ad3387ed3c957 (fixed)
Vendor states this is fixed in b9b5b5df5b8dd3c1572ed267200276a44cc67d8e (fixed)
Vendor states this is fixed in 4.8 (unaffected)
Vendor states this is fixed in 6.12.112 (unaffected)
Vendor states this is fixed in 6.18.52 (unaffected)
Vendor states this is fixed in 6.6.160 (unaffected)
Vendor states this is fixed in 7.2.5 (unaffected)
Vendor states this is fixed in 7.3 (unaffected)
Vendor states this is fixed in 7.3-rc2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card