CVE-2022-3821 Integer overflow in systemd
An off-by-one error in systemd's time formatting allows attackers to cause a denial of service via specific input values.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-3821?
CVE-2022-3821 is a medium-severity vulnerability in Fedoraproject Fedora, published on 8 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c. An attacker could supply specific values for time and accuracy that leads to buffer overrun in format_timespan(), leading to a Denial of Service.
Weakness: CWE-193
Which versions are affected by CVE-2022-3821?
It affects 3 products.
Linux distribution packages (40)
systemd AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-container AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-devel AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-journal-remote AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-libs AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-pam AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-tests AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd-udev AlmaLinux:8 | All versions | 239-68.el8_7.1 |
systemd AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-container AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-devel AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-journal-remote AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-libs AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-oomd AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-pam AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-resolved AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-rpm-macros AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd-udev AlmaLinux:9 | All versions | 250-12.el9_1.1 |
systemd Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-container Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-container-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-journal-remote Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-journal-remote-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-pam Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-pam-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-tests Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-tests-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-udev Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-udev-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:239-68.el8_7.1 |
systemd-container-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
systemd-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
systemd-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
systemd-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
systemd-devel-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
systemd-journal-remote Red Hat:enterprise_linux:9::appstream | All versions | 0:250-12.el9_1.1 |
Products include Fedoraproject Fedora, Redhat Enterprise Linux, Systemd Project Systemd.
How do I fix CVE-2022-3821?
Apply the vendor's patch.
Is CVE-2022-3821 being exploited?
There is no known exploitation of CVE-2022-3821 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALSA-2023:0100, ALSA-2023:0336, AZL-11443, AZL-41659, CLSA-2023-1674163819, CLSA-2023-1674164032 and 17 more.