CVE-2022-31256 sendmail: mail to root privilege escalation via sm-client.pre script
Local attackers can escalate privileges from mail user to root via improper link resolution in the sendmail systemd service script.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31256?
CVE-2022-31256 is a high-severity vulnerability in openSUSE Factory, published on 26 Oct 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A Improper Link Resolution Before File Access ('Link Following') vulnerability in a script called by the sendmail systemd service of openSUSE Factory allows local attackers to escalate from user mail to root. This issue affects: SUSE openSUSE Factory sendmail versions prior to 8.17.1-1.1.
Weakness: CWE-59
Which versions are affected by CVE-2022-31256?
It affects 1 product.
Linux distribution packages (26)
sendmail SUSE:Enterprise Storage 6 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Enterprise Storage 7 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Module for Legacy 12 | All versions | 8.14.9-4.6.1 |
sendmail SUSE:Linux Enterprise Module for Package Hub 15 SP3 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Module for Package Hub 15 SP4 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server 15 SP2-BCL | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server 15-LTSS | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Manager Proxy 4.1 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Manager Retail Branch Server 4.1 | All versions | 8.15.2-150000.8.9.1 |
sendmail SUSE:Manager Server 4.1 | All versions | 8.15.2-150000.8.9.1 |
sendmail openSUSE:Leap 15.3 | All versions | 8.15.2-150000.8.9.1 |
sendmail openSUSE:Leap 15.4 | All versions | 8.15.2-150000.8.9.1 |
Products include Opensuse Factory.
How do I fix CVE-2022-31256?
Apply the vendor's patch.
Is CVE-2022-31256 being exploited?
There is no known exploitation of CVE-2022-31256 in the wild and no public exploit code.
Other vulnerabilities in openSUSE Factory
Sources
Also known as GHSA-cfgc-fgg8-p3qf, SUSE-SU-2022:3898-1, SUSE-SU-2022:3899-1.