CVE-2024-28571
NoneCVSS
—
EPSS
0.3%
Published
Mar 20, 2024
CISA due date
—
Cloudanix analysis
A bug in common image-handling software can make programs crash when they open certain picture files.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in FreeImage 3.19.0 fill_input_buffer() during JPEG image parsing allows local denial of service.
Why it matters to the business
Image-processing workloads on AlmaLinux 8 may crash when handling crafted JPEGs, causing application downtime; the affected selinux-policy packages are broadly deployed.
How an attack unfolds
A local attacker supplies a malicious JPEG to any process using the vulnerable FreeImage library; the overflow occurs inside fill_input_buffer() and terminates the process.
How to fix it
Upgrade selinux-policy, selinux-policy-devel, selinux-policy-doc, selinux-policy-minimum, selinux-policy-mls, selinux-policy-sandbox and selinux-policy-targeted on AlmaLinux 8 to 3.14.3-95.el8 or newer.
How to confirm the fix worked
Confirm installed package versions match or exceed 3.14.3-95.el8 and test JPEG processing with known-good and boundary-case images.
Typical attack path
- Locate an application or service that uses FreeImage to read JPEG files
- Prepare a JPEG image crafted to overflow the input buffer
- Trigger image loading via the target application or API call
- Cause process crash and denial of service
How to detect it
Review application and system logs for unexpected terminations while processing JPEG images; correlate with process crash dumps or core files.
What your security team should do
- Apply the listed AlmaLinux 8 package updates without delay
- Inventory services that depend on FreeImage or the selinux-policy stack
- Add JPEG parsing to crash-monitoring and restart policies
The record
Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to cause a denial of service (DoS) via the fill_input_buffer() function when reading images in JPEG format.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | freeimage | 0 | No fix |
| Debian:12 | freeimage | 0 | No fix |
| Debian:13 | freeimage | 0 | No fix |
| Ubuntu:20.04:LTS | freeimage | 0 | No fix |
| Ubuntu:22.04:LTS | freeimage | 0 | No fix |
| Ubuntu:24.04:LTS | freeimage | 0 | No fix |
| Ubuntu:24.10 | freeimage | 0 | No fix |
| Ubuntu:25.04 | freeimage | 0 | No fix |
| Ubuntu:25.10 | freeimage | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | freeimage | 0 | No fix |
Related vulnerabilities
- CVE-2024-9029 A flaw was found in the freeimage library. Also affects freeimage
- CVE-2024-31570 In FreeImage library version 3.19.0 [r1909], when reading images in XPM format, the… Also affects freeimage
- CVE-2024-28583 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28584 Null Pointer Dereference vulnerability in open source FreeImage v.3.19.0 [r1909] allows a… Also affects freeimage
- CVE-2024-28578 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28579 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28580 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28582 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage