Systemd
CVE-2022-2526
CRITICAL
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
1DescriptionNVD
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.
AnalysisAI
A use-after-free vulnerability was found in systemd. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Use After Free vulnerability could allow attackers to access freed memory to execute arbitrary code or crash the application.
Technical ContextAI
This vulnerability is classified as Use After Free (CWE-416), which allows attackers to access freed memory to execute arbitrary code or crash the application. 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. Affected products include: Systemd Project Systemd, Netapp Active Iq Unified Manager, Netapp H300S Firmware, Netapp H500S Firmware, Netapp H700S Firmware.
RemediationAI
A vendor patch is available. Apply the latest security update as soon as possible. Use smart pointers or garbage-collected languages. Set pointers to NULL after freeing. Enable memory sanitizers.
Stack-based buffer overflow in the getpwnam and getgrnam functions of the NSS module nss-mymachines in systemd. Rated cr
Integer overflow in the valid_user_field function in journal/journald-native.c in systemd allows remote attackers to cau
A flaw in systemd v228 in /src/basic/fs-util.c caused world writable suid files to be created when using the systemd tim
systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., plausible su
It was discovered that a systemd service that uses DynamicUser property can get new privileges through the execution of
It was discovered that a systemd service that uses DynamicUser property can create a SUID/SGID binary that would be allo
A vulnerability in unit_deserialize of systemd allows an attacker to supply arbitrary state across systemd re-execution
systemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local
In systemd before v242-rc4, it was discovered that pam_systemd does not properly sanitize the environment before using t
A race condition in chown_one() of systemd allows an attacker to cause systemd to set arbitrary permissions on arbitrary
systemd v233 and earlier fails to safely parse usernames starting with a numeric digit (e.g. Rated critical severity (CV
The manager_dispatch_notify_fd function in systemd allows local users to cause a denial of service (system hang) via a z
Same weakness CWE-416 – Use After Free
View allSame technique Memory Corruption
View allShare
External POC / Exploit Code
Leaving vuln.today