21/4/2016
27/3/2017
6/8/2024
CVE-2016-4912: Null Pointer Dereference
First published: Thu Apr 21 2016(Updated: )
A null pointer dereference vulnerability was found in function _xrealloc() in xlsp_xmalloc.c in OpenSLP. A remote attacker could potentially crash the server when large number of packets are sent.
Vulnerable code:
void * _xrealloc(const char * file, int line, void * ptr, size_t size)
{
xallocation_t * x;
if (!ptr)
return _xmalloc(file, line, size);
if (!size)
{
_xfree(file, line, ptr);
return 0;
}
x = _xmalloc_find(ptr);
if (x != 0)
{
void * newptr = ptr;
if (x->size != size)
{
newptr = _xmalloc(file, line, size); //*** return 0 if failed from _xmalloc
memcpy(newptr, ptr, x->size); //*** it'll cased a null pointer reference
_xfree(file, line, x);
}
return newptr;
}
if (G_xmalloc_fh)
fprintf(G_xmalloc_fh, "*** xrealloc called on "
"non-xmalloc'd memory ***\n");
return 0;
}
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|
Openslp Openslp | =2.0.0 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
- collector/nvd-index
- agent/type
- agent/first-publish-date
- agent/softwarecombine
- collector/mitre-cve
- source/MITRE
- agent/author
- agent/last-modified-date
- agent/references
- agent/severity
- agent/event
- agent/description
- collector/redhat-bugzilla
- source/Red Hat
- alias/CVE-2016-4912
- agent/weakness
- agent/tags
- agent/trending
- vendor/openslp
- canonical/openslp openslp
- version/openslp openslp/2.0.0
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203