Vendors › Linux

CVE-2026-31412

N/A (no CVSS assigned) EPSS 0.2% Linux · drivers

Linux kernel: usb: gadget: f_mass_storage: Fix potential integer overflow in check_command_size_in_blocks()

A vulnerability in the Linux kernel drivers subsystem (drivers/usb/gadget/function/f_mass_storage.c), assigned CVE-2026-31412. The issue was introduced in kernel 3.3 and is fixed in 6.1.167, 6.6.130, 6.12.78, 6.18.19, 6.19.9, 7.0. Updating to a fixed stable release resolves it.

Published2026-04-10
Updated2026-05-12
AffectedLinux kernel 3.3 and later, before the fix (fixed in 6.1.167, 6.6.130, 6.12.78, 6.18.19, 6.19.9, 7.0)
FixUpdate to kernel 6.1.167, 6.6.130, 6.12.78, 6.18.19, 6.19.9, 7.0 or later
Vendor advisoryhttps://cve.org/CVERecord/?id=CVE-2026-31412

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-31412CWE-190OverflowOtherNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.