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.
[
{
"signature_type": "Line",
"source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e",
"id": "CVE-2022-3821-0c150019",
"target": {
"file": "src/test/test-time-util.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"187197774867605728975572453615684576112",
"200367803134423148290597242552267353202",
"86350558284044936531423369741668952492",
"279815649959355405795267225550957054386"
]
}
},
{
"signature_type": "Function",
"source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e",
"id": "CVE-2022-3821-cb534d4d",
"target": {
"function": "TEST",
"file": "src/test/test-time-util.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 96.0,
"function_hash": "318603724216709942588178449962184743803"
}
},
{
"signature_type": "Function",
"source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e",
"id": "CVE-2022-3821-d412c7a9",
"target": {
"function": "format_timespan",
"file": "src/basic/time-util.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 1651.0,
"function_hash": "90962051446743331888006721636164292196"
}
},
{
"signature_type": "Line",
"source": "https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e",
"id": "CVE-2022-3821-d70d50ae",
"target": {
"file": "src/basic/time-util.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"140786591668832523190839408699687877415",
"168438522841888037258673190060110437287",
"161448172375777290203407143804467937883",
"288618140824775369074077755147061431438"
]
}
}
]