CWE
789
EPSS
0.045%
Advisory Published
CVE Published
CVE Published
Updated

CVE-2024-2494: Libvirt: negative g_new0 length can lead to unbounded memory allocation

First published: Mon Mar 18 2024(Updated: )

A flaw was found in the RPC library APIs of libvirt. The RPC server deserialization code allocates memory for arrays before the non-negative length check is performed by the C API entry points. Passing a negative length to the g_new0 function results in a crash due to the negative length being treated as a huge positive number. This flaw allows a local, unprivileged user to perform a denial of service attack by causing the libvirt daemon to crash.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
ubuntu/libvirt<6.0.0-0ubuntu8.19
6.0.0-0ubuntu8.19
ubuntu/libvirt<8.0.0-1ubuntu7.10
8.0.0-1ubuntu7.10
ubuntu/libvirt<9.6.0-1ubuntu1.1
9.6.0-1ubuntu1.1
ubuntu/libvirt<10.0.0-2ubuntu8.1
10.0.0-2ubuntu8.1
debian/libvirt<=5.0.0-4+deb10u1<=7.0.0-3+deb11u2<=9.0.0-4
5.0.0-4+deb10u2
10.2.0-1
10.3.0-1

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.

Parent vulnerabilities

(Appears in the following advisories)

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203