CVE-2022-3821: An off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c
CVE-2022-3821 is a medium-severity flaw (CVSS 5.5) affecting systemd, enterprise linux, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 63%) |
| CISA exploited list | No |
| Weakness | CWE-193 |
| Published | 2022-11-08 |
| Last modified | 2026-10-14 |
Last updated 2026-10-14 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-3821?
systemd: upgrade to newer than 251; enterprise linux: mitigate or apply the listed mitigation; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-3821 being exploited?
CVE-2022-3821 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-3821 affect?
CVE-2022-3821 affects systemd, enterprise linux, fedora. Severity is medium (CVSS 5.5). 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 Servi
How urgent is CVE-2022-3821?
Priority 39/100. Public exploit reference; On your watchlist
Related CVEs
- CVE-2023-7008 MEDIUM 5.9 MITIGATE A vulnerability was found in systemd-resolved
- CVE-2021-3997 MEDIUM 5.5 UPGRADE MITIGATE A flaw was found in systemd
- CVE-2023-26604 HIGH 7.8 MITIGATE UPGRADE systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., pl
- CVE-2022-45873 MEDIUM 5.5 UPGRADE MITIGATE systemd 250 and 251 allows local users to achieve a systemd-coredump deadlock by triggering a crash that has a
- CVE-2021-33910 MEDIUM 5.5 UPGRADE MITIGATE basic/unit-name.c in systemd prior to 246.15, 247.8, 248.5, and 249.1 has a Memory Allocation with an Excessiv