{
  "threat_severity" : "Moderate",
  "public_date" : "2021-04-07T00:00:00Z",
  "bugzilla" : {
    "description" : "libjpeg-turbo: heap buffer overflow in get_word_rgb_row() in rdppm.c",
    "id" : "2100044",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2100044"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-119",
  "details" : [ "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.", "A heap-based buffer overflow vulnerability was found in libjpeg-turbo in the get_word_rgb_row() function in rdppm.c. The flaw occurs when the PPM reader in libjpeg-turbo mishandles use of the tjLoadImage() function for loading a 16-bit binary PPM file into a grayscale uncompressed image buffer and then loading a 16-bit binary PGM file into an RGB uncompressed image buffer. This flaw allows a remote attacker to persuade a victim to open a specially-crafted file, causing the application to crash." ],
  "statement" : "The only way that users could potentially encounter these issues is through the tjLoadImage() function. TJBench and cjpeg are unaffected.\nRHEL-8 ships libjpeg-turbo v1.5.3 which does not include vulnerable tjLoadImage() functionality.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-03-06T00:00:00Z",
    "advisory" : "RHSA-2023:1068",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "libjpeg-turbo-0:2.0.90-6.el9_1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "libjpeg-turbo",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "libjpeg-turbo",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "libjpeg-turbo",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-46822\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-46822\nhttps://exchange.xforce.ibmcloud.com/vulnerabilities/221567" ],
  "name" : "CVE-2021-46822",
  "csaw" : false
}