PT-2026-167121

CVE-2026-143263

·

تاريخ النشر

2026-12-03

·

تاريخ التحديث

2026-12-03

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾