CVE-2022-31256 sendmail: mail to root privilege escalation via sm-client.pre script

High 7.7 Published Updated

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 6All versions8.15.2-150000.8.9.1
sendmail SUSE:Enterprise Storage 7All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Module for Legacy 12All versions8.14.9-4.6.1
sendmail SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Module for Package Hub 15 SP4All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server 15 SP1-BCLAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server 15 SP2-BCLAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server 15-LTSSAll versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server for SAP Applications 15All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions8.15.2-150000.8.9.1
sendmail SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions8.15.2-150000.8.9.1
sendmail SUSE:Manager Proxy 4.1All versions8.15.2-150000.8.9.1
sendmail SUSE:Manager Retail Branch Server 4.1All versions8.15.2-150000.8.9.1
sendmail SUSE:Manager Server 4.1All versions8.15.2-150000.8.9.1
sendmail openSUSE:Leap 15.3All versions8.15.2-150000.8.9.1
sendmail openSUSE:Leap 15.4All versions8.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.

Sources

Also known as GHSA-cfgc-fgg8-p3qf, SUSE-SU-2022:3898-1, SUSE-SU-2022:3899-1.

Is CVE-2022-31256 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free