CVE-2022-27239: Buffer Overflow
A stack-based buffer overflow when parsing the mount.cifs ip= command-line argument could lead to local attackers gaining root privileges.
References:
http://wiki.robotz.com/index.php/LinuxCIFSUtilsandSamba https://bugzilla.samba.org/showbug.cgi?id=15025 https://bugzilla.suse.com/showbug.cgi?id=1197216 https://github.com/piastry/cifs-utils/pull/7 https://github.com/piastry/cifs-utils/pull/7/commits/955fb147e97a6a74e1aaa65766de91e2c1479765
Other sources
In cifs-utils through 6.14, a stack-based buffer overflow when parsing the mount.cifs ip= command-line argument could lead to local attackers gaining root privileges.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:6.14-1.1Fixed in 2:6.11-3.1+deb11u1Fixed in 2:6.8-2+deb10u1 - Upgrade
Upgrade
alpine/cifs-utilsto a version that resolves this vulnerability.Fixed in 6.15-r0 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:6.14-1.1 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:6.7-1+deb9u1Fixed in 2:6.8-2+deb10u1Fixed in 2:6.11-3.1+deb11u1Fixed in 2:6.14-1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-27239?
CVE-2022-27239 is classified as a high severity vulnerability due to the potential for local attackers to gain root privileges.
How do I fix CVE-2022-27239?
To fix CVE-2022-27239, update cifs-utils to version 6.15 or later.
Who is affected by CVE-2022-27239?
CVE-2022-27239 affects versions of cifs-utils prior to 6.15 across various Debian and SUSE Linux distributions.
What types of attacks can exploit CVE-2022-27239?
CVE-2022-27239 can be exploited by local attackers through a stack-based buffer overflow when parsing the mount.cifs ip= command-line argument.
What is the impact of CVE-2022-27239 on systems?
The impact of CVE-2022-27239 is that it allows local attackers to execute arbitrary code with elevated privileges.