{"vuid":"VU#230307","idnumber":"230307","name":"Linux kernel netfilter IRC DCC helper module creates overly permissive firewall rules","keywords":["Netfilter","IRC connection tracking","helper module","opens firewall ports","iptables","ipchains","IRC DCC protocol","ip_conntrack","Linux kernel"],"overview":"The \"netfilter\" firewall subsystem included with Linux kernel versions 2.4.x contains a vulnerability that may allow remote attackers to reach hosts that should be protected.","clean_desc":"The \"netfilter\" subsystem included with Linux kernel versions 2.4.x provides a framework for services such as packet filtering and network address translation (NAT). This subsystem includes a Direct Client Connections (DCC) module for Internet Relay Chat (IRC)  that allows netfilter to track outgoing DCC connections. When a DCC connection is initiated by a host inside the firewall, the IRC DCC helper module creates a dynamic firewall rule that allows responses from the remote end of the DCC connection to be passed back to the initiating host. In versions 2.4.14 to 2.4.18-pre8 of the Linux kernel, netfilter contains an implementation error that causes the IRC DCC module to create firewall rules that are more permissive than necessary. Quoting from the Netfilter Security Announcement: With IRC DCC, we can only tell the destination IP and port, thus we need an expectation \"expect related connection from any ip / any port to this particular port number X at this particular IP address Y\". Due to the implementation bug, however, the mask was to wide. The conntrack helper really says \"expect related connection from any ip / any port to this particular port X at ANY IP\". The netfilter subsystem is a standard part of the Linux kernel, so this vulnerability may be present in any Linux distribution that is based on the 2.4.x kernel.","impact":"This vulnerability may allow remote attackers to reach hosts that should be protected by the firewall.","resolution":"Apply a patch from your vendor To address this vulnerability, the CERT/CC recommends that all users of Linux kernel versions 2.4.x upgrade to the latest kernel version available for their distribution. For vendor-specific information regarding patches and affected versions, please consult the vendor section of this document.","workarounds":"Disable the IRC DCC helper module If it is not possible or practical to immediately patch an affected device, disabling the IRC DCC helper module will prevent exploitation of this vulnerability.","sysaffected":"","thanks":"The CERT/CC thanks Jozsef Kadlecsik and Harald Welte of the Netfilter team for discovering and addressing this vulnerability.","author":"This document was written by Jeffrey P. Lanza.","public":["http://www.netfilter.org/security/2002-02-25-irc-dcc-mask.html","http://www.netfilter.org/documentation/index.html#whatis","http://www.redhat.com/support/errata/RHSA-2002-028.html","http://www.securityfocus.com/bid/4188"],"cveids":["CVE-2002-0060"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2002-02-27T18:54:28Z","publicdate":"2002-02-25T00:00:00Z","datefirstpublished":"2002-03-01T22:41:41Z","dateupdated":"2002-07-05T17:57:03Z","revision":30,"vrda_d1_directreport":"0","vrda_d1_population":"2","vrda_d1_impact":"2","cam_widelyknown":"15","cam_exploitation":"10","cam_internetinfrastructure":"5","cam_population":"15","cam_impact":"17","cam_easeofexploitation":"2","cam_attackeraccessrequired":"20","cam_scorecurrent":"5.7375","cam_scorecurrentwidelyknown":"6.69375","cam_scorecurrentwidelyknownexploited":"8.60625","ipprotocol":"","cvss_accessvector":"--","cvss_accesscomplexity":"--","cvss_authentication":null,"cvss_confidentialityimpact":"--","cvss_integrityimpact":"--","cvss_availabilityimpact":"--","cvss_exploitablity":null,"cvss_remediationlevel":"ND","cvss_reportconfidence":"ND","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"M","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"0","cvss_basevector":"AV:--/AC:--/Au:--/C:--/I:--/A:--","cvss_temporalscore":"0","cvss_environmentalscore":"0","cvss_environmentalvector":"CDP:ND/TD:M/CR:ND/IR:ND/AR:ND","metric":5.7375,"vulnote":null}