scsir Crate Group Number Overflow Vulnerability

Vulnerability

A vulnerability has been identified in the scsir crate version 0.2.0 for Rust, where an overflow can occur in the group number parameter of the WriteSameCommand. This issue arises because the group number may exceed the expected range of bits, potentially leading to undefined behavior when the command is issued to a hardware device.

Impact

Exploitation of this vulnerability can cause a buffer overflow in the hardware device, which may not handle the excessive group number properly, leading to unpredictable behavior.

Reproduction

The vulnerability can be reproduced by using the scsir crate to send a WriteSameCommand with a group number value of 255. This value exceeds the maximum allowed group number, causing an overflow when the command is issued to the SCSI device.

Remediation

Users are advised to validate the group number input to ensure it does not exceed the allowed range. The scsir crate maintainers should consider marking the group number function as 'unsafe' to indicate the potential for undefined behavior.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.