CVE-2009-0036: Buffer Overflow

Published Feb 10, 2009
·
Updated

A buffer overflow flaw was found in libvirtproxy. libvirtproxy is set to run as a setuid root by default, so in theory this could allow for a local user to become root.

Normally the stack protector would prevent this from being an issue, but it seems that with gcc optimizations, the function in question is being inlined into main(), preventing the stack protector from catching this.

The original report can be found here: https://www.redhat.com/archives/libvir-list/2009-January/msg00699.html

The patch is here: http://git.et.redhat.com/?p=libvirt.git;a=commitdiff;h=2bb0657e28

Other sources

Buffer overflow in the proxyReadClientSocket function in proxy/libvirtproxy.c in libvirtproxy 0.5.1 might allow local users to gain privileges by sending a portion of the header of a virProxyPacket packet, and then sending the remainder of the packet with crafted values in the header, related to use of uninitialized memory in a validation check.

MITRE

Affected Software

1 affected component
libvirt libvirt=0.5.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 2bb0657e28
  2. Configuration

    Remove the setuid root bit from the libvirt_proxy binary so it does not run setuid root (ensure the binary is not owned/executed with setuid privileges).

    libvirt_proxy setuid = disabled
  3. Compensating control

    Restrict local access to the libvirt_proxy binary to trusted administrators (e.g., change filesystem permissions to allow execution only by root/administrators or apply local ACLs) to limit potential exploitation by local users.

Event History

Feb 10, 2009
Data Sourced
via Red Hat·08:10 PM
DescriptionSeverityAffected Software
Feb 11, 2009
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2009-0036?

CVE-2009-0036 is considered to have high severity due to the potential for local users to escalate privileges to root.

2

How do I fix CVE-2009-0036?

To fix CVE-2009-0036, upgrade to a version of libvirt that contains the patch for this buffer overflow vulnerability.

3

What causes the vulnerability CVE-2009-0036?

CVE-2009-0036 is caused by a buffer overflow flaw in the libvirt_proxy component that runs as setuid root.

4

Can CVE-2009-0036 be exploited remotely?

CVE-2009-0036 cannot be exploited remotely; it requires local access to the affected system.

5

Who is affected by CVE-2009-0036?

Users of libvirt version 0.5.1 are affected by CVE-2009-0036, especially those with setuid root configurations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By 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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203