Red Hat Bugzilla – Bug 492972
[RHEL5.2] [IPV6] TUNNEL6: Fix incoming packet length check for inter-protocol tunnel.
Last modified: 2015-05-04 21:16:40 EDT
Description of problem:
When IPv6 tunnel payload is less than 40(0x28), packet can be sent to
network, received in physical interface, but not seen in IP tunnel interface.
No counter increase in tunnel interface.
Between 2.6.18 and 2.6.25 IPv4 over IPv6 support was added in
both ip6_tunnel.c (the tunnel interface driver) and tunnel6.c
(the encapsulation demultiplexor). In 2.6.26 a trivial bug
in tunnel6.c was fixed, in
static int tunnel46_rcv(struct sk_buff *skb)
struct xfrm6_tunnel *handler;
if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
It must be iphdr of course, with the bug IPv4 packets with a size
between 20 and 40 bytes are dropped.
Version-Release number of selected component (if applicable):
Patch fixing this is available in upstream:
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c
index 6323921..669f280 100644 (file)
@@ -109,7 +109,7 @@ static int tunnel46_rcv(struct sk_buff *skb)
struct xfrm6_tunnel *handler;
- if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
+ if (!pskb_may_pull(skb, sizeof(struct iphdr)))
for (handler = tunnel46_handlers; handler; handler = handler->next)
Created attachment 337260 [details]
Patch from upstream with offsets fixed for RHEL-5
Test packages are here:
Please provide these to customer so they can test it. If you/they need any other arch please just say so.
You can download this test kernel from http://people.redhat.com/dzickus/el5
Please do NOT transition this bugzilla state to VERIFIED until our QE team
has sent specific instructions indicating when to do so. However feel free
to provide a comment indicating that this fix has been verified.
~~ Attention - RHEL 5.4 Beta Released! ~~
RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner!
If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity.
Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value.
Questions can be posted to this bug or your customer or partner representative.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.