{"id":"CVE-2026-90023","aliases":["CVE-2026-90023"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()\n\nPreviously fsg_num_buffers_validate() was removed as it was not\nnecessary due to Kconfig setting the limits for n from 2 to 256 with\ndefault as 2. However, setting the page content in such a way that\nkstrtou8() reflects n value as either 0 or 1 bypasses these\nrestrictions leading to a null pointer dereference if n is 0. Fix\nthis by adding a check for n < 2 and returning -EINVAL if n is\neither 0 or 1 consistent with Kconfig logic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers()\n\nPreviously fsg_num_buffers_validate() was removed as it was not\nnecessary due to Kconfig setting the limits for n from 2 to 256 with\ndefault as 2. However, setting the page content in such a way that\nkstrtou8() reflects n value as either 0 or 1 bypasses these\nrestrictions leading to a null pointer dereference if n is 0. Fix\nthis by adding a check for n < 2 and returning -EINVAL if n is\neither 0 or 1 consistent with Kconfig logic.","source":"cvelist"}],"published":"2026-09-16T10:33:26.905Z","modified":"2026-10-30T13:20:39.143Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"38edd187a37db0d8e4bf84cc954dbdbe7bfa366f","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"e54820b9dc1d6d731ecc3e51462445dc952906a7","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"5d56dbaeb81d5cd967cdee8ddcc70814b7139246","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"f4f0fe3ab47ed57ee4974fdd3e9dccb7839a7ebf","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"51cc9af4f2d3f0b765266aced66b9b532b423b13","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"9e8dd2a7a8ccbb756771ad985b0ad3387ed3c957","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"b9b5b5df5b8dd3c1572ed267200276a44cc67d8e","status":"affected"},{"type":"git","introduced":"fe5a6c48fd954489f51aab151d5dad9254c76419","fixed":"2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/38edd187a37db0d8e4bf84cc954dbdbe7bfa366f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e54820b9dc1d6d731ecc3e51462445dc952906a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d56dbaeb81d5cd967cdee8ddcc70814b7139246","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4f0fe3ab47ed57ee4974fdd3e9dccb7839a7ebf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51cc9af4f2d3f0b765266aced66b9b532b423b13","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e8dd2a7a8ccbb756771ad985b0ad3387ed3c957","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9b5b5df5b8dd3c1572ed267200276a44cc67d8e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90023","url":"https://www.cve.org/CVERecord?id=CVE-2026-90023","licence":"CVE Terms of Use","modified":"2026-10-30T12:33:51.550Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90023","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90023","licence":"Public domain","modified":"2026-10-30T13:20:39.143Z"}],"updatedAt":"2026-11-25T22:59:39.017Z","epss":{"score":0.00244,"percentile":0.16709,"date":"2026-12-01T12:00:22.000Z"}}