Advisory

USN-7700-1

Also known as: CVE-2023-4039

Summary

gcc-10, gcc-11, gcc-12 vulnerability

Details

It was discovered that the -fstack-protector hardening feature in GCC for
AArch64 did not properly protect dynamically-sized local variables
such as those created using C99 variable length arrays or alloca. As a
result, an attacker who was able to trigger a buffer overflow in such cases
could bypass the intended stack protection checks. (CVE-2023-4039)

Severity

Not rated by the source.

Dates

Published
2025-08-19 13:11 UTC
Modified
2026-04-27 18:13 UTC

Affected packages and fixes

gcc-10

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 10.5.0-1ubuntu1~22.04.2 (ecosystem)

Fixed versions

10.5.0-1ubuntu1~22.04.2

Fix

  • Fixed version 10.5.0-1ubuntu1~22.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

gcc-11

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 11.4.0-1ubuntu1~22.04.2 (ecosystem)

Fixed versions

11.4.0-1ubuntu1~22.04.2

Fix

  • Fixed version 11.4.0-1ubuntu1~22.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

gcc-12

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 12.3.0-1ubuntu1~22.04.2 (ecosystem)

Fixed versions

12.3.0-1ubuntu1~22.04.2

Fix

  • Fixed version 12.3.0-1ubuntu1~22.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences