CVE-2026-31412
linux linux kernel
Patch priority
RegularFix with the next regular update.
- CVSS
- 5.5
- Severity
- 5.5
- EPSS
- 0.2 %
- Percentile
- 7
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Everyone who uses Linux-Kernel.
How dangerous is it?
- An attacker already needs access to the device (or gets you to open a file).
- The attacker must already be logged in – this lowers the risk.
What to do?
- Include it in your next regular update.
- Install your distribution’s kernel update and reboot – the new kernel only runs after a restart.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDIn the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_mass_storage: Fix potential integer overflow in check_command_size_in_blocks() The `check_command_size_in_blocks()` function calculates the data size in bytes by left shifting `common->data_size_from_cmnd` by the block size (`common->curlun->blkbits`). However, it does not validate whether this shift operation will cause an integer overflow. Initially, the block size is set up in `fsg_lun_open()` , and the `common->data_size_from_cmnd` is set up in `do_scsi_command()`. During initialization, there is no integer overflow check for the interaction between two variables. So if a malicious USB host sends a SCSI READ or WRITE command requesting a large amount of data (`common->data_size_from_cmnd`), the left shift operation can wrap around. This results in a truncated data size, which can bypass boundary checks and potentially lead to memory corruption or out-of-bounds accesses. Fix this by using the check_shl_overflow() macro to safely perform the shift and catch any overflows.
- Vendor / product
- linux linux kernel
- Published
- 10.04.2026
- Modified
- 17.06.2026
- CWE
- CWE-190
- Status
- Analyzed
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Vendor updates
27- Ubuntu: USN-8665-1 – Linux kernel (Raspberry Pi) vulnerabilities 21.08.2026 · Critical · Patch day
- Ubuntu: USN-8619-1 – Linux kernel (HWE) vulnerabilities 28.07.2026 · Critical · Patch day
- Ubuntu: USN-8595-3 – Linux kernel (AWS) vulnerabilities 28.07.2026 · Critical · Patch day
- Ubuntu: USN-8574-3 – Linux kernel vulnerabilities 28.07.2026 · Critical · Patch day
- Ubuntu: USN-8609-1 – Linux kernel (Azure CVM) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8608-1 – Linux kernel (Azure FIPS) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8607-1 – Linux kernel (Azure CVM) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8606-1 – Linux kernel (Azure) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8595-2 – Linux kernel (AWS) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8596-1 – Linux kernel (NVIDIA) vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8595-1 – Linux kernel (Oracle) vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8574-2 – Linux kernel vulnerabilities 23.07.2026 · Critical · Patch day
- Ubuntu: USN-8574-1 – Linux kernel (GCP FIPS) vulnerabilities 21.07.2026 · Critical · Patch day
- Ubuntu: USN-8567-1 – Linux kernel vulnerabilities 20.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:2238-1 – Security update for the Linux Kernel 03.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21866-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21868-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21876-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21877-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21916-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21919-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21947-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:2217-1 – Security update for the Linux Kernel 02.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21845-1 – Security update for the Linux Kernel 01.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21860-1 – Security update for the Linux Kernel 01.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21841-1 – Security update for the Linux Kernel 29.05.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:21834-1 – Security update for the Linux Kernel 29.05.2026 · Critical · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.