Skip to contentSkip to conversation

CVE-2026-90145: hinic3: Fix skb linearization mismatch and drop skb when skb_checksum_help() failed

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:

hinic3: Fix skb linearization mismatch and drop skb when skb_checksum_help() failed

Previously, hinic3_send_one_skb() cached the skb fragment count before calling hinic3_tx_offload(). If hinic3_tx_csum() falls back to skb_checksum_help() for unsupported tunnel packets, the skb may be linearized. Continuing to build the TX descriptor with the stale fragment count leads to a descriptor mismatch, which can trigger out-of-bounds DMA reads or IOMMU faults.

Furthermore, the old code ignored the return value of skb_checksum_help(), transmitting corrupted packets with incomplete checksums upon failure.

Fix this by:
1. Moving the hinic3_tx_offload() call before calculating 'num_sge' to ensure the correct fragment count is used if the SKB is linearized.
2. Propagating skb_checksum_help() errors and returning HINIC3_TX_OFFLOAD_INVALID to properly drop the skb.

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

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

	Issue introduced in 6.16 with commit 17fcb3dc12bbee8ec3e32ca1f60898f252e06b2d and fixed in 6.18.52 with commit e794cdc5c369c1b06359e2fe03a8d9270f56bead
	Issue introduced in 6.16 with commit 17fcb3dc12bbee8ec3e32ca1f60898f252e06b2d and fixed in 7.2.6 with commit 96c3959770386b2913c62005f0d0c3151e0c01c3
	Issue introduced in 6.16 with commit 17fcb3dc12bbee8ec3e32ca1f60898f252e06b2d and fixed in 7.3-rc1 with commit d0c2bed6927cbfa2cb51f240b4812bf6916bce0e

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-90145

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/huawei/hinic3/hinic3_tx.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/e794cdc5c369c1b06359e2fe03a8d9270f56bead
	https://git.kernel.org/stable/c/96c3959770386b2913c62005f0d0c3151e0c01c3
	https://git.kernel.org/stable/c/d0c2bed6927cbfa2cb51f240b4812bf6916bce0e