net: qlcnic: validate unified ROM sections before loading
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af19b49152bdb68fda894183e88096d6d1aa5c3d · < 5e8076e4e4124dae75a3e080ddc20404700d7585| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: qlcnic: validate unified ROM sections before loading
The unified ROM parser reads directory, product, and data-descriptor fields from the firmware file. Existing validation forms table and data ends with unchecked additions and multiplications. Malformed values can wrap before they are compared with the firmware size. The parser also dereferences typed pointers at firmware-controlled offsets.
Valid descriptor extents alone are insufficient for the consumers. The loader reads a fixed-size bootloader regardless of its declared size, the version parser assumes a 17-byte tail, and a partial final firmware word is read as a full u64. A truncated image can therefore make the driver read beyond the firmware allocation during validation or loading.
Replace the pointer-returning parser with bounded range helpers. Validate table entry sizes, descriptor indices, section ranges, the fixed bootloader load length, and the version tail before exposing any section. Read all file fields with unaligned little-endian accessors and assemble a partial final word from only the bytes that remain. Apply the same range checks to the legacy image before reading its fixed fields.
From the CVE record · Linux
The Linux kernel’s qlcnic driver does not fully validate firmware image sections before reading them. A malformed or truncated firmware image can cause an out-of-bounds read during validation or loading. The input does not specify how an attacker could supply such an image or whether authentication or user interaction is required.
Engineers running Linux systems that use the qlcnic driver should check whether their kernel includes the fix; affected versions are not specified.