# CVE-2026-23143: virtio\_net: Fix misalignment bug in struct virtnet\_info

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-28)
- **Published:** 2026-02-14T15:36:08.834Z
- **Modified:** 2026-10-21T13:18:33.787Z

## Who should check

- Anyone running Linux \>= 4c47aff10f6f0a2506dc2126c17ccd4c42bfa211, \< d1e9614a142eff34c93e94a15a71ad0e806799c4; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< ae48108c2310f1dd700e0dbb655c2f1d92ed00fc; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< 4156c3745f06bc197094b9ee97a9584e69ed00bf; \>= 6.12.91, \< 6.12.114
- Anyone running Linux 6.15

## 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. :)

## Affected and fixed versions

- Linux: \>= 4c47aff10f6f0a2506dc2126c17ccd4c42bfa211, \< d1e9614a142eff34c93e94a15a71ad0e806799c4; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< ae48108c2310f1dd700e0dbb655c2f1d92ed00fc; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< 4156c3745f06bc197094b9ee97a9584e69ed00bf; \>= 6.12.91, \< 6.12.114 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 6.12.114 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23143. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23143.md
Affected: Linux >= 4c47aff10f6f0a2506dc2126c17ccd4c42bfa211, < d1e9614a142eff34c93e94a15a71ad0e806799c4; >= ed3100e90d0d120a045a551b85eb43cf2527e885, < ae48108c2310f1dd700e0dbb655c2f1d92ed00fc; >= ed3100e90d0d120a045a551b85eb43cf2527e885, < 4156c3745f06bc197094b9ee97a9584e69ed00bf; >= 6.12.91, < 6.12.114; Li…
Fixed in: Linux 4156c3745f06bc197094b9ee97a9584e69ed00bf, Linux 6.12.114

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23143 being exploited?

There is no confirmed exploitation: CVE-2026-23143 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-23143?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23143?

Linux \>= 4c47aff10f6f0a2506dc2126c17ccd4c42bfa211, \< d1e9614a142eff34c93e94a15a71ad0e806799c4; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< ae48108c2310f1dd700e0dbb655c2f1d92ed00fc; \>= ed3100e90d0d120a045a551b85eb43cf2527e885, \< 4156c3745f06bc197094b9ee97a9584e69ed00bf; \>= 6.12.91, \< 6.12.114; Linux 6.15.

### Is there a fix for CVE-2026-23143?

Yes. Fixed in Linux 4156c3745f06bc197094b9ee97a9584e69ed00bf, Linux 6.12.114. Upgrade Linux to 6.12.114 or later.

### How do I check if I'm affected by CVE-2026-23143?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ae48108c2310f1dd700e0dbb655c2f1d92ed00fc>
- patch: <https://git.kernel.org/stable/c/4156c3745f06bc197094b9ee97a9584e69ed00bf>
- other: <https://git.kernel.org/stable/c/d1e9614a142eff34c93e94a15a71ad0e806799c4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23143>

HTML: <https://flawdb.com/CVE-2026-23143> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23143>
