p PatchFirst

CVE-2023-4039

CVE-2023-4039 · GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64

CVSS 4.8 · Medium · EPSS 1.0% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • arm gnu toolchainNo fix published
  • gccNo fix published
  • gcc Alpine 3.19Update to 13.2.1_git20231014-r0
  • gcc Alpine 3.20Update to 13.2.1_git20231014-r0
  • and 20 more

Check the installed version:

apk list -I -o gcc

Assess 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 | sh
Check your server for free →

Channels 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 public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

**DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains that target AArch64 allows an attacker to exploit an existing buffer overflow in dynamically-sized local variables in your application without this being detected. This stack-protector failure only applies to C99-style dynamically-sized local variables or those created using alloca(). The stack-protector operates as intended for statically-sized local variables.

The default behavior when the stack-protector detects an overflow is to terminate your application, resulting in controlled loss of availability. An attacker who can exploit a buffer overflow without triggering the stack-protector might be able to change program flow control to cause an uncontrolled loss of availability or to go further and affect confidentiality or integrity. NOTE: The GCC project argues that this is a missed hardening bug and not a vulnerability by itself.

Published
Updated

Fixes in distributions

  • USN-7700-1 · Ubuntu 22.04 LTS, Ubuntu Pro 20.04 LTS ·
  • openSUSE-SU-2024:13233-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:13234-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:13235-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2024:0045-1 · SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5 ·
  • SUSE-SU-2023:4480-1 · SUSE Linux Enterprise Module for Toolchain 12, SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5 ·
  • SUSE-SU-2023:4458-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, openSUSE Leap Micro 5.3, openSUSE Leap Micro 5.4, SUSE Enterprise Storage 7.1, SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise Installer Updates 15 SP1, SUSE Linux Enterprise Installer Updates 15 SP2, SUSE Linux Enterprise Installer Updates 15 SP3, SUSE Linux Enterprise Installer Updates 15 SP4, SUSE Linux Enterprise Installer Updates 15 SP5, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Module for Basesystem 15 SP4, SUSE Linux Enterprise Module for Basesystem 15 SP5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5, SUSE Linux Enterprise Module for Package Hub 15 SP4, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Linux Enterprise Server 15 SP1-LTSS, SUSE Linux Enterprise Server 15 SP2-LTSS, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP1, SUSE Linux Enterprise Server for SAP Applications 15 SP2, SUSE Linux Enterprise Server for SAP Applications 15 SP3 ·
  • SUSE-SU-2023:4162-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, openSUSE Leap Micro 5.3, openSUSE Leap Micro 5.4, SUSE Linux Enterprise Installer Updates 15 SP2, SUSE Linux Enterprise Installer Updates 15 SP3, SUSE Linux Enterprise Installer Updates 15 SP4, SUSE Linux Enterprise Installer Updates 15 SP5, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5, SUSE Linux Enterprise Module for Basesystem 15 SP4, SUSE Linux Enterprise Module for Basesystem 15 SP5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5, SUSE Linux Enterprise Module for Package Hub 15 SP4, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Manager Proxy 4.2, SUSE Manager Server 4.2 ·
  • SUSE-SU-2023:3686-1 · SUSE Linux Enterprise Module for Basesystem 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP1 ·
  • SUSE-SU-2023:3662-1 · SUSE Linux Enterprise Module for Toolchain 12, SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5 ·
  • SUSE-SU-2023:3661-1 · openSUSE Leap 15.4, openSUSE Leap Micro 5.3, openSUSE Leap Micro 5.4, SUSE Enterprise Storage 7, SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise Installer Updates 15 SP1, SUSE Linux Enterprise Installer Updates 15 SP2, SUSE Linux Enterprise Installer Updates 15 SP3, SUSE Linux Enterprise Installer Updates 15 SP4, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Module for Basesystem 15 SP4, SUSE Linux Enterprise Module for Basesystem 15 SP5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5, SUSE Linux Enterprise Module for Legacy 15 SP4, SUSE Linux Enterprise Module for Package Hub 15 SP4, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Linux Enterprise Server 15 SP1-LTSS, SUSE Linux Enterprise Server 15 SP2-LTSS, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP1, SUSE Linux Enterprise Server for SAP Applications 15 SP2, SUSE Linux Enterprise Server for SAP Applications 15 SP3, SUSE Manager Proxy 4.2, SUSE Manager Server 4.2 ·
  • SUSE-SU-2023:3640-1 · SUSE Linux Enterprise Module for Toolchain 12, SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5 ·

Stack: system

Affected products and versions

  • arm gnu toolchain

    Versions
    • All versions where option -fstack-protector is used: Affected

    No fix published

  • gcc

    Versions
    • All versions of GCC that target AArch64 when option -fstack-protector is used: Affected

    No fix published

  • gcc Alpine 3.19

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc Alpine 3.20

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 13.2.1_git20231014-r0

    Update to 13.2.1_git20231014-r0

  • gcc-11 Debian 12

    Versions
    • 11.3.0-12
    • 11.3.0-13
    • 11.3.0-14
    • 11.3.0-15
    • 11.4.0-1
    • 11.4.0-10
    All versions (28)
    • 11.4.0-2
    • 11.4.0-3
    • 11.4.0-4
    • 11.4.0-5
    • 11.4.0-6
    • 11.4.0-7
    • 11.4.0-8
    • 11.4.0-9
    • 11.5.0-1
    • 11.5.0-10
    • 11.5.0-11
    • 11.5.0-12
    • 11.5.0-13
    • 11.5.0-14
    • 11.5.0-2
    • 11.5.0-3
    • 11.5.0-4
    • 11.5.0-5
    • 11.5.0-6
    • 11.5.0-7
    • 11.5.0-8
    • 11.5.0-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-12 Debian 12

    Versions
    • 12.2.0-14
    Affected ranges
    • ECOSYSTEM: < 12.2.0-14+deb12u1

    Update to 12.2.0-14+deb12u1

  • gcc-12 Debian 13

    Affected ranges
    • ECOSYSTEM: < 12.3.0-9

    Update to 12.3.0-9

  • gcc-13 Debian 13

    Affected ranges
    • ECOSYSTEM: < 13.2.0-4

    Update to 13.2.0-4

  • gcc-13 Debian 14

    Affected ranges
    • ECOSYSTEM: < 13.2.0-4

    Update to 13.2.0-4

  • gcc-4.7 Ubuntu 14.04 LTS

    Versions
    • 4.7.3-7ubuntu3
    • 4.7.3-8ubuntu1
    • 4.7.3-9ubuntu1
    • 4.7.3-9ubuntu2
    • 4.7.3-10ubuntu1
    • 4.7.3-11ubuntu1
    All versions (7)
    • 4.7.3-12ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-4.8 Ubuntu 14.04 LTS

    Versions
    • 4.8.1-10ubuntu8
    • 4.8.2-1ubuntu1
    • 4.8.2-1ubuntu2
    • 4.8.2-10ubuntu1
    • 4.8.2-10ubuntu2
    • 4.8.2-12ubuntu2
    All versions (23)
    • 4.8.2-13ubuntu1
    • 4.8.2-14ubuntu1
    • 4.8.2-14ubuntu2
    • 4.8.2-14ubuntu4
    • 4.8.2-15ubuntu3
    • 4.8.2-16ubuntu1
    • 4.8.2-16ubuntu3
    • 4.8.2-16ubuntu4
    • 4.8.2-16ubuntu5
    • 4.8.2-16ubuntu6
    • 4.8.2-17ubuntu1
    • 4.8.2-17ubuntu2
    • 4.8.2-19ubuntu1
    • 4.8.4-2ubuntu1~14.04
    • 4.8.4-2ubuntu1~14.04.1
    • 4.8.4-2ubuntu1~14.04.3
    • 4.8.4-2ubuntu1~14.04.4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-mingw-w64 Ubuntu 14.04 LTS

    Versions
    • 8
    • 9
    • 11
    • 12
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gccgo-4.9 Ubuntu 14.04 LTS

    Versions
    • 4.9-20140213-0ubuntu1
    • 4.9-20140213-0ubuntu2
    • 4.9-20140217-0ubuntu1
    • 4.9-20140222-0ubuntu1
    • 4.9-20140303-0ubuntu2
    • 4.9-20140303-0ubuntu3
    All versions (11)
    • 4.9-20140321-0ubuntu1
    • 4.9-20140330-0ubuntu1
    • 4.9-20140406-0ubuntu1
    • 4.9.1-0ubuntu1
    • 4.9.3-0ubuntu4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-5 Ubuntu Pro 16.04 LTS

    Versions
    • 5.2.1-22ubuntu2
    • 5.2.1-22ubuntu5
    • 5.2.1-23ubuntu1
    • 5.2.1-26ubuntu1
    • 5.2.1-27ubuntu1
    • 5.3.1-2ubuntu2
    All versions (39)
    • 5.3.1-3ubuntu1
    • 5.3.1-3ubuntu3
    • 5.3.1-4ubuntu1
    • 5.3.1-5ubuntu1
    • 5.3.1-5ubuntu2
    • 5.3.1-5ubuntu3
    • 5.3.1-6ubuntu1
    • 5.3.1-6ubuntu2
    • 5.3.1-7ubuntu1
    • 5.3.1-8ubuntu2
    • 5.3.1-8ubuntu3
    • 5.3.1-9ubuntu3
    • 5.3.1-10ubuntu2
    • 5.3.1-11ubuntu1
    • 5.3.1-12ubuntu1
    • 5.3.1-12ubuntu2
    • 5.3.1-12ubuntu4
    • 5.3.1-13ubuntu1
    • 5.3.1-13ubuntu3
    • 5.3.1-13ubuntu4
    • 5.3.1-13ubuntu6
    • 5.3.1-14ubuntu2
    • 5.3.1-14ubuntu2.1
    • 5.4.0-6ubuntu1~16.04.1
    • 5.4.0-6ubuntu1~16.04.2
    • 5.4.0-6ubuntu1~16.04.4
    • 5.4.0-6ubuntu1~16.04.5
    • 5.4.0-6ubuntu1~16.04.6
    • 5.4.0-6ubuntu1~16.04.9
    • 5.4.0-6ubuntu1~16.04.10
    • 5.4.0-6ubuntu1~16.04.11
    • 5.4.0-6ubuntu1~16.04.12
    • 5.4.0-6ubuntu1~16.04.12+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-5-cross Ubuntu 16.04 LTS

    Versions
    • 12ubuntu1
    • 15ubuntu1
    • 18ubuntu1
    • 20ubuntu3
    • 20ubuntu5
    • 20ubuntu6
    All versions (9)
    • 24ubuntu0.1
    • 24ubuntu0.2
    • 24ubuntu0.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gccgo-6 Ubuntu Pro 16.04 LTS

    Versions
    • 6-20160210-0ubuntu2
    • 6-20160217-0ubuntu1
    • 6-20160220-0ubuntu1
    • 6-20160225-0ubuntu1
    • 6-20160225-0ubuntu2
    • 6-20160227-0ubuntu1
    All versions (12)
    • 6-20160313-0ubuntu1
    • 6-20160319-0ubuntu1
    • 6-20160405-0ubuntu1
    • 6-20160405-0ubuntu2
    • 6.0.1-0ubuntu1
    • 6.0.1-0ubuntu1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-4.7 Ubuntu 16.04 LTS

    Versions
    • 4.7.4-3ubuntu3
    • 4.7.4-3ubuntu7
    • 4.7.4-3ubuntu9
    • 4.7.4-3ubuntu10
    • 4.7.4-3ubuntu11
    • 4.7.4-3ubuntu12
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-4.7-armel-cross Ubuntu 16.04 LTS

    Versions
    • 1.86
    • 1.90
    • 3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-4.7-armhf-cross Ubuntu 16.04 LTS

    Versions
    • 1.86
    • 1.87
    • 3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • gcc-4.8 Ubuntu 16.04 LTS

    Versions
    • 4.8.5-1ubuntu1
    • 4.8.5-2ubuntu1
    • 4.8.5-3ubuntu1
    • 4.8.5-3ubuntu2
    • 4.8.5-3ubuntu3
    • 4.8.5-4ubuntu1
    All versions (7)
    • 4.8.5-4ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →