CVE-2023-39128
NixOS vulnerability analysis and mitigation

Overview

GNU gdb (GDB) 13.0.50.20220805-git was discovered to contain a stack overflow vulnerability in the adadecode function located at /gdb/ada-lang.c. The vulnerability was identified on July 15, 2023, and affects the Ada language handling component of GDB ([Sourceware Bug](https://sourceware.org/bugzilla/showbug.cgi?id=30639)).

Technical details

The vulnerability occurs in the ada_decode function when processing input strings consisting entirely of digits. The bug manifests as a dynamic-stack-buffer-overflow at line 1388 in ada-lang.c. The issue arises when the function attempts to remove trailing digits from the input string and incorrectly handles boundary conditions, leading to a buffer overflow when accessing memory at negative indices. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with the vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to a denial of service condition through application crash. When exploited, it causes a dynamic-stack-buffer-overflow, which could potentially disrupt the debugging session and cause GDB to terminate unexpectedly (Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed in GDB version 14.1 through a patch that adds proper bounds checking in the ada_decode function. The fix was committed on August 16, 2023, by Tom Tromey. Ubuntu has released fixed versions for various distributions: 12.1-0ubuntu1~22.04.2 for Ubuntu 22.04 LTS, 9.2-0ubuntu1~20.04.2 for Ubuntu 20.04 LTS, and 8.1.1-0ubuntu1+esm1 for Ubuntu 18.04 LTS (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesDec 01, 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