CVE-2021-46822: Buffer Overflow

Published Jun 18, 2022
·
Updated

Last updated 24 July 2024

Other sources

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 getwordrgbrow function in rdppm.c.

Affected Software

2 affected componentsFixes available
Libjpeg-turbo Libjpeg-turbo>1.5.3<=2.0.90
debian/libjpeg-turbo<=1:2.0.6-4
1:2.1.5-21:2.1.5-3.1

Event History

Jun 18, 2022
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
Description
Jan 12, 2024
Data Sourced
via Launchpad·12:02 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:37 AM
RemedyDescriptionSeverityAffected Software
Feb 23, 2025
Data Sourced
via Debian·04:20 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-46822?

The severity of CVE-2021-46822 is medium with a CVSS score of 5.5.

2

What software is affected by CVE-2021-46822?

The libjpeg-turbo package on Debian, Ubuntu, and the Libjpeg-turbo library are affected.

3

How does CVE-2021-46822 impact the affected software?

CVE-2021-46822 can cause a heap-based buffer overflow in the PPM reader of libjpeg-turbo, potentially leading to unauthorized access or code execution.

4

Is there a fix for CVE-2021-46822?

Yes, updates have been released to address the vulnerability. Please refer to the respective vendor's advisories for the updated versions.

5

Where can I find more information about CVE-2021-46822?

More information about CVE-2021-46822 can be found on the IBM X-Force Exchange, libjpeg-turbo GitHub repository, and the Launchpad bug report.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2021-46822 - Buffer Overflow - SecAlerts