The fbgs script provided by fbida allows the execution of arbitrary code.
| Package | Arch | Vulnerable | Unaffected |
|---|---|---|---|
| media-gfx/fbida | * | < 2.03-r4 | >= 2.03-r4 |
fbida is a collection of image viewers and editors for the framebuffer console and X11. fbgs is a PostScript and PDF viewer for the linux framebuffer console.
Toth Andras has discovered a typographic mistake in the "fbgs" script, shipped with fbida if the "fbcon" and "pdf" USE flags are both enabled. This script runs "gs" without the -dSAFER option, thus allowing a PostScript file to execute, delete or create any kind of file on the system.
A remote attacker can entice a vulnerable user to view a malicious PostScript or PDF file with fbgs, which may result with the execution of arbitrary code.
There is no known workaround at this time.
All fbida users with the "fbcon" and "pdf" USE flags both enabled should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=media-gfx/fbida-2.03-r4"
fbida is vulnerable to linking attacks, potentially allowing a local user to overwrite arbitrary files.
| Package | Arch | Vulnerable | Unaffected |
|---|---|---|---|
| media-gfx/fbida | * | < 2.03-r3 | >= 2.03-r3 |
fbida is a collection of image viewers and editors for the framebuffer console and X11.
Jan Braun has discovered that the "fbgs" script provided by fbida insecurely creates temporary files in the "/var/tmp" directory.
A local attacker could create links in the temporary file directory, pointing to a valid file somewhere on the filesystem. When an affected script is called, this could result in the file being overwritten with the rights of the user running the script.
There is no known workaround at this time.
All fbida users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=media-gfx/fbida-2.03-r3"