Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×

Alerts This Week
Warning Icon 1 494
Alerts This Week
Warning Icon 1 494

Ubuntu 24.04 LTS Security Advisory USN-7064-1: nano privilege escalation

ubuntu
Calendar Grey October 15, 2024
Scroller Ubuntu
Ubuntu has released security patches addressing a critical privilege escalation flaw in nano across various LTS versions. Prompt action is crucial for your system's protection
nano could be made to give users administrator privileges.

Summary

nano could be made to give users administrator privileges.

Software Description:

- nano: small, friendly text editor inspired by Pico

Details:

It was discovered that nano allowed a possible privilege escalation

through an insecure temporary file. If nano was killed while editing, the

permissions granted to the emergency save file could be used by an

attacker to escalate privileges using a malicious symlink.

Update Instructions

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 24.04 LTS
   nano                            7.2-2ubuntu0.1

Ubuntu 22.04 LTS
   nano                            6.2-1ubuntu0.1

Ubuntu 20.04 LTS
   nano                            4.8-1ubuntu1.1

Ubuntu 18.04 LTS
   nano                            2.9.3-2ubuntu0.1~esm1
                                   Available with Ubuntu Pro

Ubuntu 16.04 LTS
   nano                            2.5.3-2ubuntu2+esm1
                                   Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References

  https://ubuntu.com/security/notices/USN-7064-1

  CVE-2024-5742

Severity
critical
Lowest
Low
Medium
High
Critical

Ubuntu Security Notice USN-7064-1

Package Information

  https://launchpad.net/ubuntu/+source/nano/7.2-2ubuntu0.1
  https://launchpad.net/ubuntu/+source/nano/6.2-1ubuntu0.1
  https://launchpad.net/ubuntu/+source/nano/4.8-1ubuntu1.1

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.