CVE-2026-99980
Last modified
CVE-2026-99980 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: netdev: Hide the netdev_priv() origin from GCC in netdev_from_priv() GCC 15.1 and later can compute an object size of 0 for a pointer that container_of() derives from a pointer into a __counted_by flexible array member[1]; Clang gets it right. netdev_from_priv() does this with struct net_device's "priv" array, so when GCC can see that its argument came from netdev_priv(), FORTIFY_SOURCE sees a zero-sized net_device.
Description
In the Linux kernel, the following vulnerability has been resolved: netdev: Hide the netdev_priv() origin from GCC in netdev_from_priv() GCC 15.1 and later can compute an object size of 0 for a pointer that container_of() derives from a pointer into a __counted_by flexible array member[1]; Clang gets it right. netdev_from_priv() does this with struct net_device's "priv" array, so when GCC can see that its argument came from netdev_priv(), FORTIFY_SOURCE sees a zero-sized net_device. Since commit 9027497a25e3c ("team: use netdev_from_priv()"), adding a port of another type to a team device can then fail the memcpy() to "dev->broadcast" in team_setup_by_port(), which GCC sees through after inlining team_port_add() into team_add_slave(): memcpy: detected buffer overflow: 4 byte write of buffer size 0 ... kernel BUG at lib/string_helpers.c:1044! ... Call Trace: <TASK> team_add_slave.cold+0x88/0x201 do_set_master+0x11c/0x180 do_setlink.isra.0+0x3a4/0x1410 Whether GCC inlines that far depends on the architecture and the configuration. It does on ppc64le, where this was reported, and on x86_64 with defconfig plus hardening.config or with Debian's configuration, but not with allmodconfig. Hide where "priv" came from with OPTIMIZER_HIDE_VAR(), so GCC sees a net_device of unknown size whose members have their declared sizes. (An "unknown" size is considered uncheckable by FORTIFY.) FORTIFY still bounds writes to members; only the whole-object size becomes unknown, as it already is for any net_device pointer GCC can't trace to its allocation. In an extracted PoC, the __builtin_dynamic_object_size() of "dev->broadcast" for the two types FORTIFY sees, before and after this patch: GCC 16.2.0 Clang 22 and 24 before after plain pointer, whole object unknown unknown 44 container_of(), whole object 0 unknown 44 container_of(), member 0 32 32 In addition to getting the bogus "0" fixed in GCC, I'll be following up to solve the whole-object visiblity disparity as well. Build tested with GCC 16.2.0: ARCH=x86_64 defconfig with hardening.config, CONFIG_NET_TEAM=y, and CONFIG_NET_IPGRE=y; ARCH=arm64 defconfig with hardening.config, CONFIG_NET_TEAM=y, CONFIG_PPP=y, and CONFIG_NET_AIROHA=m; and drivers/net/team/, drivers/net/ppp/, and drivers/net/ethernet/airoha/ in ARCH=x86_64 allmodconfig. Under QEMU, the x86_64 kernel hits the BUG above when adding the GRE fallback device "gre0" as a port of a new team device without this patch, and adds it with the patch.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 9027497a25e3c92b5053b2643e0c18f910865625, < 964b693376ff329071575dadd9dd531d989d12e5; >= 9027497a25e3c92b5053b2643e0c18f910865625, < 56f8d919739b588e2ad8cb9fb9eff704f32afaab |
| Linux | Linux | 7.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99980?
How severe is CVE-2026-99980?
How do I fix CVE-2026-99980?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99975In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99976In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99977In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99978In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99979In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-9998Integer overflow in Skia in Google Chrome prior to 148.0.777…8.3
- CVE-2026-99981In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99982In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99983In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99984In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99985In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99986In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2026-99980?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
