Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
af19b49152bdb68fda894183e88096d6d1aa5c3d to < ad6cceee7aca7762f90f155480c2cd8d11ec6914affectedaf19b49152bdb68fda894183e88096d6d1aa5c3d to < 43451ec94fb67ae1715faf29e9e6ab20ecbd42f4affectedaf19b49152bdb68fda894183e88096d6d1aa5c3d to < b9efc177703a03312cc2f6e6a4bbd4595e8158a1affectedaf19b49152bdb68fda894183e88096d6d1aa5c3d to < 4be733a450c86938c91f9c70a56802ef5069764caffectedaf19b49152bdb68fda894183e88096d6d1aa5c3d to < 684773c4d26f7f2211beb31fb90629216f8a61f5affectedaf19b49152bdb68fda894183e88096d6d1aa5c3d to < 5e8076e4e4124dae75a3e080ddc20404700d7585affected
Linux Linux
Default version status: affected
2.6.34affected0 to < 2.6.34unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/ad6cceee7aca7762f90f155480c2cd8d11ec6914 ↗
- https://git.kernel.org/stable/c/43451ec94fb67ae1715faf29e9e6ab20ecbd42f4 ↗
- https://git.kernel.org/stable/c/b9efc177703a03312cc2f6e6a4bbd4595e8158a1 ↗
- https://git.kernel.org/stable/c/4be733a450c86938c91f9c70a56802ef5069764c ↗
- https://git.kernel.org/stable/c/684773c4d26f7f2211beb31fb90629216f8a61f5 ↗
- https://git.kernel.org/stable/c/5e8076e4e4124dae75a3e080ddc20404700d7585 ↗