Skip to contentSkip to conversation

CVE-2026-90112: net: qlcnic: validate unified ROM sections before loading

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-90112 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.34 with commit af19b49152bdb68fda894183e88096d6d1aa5c3d and fixed in 6.12.110 with commit b9efc177703a03312cc2f6e6a4bbd4595e8158a1
	Issue introduced in 2.6.34 with commit af19b49152bdb68fda894183e88096d6d1aa5c3d and fixed in 6.18.52 with commit 4be733a450c86938c91f9c70a56802ef5069764c
	Issue introduced in 2.6.34 with commit af19b49152bdb68fda894183e88096d6d1aa5c3d and fixed in 7.2.6 with commit 684773c4d26f7f2211beb31fb90629216f8a61f5
	Issue introduced in 2.6.34 with commit af19b49152bdb68fda894183e88096d6d1aa5c3d and fixed in 7.3-rc1 with commit 5e8076e4e4124dae75a3e080ddc20404700d7585

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90112

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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