CVE Database›Document archive›CVE-2026-31412

CVE-2026-31412

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

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · April 10, 2026

Updated · June 28, 2026

Description

A flaw was found in the Linux kernel's USB mass storage gadget module (usb-gadget-f_mass_storage). A remote attacker, acting as a malicious USB host, could send a specially crafted SCSI READ or WRITE command. This action could trigger an integer overflow during data size calculation, leading to an incorrect size. This issue may bypass boundary checks, potentially resulting in memory corruption or out-of-bounds memory access.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE-1335 · Incorrect Bitwise Shift of Integer