VYPR
Unrated severityNVD Advisory· Published Apr 13, 2011· Updated Apr 29, 2026

CVE-2011-0989

CVE-2011-0989

Description

The RuntimeHelpers.InitializeArray method in metadata/icall.c in Mono, when Moonlight 2.x before 2.4.1 or 3.x before 3.99.3 is used, does not properly restrict data types, which allows remote attackers to modify internal read-only data structures, and cause a denial of service (plugin crash) or corrupt the internal state of the security manager, via a crafted media file, as demonstrated by modifying a C# struct.

Affected products

7
  • cpe:2.3:a:mono:mono:*:*:*:*:*:*:*:*
  • Novell/Moonlight6 versions
    cpe:2.3:a:novell:moonlight:2.0:*:*:*:*:*:*:*+ 5 more
    • cpe:2.3:a:novell:moonlight:2.0:*:*:*:*:*:*:*
    • cpe:2.3:a:novell:moonlight:2.3.0:*:*:*:*:*:*:*
    • cpe:2.3:a:novell:moonlight:2.31:*:*:*:*:*:*:*
    • cpe:2.3:a:novell:moonlight:2.4:*:*:*:*:*:*:*
    • cpe:2.3:a:novell:moonlight:3.0:*:*:*:*:*:*:*
    • cpe:2.3:a:novell:moonlight:3.99:*:*:*:*:*:*:*

Patches

1
035c8587c0d8

Allow only primitive types/enums in RuntimeHelpers.InitializeArray ().

https://github.com/mono/monoZoltan VargaJan 18, 2011via nvd-ref
1 file changed · +2 5
  • mono/metadata/icall.c+2 5 modified
    @@ -854,12 +854,9 @@ ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray (MonoAr
     	int align;
     	const char *field_data;
     
    -	if (MONO_TYPE_IS_REFERENCE (type) ||
    -			(type->type == MONO_TYPE_VALUETYPE &&
    -				(!mono_type_get_class (type) ||
    -				mono_type_get_class (type)->has_references))) {
    +	if (MONO_TYPE_IS_REFERENCE (type) || type->type == MONO_TYPE_VALUETYPE) {
     		MonoException *exc = mono_get_exception_argument("array",
    -			"Cannot initialize array containing references");
    +			"Cannot initialize array of non-primitive type.");
     		mono_raise_exception (exc);
     	}
     
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

10

News mentions

0

No linked articles in our index yet.