file: Stack Buffer Overread — GLSA 202409-06

A vulnerability has been discovered in file, which could lead to a denial of service.

Affected packages

sys-apps/file on all architectures
Affected versions < 5.42
Unaffected versions >= 5.42

Background

The file utility attempts to identify a file’s format by scanning binary data for patterns.

Description

Multiple vulnerabilities have been discovered in file. Please review the CVE identifiers referenced below for details.

Impact

File has an stack-based buffer over-read in file_copystr in funcs.c.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-apps/file-5.42"
 

References

Release date
September 22, 2024

Latest revision
September 22, 2024: 1

Severity
normal

Exploitable
remote

Bugzilla entries