CVE-2021-25319
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-25319 is a security vulnerability in the OpenSUSE packaging of VirtualBox that was discovered in early 2021. The vulnerability stems from missing sticky bit permissions in the /etc/vbox directory, which allows members of the vboxusers group to exploit local root access. This vulnerability specifically affects OpenSUSE distributions where the directory was incorrectly packaged with improper permissions (OpenWall).

Technical details

The vulnerability exists due to incorrect default permissions in the packaging of VirtualBox where the /etc/vbox directory was configured with permissions drwxrwxr-x (775) owned by root:vboxusers, but without the sticky bit set. This configuration allowed members of the vboxusers group to remove and recreate the vbox.cfg file, which is sourced by scripts running as root. The vulnerability specifically affects the OpenSUSE packaging of VirtualBox, while other distributions like Arch Linux, Fedora, and official VirtualBox.org RPMs were not affected as they package /etc/vbox as root:root with mode 755 (SUSE Bugzilla).

Impact

The vulnerability allows any member of the vboxusers group to perform a local root exploit by manipulating the /etc/vbox/vbox.cfg file. When exploited, an attacker could execute arbitrary commands with root privileges once services like vboxautostart are triggered (OpenWall).

Mitigation and workarounds

The fix involves changing the VBOXAUTOSTARTDB from /etc/vbox to /etc/vbox/autostart.d, setting /etc/vbox ownership to root:root with mode 755, and configuring /etc/vbox/autostart.d with ownership root:vboxusers and mode 1775. Updates were released for affected OpenSUSE versions including Leap 15.1, 15.2, and 15.3 ([SUSE Bugzilla](https://bugzilla.suse.com/showbug.cgi?id=1182918)).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

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