Bug 2460018 (CVE-2026-6842) - CVE-2026-6842 nano: nano: Local attacker can inject malicious .desktop launcher due to insecure directory permissions
Summary: CVE-2026-6842 nano: nano: Local attacker can inject malicious .desktop launch...
Keywords:
Status: NEW
Alias: CVE-2026-6842
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2460502
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-21 08:47 UTC by OSIDB Bzimport
Modified: 2026-04-22 07:23 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-21 08:47:02 UTC
nano creates ~/.local with mode 0777 instead of 0700. In permissive-umask environments (containers, CI), local attacker can race to inject malicious .desktop launcher. The subsequent mkdir for ~/.local/share correctly uses 0700.

Affected: src/history.c lines 229-234. BZ#2455314.
Reported by Michał Majchrowicz and Marcin Wyczechowski, AFINE Team.


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