Stack-based buffer overflow in cifs-utils - CVE-2022-27239
Published: June 2, 2022
Vulnerability identifier: #VU63956
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H]
CVE-ID: CVE-2022-27239
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a boundary error when parsing the "mount.cifs ip=" command-line argument. A local user can pass specially crafted data to the command, trigger a stack-based buffer overflow and execute arbitrary code with root privileges.
Affected software
cifs-utils
Amazon Linux AMI
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
openEuler
Fedora
cifs-utils
cifs-utils-debugsource
cifs-utils-debuginfo
cifs-utils (Ubuntu package)
cifs-utils (Debian package)
cifs-utils-devel
pam_cifscreds-debuginfo
pam_cifscreds
cifs-utils-help
net-fs/cifs-utils
Dell EMC VxRail Appliance
Amazon Linux AMI
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
openEuler
Fedora
cifs-utils
cifs-utils-debugsource
cifs-utils-debuginfo
cifs-utils (Ubuntu package)
cifs-utils (Debian package)
cifs-utils-devel
pam_cifscreds-debuginfo
pam_cifscreds
cifs-utils-help
net-fs/cifs-utils
Dell EMC VxRail Appliance
How to mitigate CVE-2022-27239
Install updates from vendor's website.
cifs-utils - update to 6.15
cifs-utils - addressed in versions 5.1-0.14.3.1, 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils-debugsource - addressed in versions 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils-debuginfo - addressed in versions 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils (Ubuntu package) - addressed in versions 2:6.0-1ubuntu2+esm1, 2:6.4-1ubuntu1.1+esm1, 2:6.8-1ubuntu1.2, 2:6.9-1ubuntu0.2, 2:6.11-3.1ubuntu0.1, 2:6.14-1ubuntu0.1
cifs-utils - addressed in versions 6.2-7.7, 6.15-1
cifs-utils (Debian package) - addressed in versions 2:6.8-2+deb10u1, 2:6.11-3.1+deb11u1
cifs-utils-devel - addressed in versions 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
pam_cifscreds-debuginfo - addressed in versions 6.9-150100.5.15.1, 6.15-150400.3.6.1
pam_cifscreds - addressed in versions 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils - update to 6.10-5
cifs-utils-debuginfo - update to 6.10-5
cifs-utils-debugsource - update to 6.10-5
cifs-utils-devel - update to 6.10-5
cifs-utils-help - update to 6.10-5
net-fs/cifs-utils - update to 6.15
cifs-utils - addressed in versions 6.15-1.fc34, 6.15-1.fc35, 6.15-1.fc36
Dell EMC VxRail Appliance - update to 8.0.000
cifs-utils - addressed in versions 5.1-0.14.3.1, 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils-debugsource - addressed in versions 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils-debuginfo - addressed in versions 5.1-0.16.3.1, 6.9-9.18.1, 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils (Ubuntu package) - addressed in versions 2:6.0-1ubuntu2+esm1, 2:6.4-1ubuntu1.1+esm1, 2:6.8-1ubuntu1.2, 2:6.9-1ubuntu0.2, 2:6.11-3.1ubuntu0.1, 2:6.14-1ubuntu0.1
cifs-utils - addressed in versions 6.2-7.7, 6.15-1
cifs-utils (Debian package) - addressed in versions 2:6.8-2+deb10u1, 2:6.11-3.1+deb11u1
cifs-utils-devel - addressed in versions 6.9-13.20.1, 6.9-150000.3.17.1, 6.9-150100.5.15.1, 6.15-150400.3.6.1
pam_cifscreds-debuginfo - addressed in versions 6.9-150100.5.15.1, 6.15-150400.3.6.1
pam_cifscreds - addressed in versions 6.9-150100.5.15.1, 6.15-150400.3.6.1
cifs-utils - update to 6.10-5
cifs-utils-debuginfo - update to 6.10-5
cifs-utils-debugsource - update to 6.10-5
cifs-utils-devel - update to 6.10-5
cifs-utils-help - update to 6.10-5
net-fs/cifs-utils - update to 6.15
cifs-utils - addressed in versions 6.15-1.fc34, 6.15-1.fc35, 6.15-1.fc36
Dell EMC VxRail Appliance - update to 8.0.000
External References
- http://wiki.robotz.com/index.php/Linux_CIFS_Utils_and_Samba
- https://bugzilla.samba.org/show_bug.cgi?id=15025
- https://bugzilla.suse.com/show_bug.cgi?id=1197216
- https://github.com/piastry/cifs-utils/pull/7
- https://github.com/piastry/cifs-utils/pull/7/commits/955fb147e97a6a74e1aaa65766de91e2c1479765
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QIYZ4L6SLSYJQ446VJAO2VGAESURQNSP/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HXKZLJYJJEC3TIBFLXUORRMZUKG5W676/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WBOLMANBYJILXQKRRK7OCR774PXJAYY/
- https://lists.debian.org/debian-lts-announce/2022/05/msg00020.html
Related Security Bulletins
- Multiple vulnerabilities in in cifs-utils
- Ubuntu update for cifs-utils
- Debian update for cifs-utils
- SUSE update for cifs-utils
- Multiple vulnerabilities in Dell VxRail Appliance components
- Amazon Linux AMI update for cifs-utils
- SUSE update for cifs-utils
- SUSE update for cifs-utils
- SUSE update for cifs-utils
- SUSE update for cifs-utils
- SUSE update for cifs-utils
- SUSE update for cifs-utils
- Gentoo update for LinuxCIFS utils
- openEuler update for cifs-utils
- Amazon Linux AMI update for cifs-utils
- Fedora 36 update for cifs-utils
- Fedora 35 update for cifs-utils
- Fedora 34 update for cifs-utils
- Ubuntu update for cifs-utils