Bug 2521767 (CVE-2026-78322) - CVE-2026-78322 file-roller: file-roller: stack buffer overflow in parse_progress_line for 7z and RAR handlers
Summary: CVE-2026-78322 file-roller: file-roller: stack buffer overflow in parse_progr...
Keywords:
Status: NEW
Alias: CVE-2026-78322
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2523231
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-24 08:58 UTC by OSIDB Bzimport
Modified: 2026-08-25 04:54 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-24 08:58:31 UTC
A stack-based buffer overflow exists in file-roller's parse_progress_line() functions in the 7z and RAR archive backends (src/fr-command-7z.c and src/fr-command-rar.c). When processing output from the 7z or rar subprocess, file paths from archive entries are copied with strcpy() into fixed-size stack buffers (4196 and 4096 bytes) without length validation. An archive containing a file entry with a path longer than these buffers causes a stack buffer overflow when the user opens or extracts the archive in file-roller, resulting in denial of service (process termination). Practical code execution is considered difficult on hardened builds with stack canaries, PIE, and ASLR.

Reported upstream as https://gitlab.gnome.org/GNOME/file-roller/-/issues/327 by Yukihiro Nakamura. 
Fixed upstream in commit ffb76dc866342cef6a4914873faaa880d14d5aa4 ("Check line length when parsing command output"), first released in file-roller 44.7.


Note You need to log in before you can comment on or make changes to this bug.