
Cloud Vulnerability DB
A community-led vulnerabilities database
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)).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."