[NETFILTER]: ip_nat_proto_gre: do not modify/corrupt GREv0 packets through NAT
Jorge Boncompte authored
While porting some changes of the 2.6.21-rc7 pptp/proto_gre conntrack
and nat modules to a 2.4.32 kernel I noticed that the gre_key function
returns a wrong pointer to the GRE key of a version 0 packet thus
corrupting the packet payload.

The intended behaviour for GREv0 packets is to act like
ip_conntrack_proto_generic/ip_nat_proto_unknown so I have ripped the
offending functions (not used anymore) and modified the
ip_nat_proto_gre modules to not touch version 0 (non PPTP) packets.
Signed-off-by: default avatarJorge Boncompte <jorge@dti2.net>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
c5807ace
Name Last commit Last update
..
acpi [ACPI] ACPICA 20060127
asm-alpha [PATCH] add asm-generic/mman.h
asm-arm [ARM] 3364/1: [cleanup] warning fix - definitions for enable_hlt and disable_hlt
asm-arm26 [PATCH] add asm-generic/mman.h
asm-cris [PATCH] add asm-generic/mman.h
asm-frv [PATCH] add asm-generic/mman.h
asm-generic [PATCH] SPARC64: Fix D-cache corruption in mremap
asm-h8300 [PATCH] add asm-generic/mman.h
asm-i386 i386: save/restore eflags in context switch (CVE-2006-5173)
asm-ia64 ia64: add pci_get_legacy_ide_irq()
asm-m32r [PATCH] m32r: Fix cpu_possible_map and cpu_present_map initialization for SMP kernel
asm-m68k [PATCH] m68k: fix cmpxchg compile errors if CONFIG_RMW_INSNS=n
asm-m68knommu [PATCH] m68knommu: hardirq.h needs definition of NR_IRQS
asm-mips [PATCH] SPARC64: Fix D-cache corruption in mremap
asm-parisc Fix incorrent type of flags in <asm/semaphore.h>
asm-powerpc make ppc64 current preempt-safe
asm-ppc [PATCH] powerpc: remove duplicate exports
asm-s390 [PATCH] s390: fix compile with VIRT_CPU_ACCOUNTING=n
asm-sh [PATCH] add asm-generic/mman.h
asm-sh64 [PATCH] sh/sh64: Fix bogus TIOCGICOUNT definitions
asm-sparc SPARC32: Fix over-optimization by GCC near ip_fast_csum.
asm-sparc64 ia64/sparc: fix local DoS with corrupted ELFs (CVE-2006-4538)
asm-um [PATCH] uml: avoid "CONFIG_NR_CPUS undeclared" bogus error messages
asm-v850 [PATCH] add asm-generic/mman.h
asm-x86_64 x86_64: re-add a newline to RESTORE_CONTEXT
asm-xtensa
keys
linux
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi
sound
video