SDLttf v2.0.18 and below was discovered to contain an arbitrary memory write via the function TTFRenderText_Solid(). This vulnerability is triggered via a crafted TTF file.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27470.json"
[
{
"deprecated": false,
"id": "CVE-2022-27470-256dc5b1",
"digest": {
"length": 1018.0,
"function_hash": "137396571173358460168307247144123650420"
},
"source": "https://github.com/libsdl-org/sdl_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "SDL_ttf.c",
"function": "Create_Surface_Blended"
}
},
{
"deprecated": false,
"id": "CVE-2022-27470-669b07da",
"digest": {
"length": 1848.0,
"function_hash": "130009402887661684762311681368155425169"
},
"source": "https://github.com/libsdl-org/sdl_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "SDL_ttf.c",
"function": "Create_Surface_Shaded"
}
},
{
"deprecated": false,
"id": "CVE-2022-27470-db00c63a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270510694538921350392121102530163546239",
"124122267798574511640084568586616589552",
"286458684089463468338458938889385322942",
"150679597858678513831754182126436406233",
"142266846761783483939639097313637824327",
"180409813062706396087937398028464459544",
"286458684089463468338458938889385322942",
"150679597858678513831754182126436406233",
"83381688109695189361718463534996348629",
"160948163142671191374137794067733679829",
"217842000718041149224293011725540218397",
"116259183769259541956858137261490443221"
]
},
"source": "https://github.com/libsdl-org/sdl_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "SDL_ttf.c"
}
},
{
"deprecated": false,
"id": "CVE-2022-27470-ef340056",
"digest": {
"length": 1149.0,
"function_hash": "335978653677243205703509191001628725270"
},
"source": "https://github.com/libsdl-org/sdl_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "SDL_ttf.c",
"function": "Create_Surface_Solid"
}
}
]