Off-by-one in systemd - CVE-2022-3821
Published: December 1, 2022
Vulnerability identifier: #VU69807
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-3821
CWE-ID: CWE-193
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: Freedesktop.org
Affected software:
systemd
systemd
Detailed vulnerability description
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to an off-by-one error within the format_timespan() function in time-util.c. A local user can trigger an off-by-one error and perform a denial of service (DoS) attack.
How to mitigate CVE-2022-3821
Install updates from vendor's website.
Sources
- https://github.com/systemd/systemd/issues/23928
- https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e
- https://github.com/systemd/systemd/pull/23933
- https://bugzilla.redhat.com/show_bug.cgi?id=2139327
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RVBQC2VLSDVQAPJTEMTREXDL4HYLXG2P/