SUSE-SU-2024:4414-1
SUSE-SU-2024:4414-1 · Security update: gdb
Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- gdb SUSE Linux Enterprise Module for Development Tools 15 SP5Update to 14.2-150400.15.20.1
- gdb SUSE Linux Enterprise Module for Development Tools 15 SP6Update to 14.2-150400.15.20.1
- gdb SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOSUpdate to 14.2-150400.15.20.1
- gdb SUSE Linux Enterprise High Performance Computing 15 SP4-LTSSUpdate to 14.2-150400.15.20.1
- and 6 more
Check the installed version:
rpm -q gdbAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from the distribution’s bulletin. Check the original advisory before installing the update.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
This update for gdb fixes the following issues:
Mention changes in GDB 14:
- GDB now supports the AArch64 Scalable Matrix Extension 2 (SME2), which includes a new 512 bit lookup table register named ZT0.
- GDB now supports the AArch64 Scalable Matrix Extension (SME), which includes a new matrix register named ZA, a new thread register TPIDR2 and a new vector length register SVG (streaming vector granule). GDB also supports tracking ZA state across signal frames. Some features are still under development or are dependent on ABI specs that are still in alpha stage. For example, manual function calls with ZA state don't have any special handling, and tracking of SVG changes based on DWARF information is still not implemented, but there are plans to do so in the future.
- GDB now recognizes the NO_COLOR environment variable and disables styling according to the spec. See https://no-color.org/. Styling can be re-enabled with 'set style enabled on'.
- The AArch64 'org.gnu.gdb.aarch64.pauth' Pointer Authentication feature string has been deprecated in favor of the 'org.gnu.gdb.aarch64.pauth_v2' feature string.
- GDB now has some support for integer types larger than 64 bits.
- Multi-target feature configuration. GDB now supports the individual configuration of remote targets' feature sets. Based on the current selection of a target, the commands 'set remote <name>-packet (on|off|auto)' and 'show remote <name>-packet' can be used to configure a target's feature packet and to display its configuration, respectively.
- GDB has initial built-in support for the Debugger Adapter Protocol.
- For the break command, multiple uses of the 'thread' or 'task' keywords will now give an error instead of just using the thread or task id from the last instance of the keyword. E.g.: break foo thread 1 thread 2 will now give an error rather than using 'thread 2'.
- For the watch command, multiple uses of the 'task' keyword will now give an error instead of just using the task id from the last instance of the keyword. E.g.: watch my_var task 1 task 2 will now give an error rather than using 'task 2'. The 'thread' keyword already gave an error when used multiple times with the watch command, this remains unchanged.
- The 'set print elements' setting now helps when printing large arrays. If an array would otherwise exceed max-value-size, but 'print elements' is set such that the size of elements to print is less than or equal to 'max-value-size', GDB will now still print the array, however only 'max-value-size' worth of data will be added into the value history.
- For both the break and watch commands, it is now invalid to use both the 'thread' and 'task' keywords within the same command. For example the following commnds will now give an error: break foo thread 1 task 1 watch var thread 2 task 3
- The printf command now accepts a '%V' output format which will format an expression just as the 'print' command would. Print options can be placed withing '[...]' after the '%V' to modify how the value is printed. E.g: printf '%V', some_array printf '%V[-array-indexes on]', some_array will print the array without, or with array indexes included, just as the array would be printed by the 'print' command. This functionality is also available for dprintf when dprintf-style is 'gdb'.
- When the printf command requires a string to be fetched from the inferior, GDB now uses the existing 'max-value-size' setting to the limit the memory allocated within GDB. The default 'max-value-size' is 64k. To print longer strings you should increase 'max-value-size'.
- The Ada 2022 Enum_Rep and Enum_Val attributes are now supported.
- The Ada 2022 target name symbol ('@') is now supported by the Ada expression parser.
- The 'list' command now accepts '.' as an argument, which tells GDB to print the location around the point of execution within the current frame. If the inferior hasn't started yet, the command will print around the beginning of the 'main' function.
- Using the 'list' command with no arguments in a situation where the command would attempt to list past the end of the file now warns the user that the end of file has been reached, refers the user to the newly added '.' argument
- Breakpoints can now be inferior-specific. This is similar to the existing thread-specific breakpoint support. Breakpoint conditions can include the 'inferior' keyword followed by an inferior id (as displayed in the 'info inferiors' output). It is invalid to use the 'inferior' keyword with either the 'thread' or 'task' keywords when creating a breakpoint.
- New convenience function '$_shell', to execute a shell command and return the result. This lets you run shell commands in expressions. Some examples: (gdb) p $_shell('true') $1 = 0 (gdb) p $_shell('false') $2 = 1 (gdb) break func if $_shell('some command') == 0
- New commands:
- set debug breakpoint on|off show debug breakpoint Print additional debug messages about breakpoint insertion and removal.
- maintenance print record-instruction [ N ] Print the recorded information for a given instruction. If N is not given prints how GDB would undo the last instruction executed. If N is negative, prints how GDB would undo the N-th previous instruction, and if N is positive, it prints how GDB will redo the N-th following instruction.
- maintenance info frame-unwinders List the frame unwinders currently in effect, starting with the highest priority.
- maintenance wait-for-index-cache Wait until all pending writes to the index cache have completed.
- set always-read-ctf on|off show always-read-ctf When off, CTF is only read if DWARF is not present. When on, CTF is read regardless of whether DWARF is present. Off by default.
- info main Get main symbol to identify entry point into program.
- set tui mouse-events [on|off] show tui mouse-events When on (default), mouse clicks control the TUI and can be accessed by Python extensions. When off, mouse clicks are handled by the terminal, enabling terminal-native text selection.
- MI changes:
- MI version 1 has been removed.
- mi now reports 'no-history' as a stop reason when hitting the end of the reverse execution history.
- When creating a thread-specific breakpoint using the '-p' option, the -break-insert command would report the 'thread' field twice in the reply. The content of both fields was always identical. This has now been fixed; the 'thread' field will be reported just once for thread-specific breakpoints, or not at all for breakpoints without a thread restriction. The same is also true for the 'task' field of an Ada task-specific breakpoint.
- It is no longer possible to create a thread-specific breakpoint for a thread that doesn't exist using '-break-insert -p ID'. Creating breakpoints for non-existent threads is not allowed when using the CLI, that the MI allowed it was a long standing bug, which has now been fixed.
- The '--simple-values' argument to the '-stack-list-arguments','-stack-list-locals', '-stack-list-variables', and '-var-list-children' commands now takes reference types into account: that is, a value is now considered simple if it is neither an array, structure, or union, nor a reference to an array, structure, or union. (Previously all references were considered simple.) Support for this feature can be verified by using the '-list-features' command, which should contain 'simple-values-ref-types'.
- The -break-insert command now accepts a '-g thread-group-id' option to allow for the creation of inferior-specific breakpoints.
- The bkpt tuple, which appears in breakpoint-created notifications
- Published
- Updated
Vulnerabilities closed
Stack: system
Updated packages and versions
gdb SUSE Linux Enterprise Module for Development Tools 15 SP5
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb SUSE Linux Enterprise Module for Development Tools 15 SP6
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb SUSE Linux Enterprise Server 15 SP4-LTSS
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb SUSE Linux Enterprise Server for SAP Applications 15 SP4
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb openSUSE Leap 15.5
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb-testresults openSUSE Leap 15.5
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb openSUSE Leap 15.6
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1
gdb-testresults openSUSE Leap 15.6
- Affected ranges
- ECOSYSTEM: < 14.2-150400.15.20.1
Update to 14.2-150400.15.20.1