An off-by-one Error issue was discovered in Systemd in formattimespan() function of time-util.c. An attacker could supply specific values for time and accuracy that leads to buffer overrun in formattimespan(), leading to a Denial of Service.
{ "vanir_signatures": [ { "signature_version": "v1", "deprecated": false, "target": { "file": "src/test/test-time-util.c" }, "source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e", "digest": { "line_hashes": [ "187197774867605728975572453615684576112", "200367803134423148290597242552267353202", "86350558284044936531423369741668952492", "279815649959355405795267225550957054386" ], "threshold": 0.9 }, "signature_type": "Line", "id": "CVE-2022-3821-0c150019" }, { "signature_version": "v1", "deprecated": false, "target": { "file": "src/test/test-time-util.c", "function": "TEST" }, "source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e", "digest": { "length": 96.0, "function_hash": "318603724216709942588178449962184743803" }, "signature_type": "Function", "id": "CVE-2022-3821-cb534d4d" }, { "signature_version": "v1", "deprecated": false, "target": { "file": "src/basic/time-util.c", "function": "format_timespan" }, "source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e", "digest": { "length": 1651.0, "function_hash": "90962051446743331888006721636164292196" }, "signature_type": "Function", "id": "CVE-2022-3821-d412c7a9" }, { "signature_version": "v1", "deprecated": false, "target": { "file": "src/basic/time-util.c" }, "source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e", "digest": { "line_hashes": [ "140786591668832523190839408699687877415", "168438522841888037258673190060110437287", "161448172375777290203407143804467937883", "288618140824775369074077755147061431438" ], "threshold": 0.9 }, "signature_type": "Line", "id": "CVE-2022-3821-d70d50ae" } ] }