systemd 250 and 251 allows local users to achieve a systemd-coredump deadlock by triggering a crash that has a long backtrace. This occurs in parseelfobject in shared/elf-util.c. The exploitation methodology is to crash a binary calling the same function recursively, and put it in a deeply nested directory to make its backtrace large enough to cause the deadlock. This must be done 16 times when MaxConnections=16 is set for the systemd/units/systemd-coredump.socket file.
[
{
"digest": {
"length": 2545.0,
"function_hash": "59441325756538965850884987738680144644"
},
"target": {
"file": "src/shared/elf-util.c",
"function": "parse_elf_object"
},
"signature_type": "Function",
"id": "CVE-2022-45873-c3787ad2",
"signature_version": "v1",
"deprecated": false,
"source": "https://github.com/systemd/systemd/commit/076b807be472630692c5348c60d0c2b7b28ad437"
},
{
"digest": {
"line_hashes": [
"335302405321708938935141396139447868141",
"8697642566255136586972834532463810006",
"165316118472527127356869849474597479457",
"176012190918078567883637533140890888992",
"76586805774430584948006219143634117807",
"131809439504104987749757081948358040930",
"204694553894292713712657883303750991423",
"25149081735708012731670663668587885756",
"262753505588102054979328555150575251892",
"200477040380943634824281176247094748130",
"207070824076907456731310800294179242202",
"195325569208689013939052892647214559974",
"78419687446346223284140477965001469357",
"25374472437199420228331308369379113330",
"278861514212515928291602348456102653297",
"265817781040181873414692713236857902812",
"286812210026102892882124315784104134172",
"250825612794042130231410889293438716976",
"320156420109350792824390978006518495705",
"142934909001954727484879239751833703574",
"280488416545389327071463604496060019196",
"10739368935156455837607182040177420051",
"19338897423472260498883367470155812439",
"46770064379441325866531112895884833332",
"55378196942982274212857241567173145030",
"290832881425205347568052967243430124077",
"299973235703449141341453340902261078753",
"58317034188230598508020871528609599127",
"277113464624720444567511051036174358258",
"139438813647028839286574970076643560308"
],
"threshold": 0.9
},
"target": {
"file": "src/shared/elf-util.c"
},
"signature_type": "Line",
"id": "CVE-2022-45873-e4c98e5a",
"signature_version": "v1",
"deprecated": false,
"source": "https://github.com/systemd/systemd/commit/076b807be472630692c5348c60d0c2b7b28ad437"
}
]