Use After Free Affecting systemd-python package, versions <0:219-78.el7_9.7


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
1.05% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL7-SYSTEMDPYTHON-8016688
  • published17 Sept 2024
  • disclosed19 Aug 2022

Introduced: 19 Aug 2022

CVE-2022-2526  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade RHEL:7 systemd-python to version 0:219-78.el7_9.7 or higher.
This issue was patched in RHSA-2022:6160.

NVD Description

Note: Versions mentioned in the description apply only to the upstream systemd-python package and not the systemd-python package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

A use-after-free vulnerability was found in systemd. This issue occurs due to the on_stream_io() function and dns_stream_complete() function in 'resolved-dns-stream.c' not incrementing the reference counting for the DnsStream object. Therefore, other functions and callbacks called can dereference the DNSStream object, causing the use-after-free when the reference is still used later.

CVSS Base Scores

version 3.1