Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13ABE3EBF02 for ; Sat, 14 Feb 2026 15:36:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771083392; cv=none; b=rtBiSuqgx+ucSO7XX7ZwfFkHC4piSZRwPKKQzNxiSXY5zBSLHJmWrJ+H5v9ysPrKj3Hqr68L+B1FhFbg6kw/taq3kQY1QjLqREBSDse58b4aqgEkqWi2x5oWvVBbt4eRR1WdjV+D78j29skoS3Bi9rJ8I+HRixnu5gnoijLHZ/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771083392; c=relaxed/simple; bh=SpCaE1jyioLVrXLTZKdouKjn/XZhi/drTVzKy6Tl5OE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mPRJbhVUI7KqykmLjIqJEbUjdRs0GwgFzU8Jzrh5xK7pc4WUkZchH/IELkYTaSVFdewJf8FaTP56vyfP34EHgfYe1Q2DejG51ZN9h/u2gLrNI6gNbG9KZnGWeJUujTjcHiIOjgFSKvUnGxu9ST3GbTdOVChqCeCbBzE9dxaPAJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N7DNeB4L; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="N7DNeB4L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51460C16AAE; Sat, 14 Feb 2026 15:36:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771083391; bh=SpCaE1jyioLVrXLTZKdouKjn/XZhi/drTVzKy6Tl5OE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=N7DNeB4L/62+sAh+z4ObxYpXmM/LjNtj8yeQiV4ILVxcbMYujouClvE3/cQUALkKo psmeuIA08O+EtKN5EELLpN/lfjVOu45mhecRFHKT24gATuplXxg3+6WvsDmDvXXIxn H5zlrKz4mVRoQ4jBaoi3rTHPpluP0jLxcKezBvvA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23143: virtio_net: Fix misalignment bug in struct virtnet_info Date: Sat, 14 Feb 2026 16:36:17 +0100 Message-ID: <2026021416-CVE-2026-23143-9346@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4565; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/KuvWn65+MJxoA2aErf9s2/ovYYOrpj8F1ej/5WaRbQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkTphWcY93T5HLf69kMn4U1D151rjI4dEZg9QTh07zzp B8812mW7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJhN5jWLD9H4fGhe2u3xeX KIurp7MJ9ymUXWeY71T4wpP7/zV1wbzlctnvn4mGXfn4HgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: virtio_net: Fix misalignment bug in struct virtnet_info Use the new TRAILING_OVERLAP() helper to fix a misalignment bug along with the following warning: drivers/net/virtio_net.c:429:46: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] This helper creates a union between a flexible-array member (FAM) and a set of members that would otherwise follow it (in this case `u8 rss_hash_key_data[VIRTIO_NET_RSS_MAX_KEY_SIZE];`). This overlays the trailing members (rss_hash_key_data) onto the FAM (hash_key_data) while keeping the FAM and the start of MEMBERS aligned. The static_assert() ensures this alignment remains. Notice that due to tail padding in flexible `struct virtio_net_rss_config_trailer`, `rss_trailer.hash_key_data` (at offset 83 in struct virtnet_info) and `rss_hash_key_data` (at offset 84 in struct virtnet_info) are misaligned by one byte. See below: struct virtio_net_rss_config_trailer { __le16 max_tx_vq; /* 0 2 */ __u8 hash_key_length; /* 2 1 */ __u8 hash_key_data[]; /* 3 0 */ /* size: 4, cachelines: 1, members: 3 */ /* padding: 1 */ /* last cacheline: 4 bytes */ }; struct virtnet_info { ... struct virtio_net_rss_config_trailer rss_trailer; /* 80 4 */ /* XXX last struct has 1 byte of padding */ u8 rss_hash_key_data[40]; /* 84 40 */ ... /* size: 832, cachelines: 13, members: 48 */ /* sum members: 801, holes: 8, sum holes: 31 */ /* paddings: 2, sum paddings: 5 */ }; After changes, those members are correctly aligned at offset 795: struct virtnet_info { ... union { struct virtio_net_rss_config_trailer rss_trailer; /* 792 4 */ struct { unsigned char __offset_to_hash_key_data[3]; /* 792 3 */ u8 rss_hash_key_data[40]; /* 795 40 */ }; /* 792 43 */ }; /* 792 44 */ ... /* size: 840, cachelines: 14, members: 47 */ /* sum members: 801, holes: 8, sum holes: 35 */ /* padding: 4 */ /* paddings: 1, sum paddings: 4 */ /* last cacheline: 8 bytes */ }; As a result, the RSS key passed to the device is shifted by 1 byte: the last byte is cut off, and instead a (possibly uninitialized) byte is added at the beginning. As a last note `struct virtio_net_rss_config_hdr *rss_hdr;` is also moved to the end, since it seems those three members should stick around together. :) The Linux kernel CVE team has assigned CVE-2026-23143 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit ed3100e90d0d120a045a551b85eb43cf2527e885 and fixed in 6.18.7 with commit ae48108c2310f1dd700e0dbb655c2f1d92ed00fc Issue introduced in 6.15 with commit ed3100e90d0d120a045a551b85eb43cf2527e885 and fixed in 6.19 with commit 4156c3745f06bc197094b9ee97a9584e69ed00bf 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-23143 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/virtio_net.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/ae48108c2310f1dd700e0dbb655c2f1d92ed00fc https://git.kernel.org/stable/c/4156c3745f06bc197094b9ee97a9584e69ed00bf