Vulnerability record · OpenEuler 22.03-LTS-SP2
An update for stb is now available for openEuler-22.03-LTS-SP2.
OpenEuler 22.03-LTS-SP2
What it fixes
Synopsis:
stb security updateSummary:
An update for stb is now available for openEuler-22.03-LTS-SP2.Description:
Single-file public domain libraries for C/C++.
stb_image is a single file MIT licensed library for processing images. When stbi_set_flip_vertically_on_load is set to TRUE and req_comp is set to a number that doesn’t match the real number of components per pixel, the library attempts to flip the image vertically. A crafted image file can trigger memcpy out-of-bounds read because bytes_per_pixel used to calculate bytes_per_row doesn’t match the real image array dimensions.(CVE-2023-45662)
stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the stbi__hdr_load function and in the stbi__tga_load function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.(CVE-2023-45663)Topic:
An update for stb is now available for openEuler-22.03-LTS-SP2.
openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.Severity:
HighAffected Component:
stb
Manual fix · OpenEuler 22.03-LTS-SP2
sudo dnf upgrade stb stb-devel stb-help stb_c_lexer-devel stb_connected_components-devel stb_divide-devel …rpm -q stb stb-devel stb-help stb_c_lexer-devel stb_connected_components-devel stb_divide-devel …Sources