Advisory

UBUNTU-CVE-2026-6791

Also known as: CVE-2026-6791

Summary

The record has no summary.

Details

When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory. The implementation allocates memory for this username directly on the stack using the strndupa macro. Because the size of this allocation was determined by the length of the user-supplied input without any bounds checks, passing an excessively long username e.g. thousands of characters, forces the thread to exhaust its stack space. Thus if an application passes untrusted, attacker-controlled input to the wordexp function, an attacker can trigger a stack clash.

Severity

Not rated by the source.

Dates

Published
2026-08-10 19:17 UTC
Modified
2026-09-10 16:41 UTC

Affected packages and fixes

glibc

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.35-0ubuntu3.15 (ecosystem)

Fixed versions

2.35-0ubuntu3.15

Fix

  • Fixed version 2.35-0ubuntu3.15
    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.

glibc

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.39-0ubuntu8.9 (ecosystem)

Fixed versions

2.39-0ubuntu8.9

Fix

  • Fixed version 2.39-0ubuntu8.9
    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.

glibc

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.43-2ubuntu2.4 (ecosystem)

Fixed versions

2.43-2ubuntu2.4

Fix

  • Fixed version 2.43-2ubuntu2.4
    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