CVE-2018-14722
Description
An issue was discovered in evaluate_auto_mountpoint in btrfsmaintenance-functions in btrfsmaintenance through 0.4.1. Code execution as root can occur via a specially crafted filesystem label if btrfs-{scrub,balance,trim} are set to auto in /etc/sysconfig/btrfsmaintenance (this is not the default, though).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A specially crafted filesystem label triggers remote code execution as root via btrfsmaintenance's auto-mountpoint evaluation, affecting versions through 0.4.1.
Vulnerability
The vulnerability resides in the evaluate_auto_mountpoint function within btrfsmaintenance-functions of btrfsmaintenance up to version 0.4.1. A specially crafted filesystem label can cause code execution when the btrfs-{scrub,balance,trim} services are configured to auto in /etc/sysconfig/btrfsmaintenance. This configuration is not the default, as noted in the official description [4].
Exploitation
To exploit this, an attacker must be able to set a malicious filesystem label on a Btrfs filesystem, which typically requires either physical access, the ability to mount a crafted filesystem image, or some form of write access to the filesystem metadata. The attacker then triggers one of the affected btrfs-* services (scrub, balance, or trim) when they are set to auto. No user interaction is needed beyond mounting the crafted filesystem; the service will automatically evaluate the mountpoint label and execute the attacker-supplied payload [4].
Impact
Successful exploitation allows an attacker to execute arbitrary code with root privileges. This is a full compromise of the system, as the attacker gains the highest level of access, enabling them to install malware, modify system files, or exfiltrate data [4].
Mitigation
A fix was resolved in the SUSE bug tracker with status RESOLVED FIXED, though no specific version number is provided in the references [4]. Users should upgrade to the latest patched version of btrfsmaintenance as soon as possible. Until the fix is applied, ensure that btrfs-{scrub,balance,trim} are not set to auto in /etc/sysconfig/btrfsmaintenance, as this triggers the vulnerable code path. The official description confirms the default configuration is safe [4].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Range: <=0.4.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- www.openwall.com/lists/oss-security/2018/08/14/7mitremailing-listx_refsource_MLIST
- www.openwall.com/lists/oss-security/2019/06/27/7mitremailing-listx_refsource_MLIST
- www.openwall.com/lists/oss-security/2019/06/28/1mitremailing-listx_refsource_MLIST
- www.openwall.com/lists/oss-security/2019/06/28/2mitremailing-listx_refsource_MLIST
- bugzilla.suse.com/show_bug.cgimitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.