Skip to contentSkip to conversation

New: _decode_session[46] does not set type or code for ICMP or ICMPv6]

Bug 1490 Arnaldo Carvalho de Melo 2 participants 2 messages Nov 4, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

FYI

----- Forwarded message from [email protected] -----

Date: Tue, 4 Nov 2003 08:54:36 -0800
From: [email protected]
Subject: [Bug 1490] New: _decode_session[46] does not set type or code for ICMP or ICMPv6
To: [email protected]

http://bugme.osdl.org/show_bug.cgi?id=1490

Summary: _decode_session[46] does not set type or code for ICMP
or ICMPv6
Kernel Version: 2.6.0-test9
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution: Redhat 9
Hardware Environment: x86
Software Environment: ipsec-tools-0.2.2
Problem Description:
The _decode_session[46] functions do not set the type and code for ICMP and ICMPv6. These values need to be set so that policies can be matched based on these fields, since setkey allows for specifying policies based on the type and code.
Furthermore, __xfrm[46]_selector_match do not correctly handle ICMP and ICMPv6. The type should be compared against the xfrm_selector's sport field, and the code should be compared against the dport field. The type and code are both 8 bit fields, whereas __xfrm[46]_selector_match is comparing 16 bit values.

Steps to reproduce:
Insert a policy into the SPD using setkey that requires IPsec protection. For example, require inbound router advertisements to be protected with ESP with the following:

spdadd ::/0 ::/0 icmp6 134,0 -P in ipsec esp/transport//require;

Then send a router advertisement to the system under test. The packet will not be dropped, and the system will generate an IPv6 address.

------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

----- End forwarded message -----