Skip to content
VulniPulse
Advisory severityMedium5.5Red Hat Linux

Medium [CVE-2022-3821] off-by-one Error issue was discovered in Systemd in format_timespan function of time-util.c

This medium-severity Red Hat Linux advisory covers CVE-2022-3821 affecting Red Hat Enterprise Linux 8.6 Extended Update Support, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 7.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2022-3821 Source published Source updated

VulniPulse record published

Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open source advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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.

Network Manager uses systemd's format_timespan() only via the FORMAT_TIMESPAN() macro which allocates a 64-byte buffer on the stack. The longest string representing 32bit values in seconds doesn't exceed 34 bytes (for example, "134y 10month 10w 1d 10h 10min 10s").

Since all the values are in exact seconds there is no decimal part to print. Therefore, it doesn't seem possible to trigger the buffer overflow by returning a specially crafted DHCPv6 lease, and the CVE doesn't affect Network Manager.

Red Hat severity: Moderate — CVSS 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H). Weakness: CWE-193.

Affected Red Hat products: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8.6 Extended Update Support; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 7. Red Hat lists Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8 as not affected.

Will not fix / out of support: Red Hat Enterprise Linux 7. Red Hat fixing advisory: RHSA-2023:0100, RHSA-2024:1105, RHSA-2023:0336.

Affected products named by the advisory: Red Hat package: systemd.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.

Official advisory · high-confidence parse· fetched 12 hours ago·verify at source

Fixed versions
  • systemd-0:239-68.el8_7.1
  • systemd-0:239-58.el8_6.13
  • systemd-0:250-12.el9_1.1
  • RHSA-2023:0100
  • RHSA-2024:1105
  • RHSA-2023:0336

Official advisory · high-confidence parse· fetched 12 hours ago·verify at source

Mitigation

Upgrade to a fixed release: systemd-0:239-68.el8_7.1, systemd-0:239-58.el8_6.13, systemd-0:250-12.el9_1.1, RHSA-2023:0100, RHSA-2024:1105, RHSA-2023:0336. That is the remediation for this advisory.

The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.

Official advisory · high-confidence parse· fetched 12 hours ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.