CyberSecBulletin
CVE-2023-46156NVD status: Modified

SIMATIC Drive Controller CPU 1504D TF: Use After Free

CVE-2023-46156 is a high-severity use after free vulnerability in SIMATIC Drive Controller CPU 1504D TF from Siemens, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version V3.1.0 as the first without the flaw, so updating SIMATIC Drive Controller CPU 1504D TF to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.24% chance of exploitation within 30 days, higher than 70% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update SIMATIC Drive Controller CPU 1504D TF to V3.1.0 or a later version.
  2. Update SIMATIC Drive Controller CPU 1507D TF to V3.1.0 or a later version.
  3. Update SIMATIC ET 200SP Open Controller CPU 1515SP PC2 (incl. SIPLUS variants) to V30.1.0 or a later version.
  4. Read the advisory on cert-portal.siemens.com for workarounds and exact fixed builds.
  5. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
SiemensSIMATIC Drive Controller CPU 1504D TFbefore V3.1.0V3.1.0
SiemensSIMATIC Drive Controller CPU 1507D TFbefore V3.1.0V3.1.0
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC2 (incl. SIPLUS variants)before V30.1.0V30.1.0
SiemensSIMATIC S7-1500 CPU 1510SP F-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1510SP-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1511-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1511C-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1511F-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1511T-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1511TF-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1512C-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1512SP F-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1512SP-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1513-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1513F-1 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1513R-1 PNall versions; before V3.1.2V3.1.2
SiemensSIMATIC S7-1500 CPU 1514SP F-2 PNbefore V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1514SP-2 PNbefore V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1514SPT F-2 PNbefore V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1514SPT-2 PNbefore V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1515-2 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1515F-2 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1515R-2 PNall versions; before V3.1.2V3.1.2
SiemensSIMATIC S7-1500 CPU 1515T-2 PNall versions; before V3.1.0V3.1.0
SiemensSIMATIC S7-1500 CPU 1515TF-2 PNall versions; before V3.1.0V3.1.0

Version data comes from the organisation that assigned the CVE; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by CNA (siemens.com).

Official description

Affected devices improperly handle specially crafted packets sent to port 102/tcp. This could allow an attacker to create a denial of service condition. A restart is needed to restore normal operations.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in SIMATIC Drive Controller CPU 1504D TF

All SIMATIC Drive Controller CPU 1504D TF vulnerabilities

Recent Use After Free vulnerabilities

Spotted an error? Tell us.