CVE-2026-143263
Last modified
CVE-2026-143263 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: netfilter: nat: zero newrange before filling it in nf_nat_masquerade_ipv4(), nf_nat_masquerade_ipv6(), netmap_tg4() and netmap_tg6() each build a stack-local struct nf_nat_range2 from the caller-supplied range, inheriting range->flags unmodified. Two of them only memset() the min_addr/max_addr members, the other two don't memset() anything at all, so newrange.base_proto is left as stack garbage. If the inherited flags include NF_NAT_RANGE_PROTO_OFFSET, nf_nat_l4proto_unique_tuple() reads range->base_proto.all to compute the NAT port offset.
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nat: zero newrange before filling it in nf_nat_masquerade_ipv4(), nf_nat_masquerade_ipv6(), netmap_tg4() and netmap_tg6() each build a stack-local struct nf_nat_range2 from the caller-supplied range, inheriting range->flags unmodified. Two of them only memset() the min_addr/max_addr members, the other two don't memset() anything at all, so newrange.base_proto is left as stack garbage. If the inherited flags include NF_NAT_RANGE_PROTO_OFFSET, nf_nat_l4proto_unique_tuple() reads range->base_proto.all to compute the NAT port offset. Neither the NETMAP nor the MASQUERADE targets mask the flags field in their checkentry callback, so this uninitialized stack value can end up feeding the NAT port selection. The per-member memset()s are not enough: they have to enumerate every field that must be cleared, and base_proto was missed when NF_NAT_RANGE_PROTO_OFFSET/base_proto was added to the struct. memset() the whole struct instead, so every member is covered regardless of which ones get explicitly assigned afterwards. There are other places that miss this, but those hardcode .flags so nat core won't read from the uninitialized fields. C99 initializers would be preferrable, but this is a more intrusive change. Lets followup in nf-next and convert others as well. This is an LLM finding.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < 36d8d95e7b524eca539b7b5feb8881f71f11b8f1; >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < a2d82bdf0c605f6a59a8f8b7287fae777821eadb; >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < dcc24d3d97c99c9130f62553ef7a8aa32ec32f47; >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < c4488133c577485e0f3a0f3fdf61e944ca42c178; >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < 3aee04b4d58cbe6b5e0a9c6d527a936b46f1348a; >= 2eb0f624b709e78ec8e2f4c3412947703db99301, < d1bb235aa409a4e5aeba6c748d953d948625b1e9 |
| Linux | Linux | 4.18 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-143263?
How severe is CVE-2026-143263?
How do I fix CVE-2026-143263?
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-143258In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-143259In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14326The Timetics WordPress plugin through 1.0.61 does not enforc…3.8
- CVE-2026-143260In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143261In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143262In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-143264In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143265In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143266In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143267In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143268In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143269In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-143263?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
