---
title: "CVE-2022-3821"
canonical_url: "https://pkgseek.com/security/CVE-2022-3821"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2022-3821

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.

CVE-2022-3821 is rated MEDIUM (5.5), with 62 indexed affected package builds across 4 distributions.

- **Severity / Score**: MEDIUM (5.5)
- **Affected builds**: 62
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | systemd | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-container | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-devel | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-journal-remote | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-libs | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-pam | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-tests | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Alibaba Cloud Linux | 3 | systemd-udev | 239-58.0.4.al8.8 | 239-68.0.1.al8.1 |
| Oracle Linux | 8 | systemd | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-container | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-devel | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-journal-remote | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-libs | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-pam | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-tests | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 8 | systemd-udev | 239-68.0.2.el8 | 239-68.0.2.el8_7.1 |
| Oracle Linux | 9 | systemd | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-container | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-devel | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-journal-remote | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-libs | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-oomd | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-pam | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-resolved | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-rpm-macros | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Oracle Linux | 9 | systemd-udev | 250-12.0.2.el9_1 | 250-12.0.2.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-container | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-devel | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-journal-remote | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-libs | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-oomd | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-pam | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-resolved | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-rpm-macros | 250-12.el9_1 | 250-12.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | systemd-udev | 250-12.el9_1 | 250-12.el9_1.1 |
| Ubuntu | focal | libnss-myhostname | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libnss-mymachines | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libnss-systemd | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libpam-systemd | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libsystemd0 | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libsystemd-dev | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libudev1 | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | libudev-dev | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | systemd | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | systemd-container | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | systemd-sysv | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | systemd-timesyncd | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | focal | udev | 245.4-4ubuntu3 | 245.4-4ubuntu3.20 |
| Ubuntu | jammy | libnss-mymachines | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libnss-systemd | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libpam-systemd | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libsystemd0 | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libsystemd-dev | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libudev1 | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | libudev-dev | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | systemd | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | systemd-container | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | systemd-oomd | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | systemd-sysv | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | systemd-timesyncd | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
| Ubuntu | jammy | udev | 249.11-0ubuntu3 | 249.11-0ubuntu3.7 |
