Heap-double-free vulnerability in systemd

systemd Updated 02 Oct 2025

Summary

12/06/2022
HIGH
Yes i
High
Not published

OSV-2022-472: Heap-double-free in nft_set_context_free_many. Affects systemd versions >= ab51fd9dbdc59f9a37acd8acaea3e9088d092bba, < b48ed70c79c6482e1f39b77d16e62043ff5042a5. Fixed in b48ed70c79c6482e1f39b77d16e62043ff5042a5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

systemd is a popular init system and service manager for Linux operating systems. It is responsible for managing the startup and shutdown of the system, as well as the management of system services. This vulnerability affects the nft_set_context_free_many function in systemd, which is used for parsing network filter tables. The vulnerability allows for a heap-double-free, which can lead to a crash or potentially be exploited for arbitrary code execution.

Vulnerability Detail

The vulnerability in systemd is a heap-double-free issue. When parsing network filter tables, the nft_set_context_free_many function can be triggered in a way that causes a double-free of a heap-allocated object. This can lead to a crash or potentially be exploited by an attacker to execute arbitrary code. The vulnerability was discovered through an OSS-Fuzz report and has been assigned a high severity level.

How To Fix

Minimum fixed version

b48ed70c79c6482e1f39b77d16e62043ff5042a5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is currently no known workaround for this vulnerability. It is recommended to update to the latest version of systemd as soon as possible.

Conclusion

The heap-double-free vulnerability in systemd can lead to a crash or potential code execution. It is crucial to update to the latest version of systemd to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for systemd →

Share this vulnerability

FAQ

systemd is an init system and service manager for Linux operating systems. It is responsible for managing the startup and shutdown of the system, as well as the management of system services.

A heap-double-free vulnerability occurs when a program attempts to free a heap-allocated object more than once. This can lead to memory corruption and potentially be exploited by an attacker.

This vulnerability was discovered through an OSS-Fuzz report. OSS-Fuzz is a continuous fuzzing service for open source software that helps identify and fix vulnerabilities.

This vulnerability has been assigned a high severity level due to its potential for crashing the system or allowing arbitrary code execution.

There is currently no known workaround for this vulnerability. It is recommended to update to the latest version of systemd to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for systemd.

How To Fix

Minimum fixed version

b48ed70c79c6482e1f39b77d16e62043ff5042a5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback