Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

BID:10179

Info

Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

Bugtraq ID: 10179
Class: Boundary Condition Error
CVE: CVE-2004-0424
Remote: No
Local: Yes
Published: Apr 20 2004 12:00AM
Updated: May 25 2007 11:21PM
Credit: Paul Starzetz is credited with initial discovery and Wojciech Purczynski is credited with followup research.
Vulnerable: Slackware Linux 9.1
Slackware Linux -current
SGI ProPack 3.0
Linux kernel 2.6.3
Linux kernel 2.6.2
Linux kernel 2.6.1 -rc2
Linux kernel 2.6.1 -rc1
Linux kernel 2.6.1
Linux kernel 2.4.25
Linux kernel 2.4.24 -ow1
Linux kernel 2.4.24
Linux kernel 2.4.23 -pre9
Linux kernel 2.4.23 -ow2
Linux kernel 2.4.23
+ Trustix Secure Linux 2.0
Linux kernel 2.4.22
+ Devil-Linux Devil-Linux 1.0.5
+ Devil-Linux Devil-Linux 1.0.4
+ Mandriva Linux Mandrake 9.2 amd64
+ Mandriva Linux Mandrake 9.2
+ Redhat Fedora Core1
+ Slackware Linux 9.1
Not Vulnerable: Linux kernel 2.6.5
+ S.u.S.E. Linux Personal 9.1 x86_64
+ S.u.S.E. Linux Personal 9.1 x86_64
+ S.u.S.E. Linux Personal 9.1
+ S.u.S.E. Linux Personal 9.1
+ SuSE Linux Enterprise Server 9
Linux kernel 2.6.4
Linux kernel 2.4.26

Discussion

Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

An integer-overflow vulnerability has been reported in the 'setsockopt()' system call. This was introduced as of the 2.4.22/2.6.1 kernel releases.

The specific issue resides in the 'net/ipv4/ip_sockglue.c' source file and is present in the 'ip_setsockopt()' subroutine of the 'setsockopt()' system call. Within this subroutine, an integer overflow occurs within the IP_MSFILTER_SIZE macro, which is used when setting the MCAST_MSFILTER socket option.

A local attacker may exploit this issue to compromise the system or cause a denial of service. Note that this type of vulnerability may provide a generic means of privilege escalation across Linux distributions after a remote attacker has gained unauthorized access as a lower-privileged user.

Exploit / POC

Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

A working exploit has been developed by one of the individuals who researched this vulnerability. This exploit is not publicly available or known to be circulating in the wild.

The following proof-of-concept and exploit codes are avaialble:

Solution / Fix

Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

Solution:
This issue has been addressed in the 2.4.26 and 2.6.4 kernel releases. Please see the references for more information.


Linux kernel 2.4.22

Linux kernel 2.4.23 -pre9

Linux kernel 2.4.23 -ow2

Linux kernel 2.4.23

Linux kernel 2.4.24 -ow1

Linux kernel 2.4.24

Linux kernel 2.4.25

Linux kernel 2.6.1 -rc2

Linux kernel 2.6.1 -rc1

Linux kernel 2.6.2

Linux kernel 2.6.3

References

Linux Kernel Setsockopt MCAST_MSFILTER Integer Overflow Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report