CVE-2010-4008: Buffer Overflow
A security flaw was found in the way libxml traversed XPath axis of particular Extensible Markup Language (XML) file and tested namespace / attribute context nodes for their validity. A remote attacker could provide a specially-crafted XML file, which once opened with an application linked against libxml would cause that application to crash (due stack frame overflow and / or with NULL pointer dereference on some architectures).
Chrome bug report (not accessible for public audience): [1] http://code.google.com/p/chromium/issues/detail?id=58731
Upstream changesets: [2] http://git.gnome.org/browse/libxml2/commit/?id=91d19754d46acd4a639a8b9e31f50f31c78f8c9c [3] http://git.gnome.org/browse/libxml2/commit/?id=ea90b894146030c214a7df6d8375310174f134b9
Acknowledgements:
Red Hat would like to thank the Google Security Team for reporting this issue. Upstream acknowledges Bui Quang Minh from Bkis as the original reporter.
Other sources
libxml2 before 2.7.8, as used in Google Chrome before 7.0.517.44, Apple Safari 5.0.2 and earlier, and other products, reads from invalid memory locations during processing of malformed XPath expressions, which allows context-dependent attackers to cause a denial of service (application crash) via a crafted XML document.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libxml2to a version that resolves this vulnerability.Fixed in 2.7.8
Event History
Frequently Asked Questions
What is the severity of CVE-2010-4008?
CVE-2010-4008 has a severity rating that indicates it could lead to a denial of service due to application crashes.
How do I fix CVE-2010-4008?
To fix CVE-2010-4008, update the affected software to versions higher than libxml2 2.7.8, Google Chrome 7.0.517.44, and Apple Safari 5.0.2.
What products are affected by CVE-2010-4008?
CVE-2010-4008 affects multiple products, including Google Chrome, Apple Safari, Apple iTunes, and libxml2 prior to 2.7.8.
Can CVE-2010-4008 cause data loss?
CVE-2010-4008 primarily causes application crashes, which can lead to data loss if unsaved work is present at the time of the crash.
Is there a workaround for CVE-2010-4008?
There is no officially recommended workaround for CVE-2010-4008 aside from applying the necessary software updates.