CVE-2022-4121
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2022-4121 is a null pointer dereference vulnerability discovered in libetpan's IMAP STATUS command handling component, specifically in the mailimapmailboxdatastatusfree function within low-level/imap/mailimap_types.c. The vulnerability was disclosed on January 17, 2023, affecting the libetpan library (NVD).

Technical details

The vulnerability occurs when mailimapmailboxdatastatusfree attempts to free stinfolist of mbdatastatus without proper NULL pointer validation. The issue is triggered when an invalid STATUS response is received, where mailimapmailboxdatastatusparse continues execution even after receiving a MAILIMAPERRORPARSE error, leading to a NULL pointer being passed to clist_foreach (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The primary impact of this vulnerability is a potential remote denial of service when an attacker sends specially crafted STATUS responses to trigger the null pointer dereference, resulting in application crashes (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in libetpan through a commit that adds a NULL pointer check before attempting to free stinfolist. The fix involves adding a conditional check 'if (info->stinfolist != NULL)' before performing operations on the pointer (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • DockerDocker
  • golang-1.19
NoYesDec 02, 2025
CVE-2025-64460HIGH7.5
  • Linux DebianLinux Debian
  • python-django
NoYesDec 02, 2025
CVE-2025-65187MEDIUM6.1
  • Linux DebianLinux Debian
  • civicrm
NoNoDec 02, 2025
CVE-2025-65105MEDIUM4.5
  • Linux DebianLinux Debian
  • github.com/apptainer/apptainer
NoYesDec 02, 2025
CVE-2025-13372MEDIUM4.3
  • Linux DebianLinux Debian
  • py3-django
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management