Siemens SIMATIC and SCALANCE Devices Divide By Zero (CVE-2023-31085)

medium Tenable OT Security Plugin ID 502910

Synopsis

The remote OT asset is affected by a vulnerability.

Description

An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2. There is a divide-by-zero error in do_div(sz,mtd->erasesize), used indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

Solution

The following text was originally created by the Cybersecurity and Infrastructure Security Agency (CISA). The original can be found at CISA.gov.

Siemens has identified the following specific workarounds and mitigations users can apply to reduce risk:

- All affected products: Update to V3.0.0 or later version

As a general security measure, Siemens recommends protecting network access to devices with appropriate mechanisms. To operate the devices in a protected IT environment, Siemens recommends configuring the environment according to Siemens' operational guidelines for industrial security and following recommendations in the product manuals.

Additional information on industrial security by Siemens can be found on the Siemens industrial security webpage

For more information see the associated Siemens security advisory SSA-769027 in HTML and CSAF.

See Also

https://cert-portal.siemens.com/productcert/pdf/ssa-794697.pdf

https://cert-portal.siemens.com/productcert/html/ssa-398330.html

https://cert-portal.siemens.com/productcert/html/ssa-769027.html

https://support.industry.siemens.com/cs/ww/en/view/109977720/

https://support.industry.siemens.com/cs/ww/en/view/109827684/

https://www.cisa.gov/news-events/ics-advisories/icsa-25-044-09

Plugin Details

Severity: Medium

ID: 502910

File Name: tenable_ot_siemens_CVE-2023-31085.nasl

Version: 1.5

Type: remote

Family: Tenable.ot

Published: 2/24/2025

Updated: 2/14/2026

Supported Sensors: Tenable OT Security

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.4

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:N/A:C

CVSS Score Source: CVE-2023-31085

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:siemens:scalance_wam763-1_%28us%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam763-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_%28us%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_eec_%28us%29_firmware:3.0.0, cpe:/o:siemens:scalance_wum766-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wum763-1_firmware:3.0.0, cpe:/o:siemens:scalance_wub762-1_ifeatures_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_eec_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wab762-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_eec_firmware:3.0.0, cpe:/o:siemens:simatic_s7-1500_cpu_firmware:3.1.5, cpe:/o:siemens:scalance_wum766-1_%28usa%29_firmware:3.0.0, cpe:/o:siemens:scalance_wum766-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wub762-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam763-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:simatic_s7-1500_tm_mfp, cpe:/o:siemens:siplus_s7-1500_cpu_firmware:3.1.5, cpe:/o:siemens:scalance_wum763-1_%28us%29_firmware:3.0.0

Required KB Items: Tenable.ot/Siemens

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/13/2023

Vulnerability Publication Date: 6/13/2023

Reference Information

CVE: CVE-2023-31085

CWE: 369

ICSA: 25-044-09