{"id":"CVE-2021-46822","published":"2022-06-18T15:27:44Z","modified":"2024-08-04T05:17:42Z","title":"The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into…","vendor":null,"product":null,"tier":"tail","description":{"text":"The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01076,"percentile":0.65709,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2","tags":["x_refsource_MISC"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/221567","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":13.14}]},"euvd":{"id":"EUVD-2021-33478","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tenable-libjpeg-turbo-cve-2018-1152","parents":[{"from":"CVE-2018-14498","to":"CVE-2021-46822","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rdppm.c"],"commits":["https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9c78a04df4e44ef6487eee99c4258397f4fdca55","https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2"],"basis":"shared function","functions":["get_word_rgb_row"]}]},{"from":"CVE-2020-13790","to":"CVE-2021-46822","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rdppm.c"],"commits":["https://github.com/libjpeg-turbo/libjpeg-turbo/commit/3de15e0c344d11d4b90f4a47136467053eb2d09a","https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2"],"basis":"shared function","functions":["start_input_ppm"]}]}]}}