Advisory

UBUNTU-CVE-2021-35942

Also known as: CVE-2021-35942

Summary

The record has no summary.

Details

The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse_param (in posix/wordexp.c) when called with an untrusted, crafted pattern, potentially resulting in a denial of service or disclosure of information. This occurs because atoi was used but strtoul should have been used to ensure correct calculations.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Dates

Published
2021-07-22 18:15 UTC
Modified
2026-04-22 12:56 UTC

Affected packages and fixes

glibc

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.27-3ubuntu1.5 (ecosystem)

Fixed versions

2.27-3ubuntu1.5

Fix

  • Fixed version 2.27-3ubuntu1.5
    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 20.04

Affected

  • introduced 0, fixed 2.31-0ubuntu9.7 (ecosystem)

Fixed versions

2.31-0ubuntu9.7

Fix

  • Fixed version 2.31-0ubuntu9.7
    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