Cloudanix VulnDB

CVE-2023-37837

Medium · 6.5

CVSS

6.5

EPSS

0.6%

Published

Jul 13, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in how certain boot software handles image files could let someone crash the system by feeding it a specially made file.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap buffer overflow in LineBitmapRequester::EncodeRegion during processing of crafted image data, resulting in memory corruption that can trigger denial of service.

Why it matters to the business

Affected boot loader packages on Debian and Ubuntu systems could be crashed by malicious image files, leading to availability issues during boot or image handling operations; the issue has been publicly known for over three years with fixes available and low observed exploitation rates.

How an attack unfolds

An attacker supplies a specially crafted file to an application using the vulnerable image encoding routine; the malformed input triggers the overflow during EncodeRegion processing, corrupting heap memory and causing the process to terminate.

How to fix it

Upgrade grub2 on Debian 11 to 2.06-3~deb11u6, on Debian 12 to 2.06-13+deb12u1, on Debian 13 to 2.12~rc1-11, and grub2-signed on Ubuntu 20.04 LTS to 1.187.6~20.04.1. Verify the installed package version after update and restart any dependent services.

How to confirm the fix worked

Confirm the running package version matches or exceeds the listed fixed releases using package manager queries; test with known-good and known-bad image files to verify absence of crashes during encoding.

Typical attack path

  1. Identify a target application or service that processes untrusted image files through the affected encoding path
  2. Craft a malicious file designed to overflow the heap buffer in LineBitmapRequester::EncodeRegion
  3. Deliver the file to the target (e.g., via download, attachment, or local execution)
  4. Trigger encoding of the file region to induce the overflow and resulting crash

How to detect it

Review system and application logs for unexpected crashes or terminations during image file processing; inspect any available core dumps or stack traces referencing LineBitmapRequester or EncodeRegion for signs of memory corruption.

What your security team should do

  • Apply the listed package updates immediately on all affected Debian and Ubuntu systems
  • Scan for and replace any remaining vulnerable package versions across the environment
  • Monitor upstream advisories for related components that embed the affected image handling code

The record

libjpeg commit db33a6e was discovered to contain a heap buffer overflow via LineBitmapRequester::EncodeRegion at linebitmaprequester.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 libjpeg 0 No fix
Debian:12 libjpeg 0 No fix
Debian:13 libjpeg 0 No fix
Ubuntu:20.04:LTS libjpeg 0 No fix
Ubuntu:22.04:LTS libjpeg 0 No fix
Ubuntu:24.04:LTS libjpeg 0 No fix
Ubuntu:24.10 libjpeg 0 No fix
Ubuntu:25.04 libjpeg 0 No fix
Ubuntu:25.10 libjpeg 0 No fix
Ubuntu:Pro:20.04:LTS libjpeg 0 No fix

Related vulnerabilities