CVE-2022-0135
NixOS vulnerability analysis and mitigation

Overview

An out-of-bounds write vulnerability (CVE-2022-0135) was discovered in the VirGL virtual OpenGL renderer (virglrenderer). The vulnerability was found in the readtransferdata() function in src/vrend_renderer.c. This security flaw affects the virtual GPU implementation used for KVM virtualization (NVD, Debian Security).

Technical details

The vulnerability stems from a discrepancy in size calculations between vrendrenderertransferwriteiov() and readtransferdata() functions. The vrendrenderertransferwriteiov() function does not account for 'box->depth' in its calculations, potentially leading to the allocation of a smaller heap buffer that is later accessed out-of-bounds by readtransferdata (Red Hat Bugzilla).

Impact

The exploitation of this vulnerability could allow a malicious guest to create a specially crafted virgil resource and issue a VIRTGPU_EXECBUFFER ioctl, potentially leading to denial of service or possible code execution on the host system (Debian LTS, Ubuntu Security).

Mitigation and workarounds

Multiple vendors have released patches to address this vulnerability. Debian released version 0.7.0-2+deb10u1 for Debian 10 (Buster), Ubuntu provided updates with version 0.8.2-5ubuntu0.21.10.1 for Ubuntu 21.10 and version 0.8.2-1ubuntu1.1 for Ubuntu 20.04, and Gentoo recommended upgrading to version 0.10.1 or later (Debian LTS, Ubuntu Security, Gentoo Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management