GNU Tar: Out of Bounds Read — GLSA 202402-12

A vulnerability has been discovered in GNU Tar which may lead to an out of bounds read.

Affected packages

app-arch/tar on all architectures
Affected versions < 1.34-r3
Unaffected versions >= 1.34-r3

Background

The GNU Tar program provides the ability to create tar archives, as well as various other kinds of manipulation.

Description

A vulnerability have been discovered in GNU Tar. Please review the CVE identifier referenced below for details.

Impact

GNU Tar has a one-byte out-of-bounds read that results in use of uninitialized memory for a conditional jump. Exploitation to change the flow of control has not been demonstrated. The issue occurs via a V7 archive in which mtime has approximately 11 whitespace characters.

Workaround

There is no known workaround at this time.

Resolution

All GNU Tar users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-arch/tar-1.34-r3"
 

References

Release date
February 18, 2024

Latest revision
February 18, 2024: 1

Severity
high

Exploitable
remote

Bugzilla entries