GLSA 201710-02: file: Stack-based buffer overflow

Severity:normal
Title:file: Stack-based buffer overflow
Date:10/08/2017
Bugs: #629872
ID:201710-02

Synopsis

A stack-based buffer overflow was found in file, possibly resulting in the execution of arbitrary code.

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Affected packages

Package Vulnerable Unaffected Architecture(s)
sys-apps/file < 5.32 >= 5.32 All supported architectures

Description

An issue discovered in file allows attackers to write 20 bytes to the stack buffer via a specially crafted .notes section.

Impact

A remote attacker, by using a specially crafted .notes section in an ELF binary, could execute arbitrary code or cause a Denial of Service condition.

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.32"
    

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-201710-02.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!