Upstream information

CVE-2023-42456 at MITRE

Description

Sudo-rs, a memory safe implementation of sudo and su, allows users to not have to enter authentication at every sudo attempt, but instead only requiring authentication every once in a while in every terminal or process group. Only once a configurable timeout has passed will the user have to re-authenticate themselves. Supporting this functionality is a set of session files (timestamps) for each user, stored in `/var/run/sudo-rs/ts`. These files are named according to the username from which the sudo attempt is made (the origin user).

An issue was discovered in versions prior to 0.2.1 where usernames containing the `.` and `/` characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username `../../../../bin/cp`. When logged in as a user with that name, that user could run `sudo -K` to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of `/bin/cp`. The code then clears that file, resulting in the `cp` binary effectively being removed from the system.

An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames.

The issue is patched in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values.

The `sudo -K` and `sudo -k` commands can run, even if a user has no sudo access. As a workaround, make sure that one's system does not contain any users with a specially crafted username. While this is the case and while untrusted users do not have the ability to create arbitrary users on the system, one should not be able to exploit this issue.

SUSE information

Overall state of this security issue: Analysis

This issue is currently rated as having moderate severity.

CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 3.1 3.1
Vector CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L
Attack Vector Local Local
Attack Complexity Low Low
Privileges Required High High
User Interaction Required Required
Scope Unchanged Unchanged
Confidentiality Impact None None
Integrity Impact Low Low
Availability Impact Low Low
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1230342 [NEW]

No SUSE Security Announcements cross referenced.

List of released packages

Product(s) Fixed package version(s) References
SUSE Linux Enterprise Desktop 15 SP6
SUSE Linux Enterprise High Performance Computing 15 SP6
SUSE Linux Enterprise Module for Basesystem 15 SP6
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • sudo >= 1.9.15p5-150600.1.2
  • sudo-devel >= 1.9.15p5-150600.1.2
  • sudo-plugin-python >= 1.9.15p5-150600.1.2
  • sudo-policy-sudo-auth-self >= 1.9.15p5-150600.1.2
  • sudo-policy-wheel-auth-self >= 1.9.15p5-150600.1.2
  • system-group-sudo >= 1.9.15p5-150600.1.2
Patchnames:
SUSE Linux Enterprise Module for Basesystem 15 SP6 GA sudo-1.9.15p5-150600.1.2
SUSE Linux Enterprise Micro 6.0
  • sudo >= 1.9.15p5-1.3
Patchnames:
SUSE Linux Enterprise Micro 6.0 GA sudo-1.9.15p5-1.3
SUSE Linux Enterprise Micro 6.1
  • sudo >= 1.9.15p5-slfo.1.1_1.2
Patchnames:
SUSE Linux Enterprise Micro 6.1 GA sudo-1.9.15p5-slfo.1.1_1.2
openSUSE Tumbleweed
  • sudo >= 1.9.15p2-1.1
  • sudo-devel >= 1.9.15p2-1.1
  • sudo-plugin-python >= 1.9.15p2-1.1
  • sudo-policy-sudo-auth-self >= 1.9.15p2-1.1
  • sudo-policy-wheel-auth-self >= 1.9.15p2-1.1
  • sudo-test >= 1.9.15p2-1.1
  • system-group-sudo >= 1.9.15p2-1.1
Patchnames:
openSUSE-Tumbleweed-2024-13490


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SLES15-SP5-CHOST-BYOS-Aliyun sudo Analysis
SLES15-SP5-CHOST-BYOS-Azure sudo Analysis
SLES15-SP5-CHOST-BYOS-EC2 sudo Analysis
SLES15-SP5-CHOST-BYOS-GCE sudo Analysis
SLES15-SP5-CHOST-BYOS-SAP-CCloud sudo Analysis
SLES15-SP6-CHOST-BYOS sudo Already fixed
SLES15-SP6-CHOST-BYOS-Aliyun sudo Already fixed
SLES15-SP6-CHOST-BYOS-Azure sudo Already fixed
SLES15-SP6-CHOST-BYOS-EC2 sudo Already fixed
SLES15-SP6-CHOST-BYOS-GCE sudo Already fixed
SLES15-SP6-CHOST-BYOS-GDC sudo Already fixed
SLES15-SP6-CHOST-BYOS-SAP-CCloud sudo Already fixed
SUSE Linux Enterprise Desktop 15 SP5 sudo Analysis
SUSE Linux Enterprise Desktop 15 SP6 sudo Already fixed
SUSE Linux Enterprise High Performance Computing 15 SP5 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP6 sudo Already fixed
SUSE Linux Enterprise Micro 5.1 sudo Analysis
SUSE Linux Enterprise Micro 5.2 sudo Analysis
SUSE Linux Enterprise Micro 5.3 sudo Analysis
SUSE Linux Enterprise Micro 5.4 sudo Analysis
SUSE Linux Enterprise Micro 5.5 sudo Analysis
SUSE Linux Enterprise Micro 6.0 sudo Released
SUSE Linux Enterprise Module for Basesystem 15 SP5 sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 SP6 sudo Already fixed
SUSE Linux Enterprise Server 15 SP5 sudo Analysis
SUSE Linux Enterprise Server 15 SP6 sudo Already fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP5 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 15 SP6 sudo Already fixed
SUSE Manager Proxy 4.3 sudo Analysis
SUSE Manager Retail Branch Server 4.3 sudo Analysis
SUSE Manager Server 4.3 sudo Analysis
openSUSE Leap 15.5 sudo Analysis
openSUSE Leap 15.6 sudo Already fixed
openSUSE Leap Micro 5.5 sudo Analysis
Products under Long Term Service Pack support and receiving important and critical security fixes.
SLES15-EC2-CHOST-HVM-BYOS sudo Analysis
SLES15-SP1-CHOST-BYOS-Azure sudo Analysis
SLES15-SP1-CHOST-BYOS-EC2 sudo Analysis
SLES15-SP1-CHOST-BYOS-GCE sudo Analysis
SLES15-SP2-CHOST-BYOS-Aliyun sudo Analysis
SLES15-SP2-CHOST-BYOS-Azure sudo Analysis
SLES15-SP2-CHOST-BYOS-EC2 sudo Analysis
SLES15-SP2-CHOST-BYOS-GCE sudo Analysis
SLES15-SP3-CHOST-BYOS-Aliyun sudo Analysis
SLES15-SP3-CHOST-BYOS-Azure sudo Analysis
SLES15-SP3-CHOST-BYOS-EC2 sudo Analysis
SLES15-SP3-CHOST-BYOS-GCE sudo Analysis
SLES15-SP3-CHOST-BYOS-SAP-CCloud sudo Analysis
SLES15-SP4-CHOST-BYOS sudo Analysis
SLES15-SP4-CHOST-BYOS-Aliyun sudo Analysis
SLES15-SP4-CHOST-BYOS-Azure sudo Analysis
SLES15-SP4-CHOST-BYOS-EC2 sudo Analysis
SLES15-SP4-CHOST-BYOS-GCE sudo Analysis
SLES15-SP4-CHOST-BYOS-SAP-CCloud sudo Analysis
SUSE Linux Enterprise Desktop 15 SP4 sudo Analysis
SUSE Linux Enterprise High Performance Computing 12 SP5 sudo Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP2 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP3 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP4 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 SP2 sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 SP3 sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 SP4 sudo Analysis
SUSE Linux Enterprise Server 12 SP5 sudo Unsupported
SUSE Linux Enterprise Server 12 SP5-LTSS sudo Analysis
SUSE Linux Enterprise Server 15 SP2 sudo Analysis
SUSE Linux Enterprise Server 15 SP2-LTSS sudo Analysis
SUSE Linux Enterprise Server 15 SP3 sudo Analysis
SUSE Linux Enterprise Server 15 SP3-LTSS sudo Analysis
SUSE Linux Enterprise Server 15 SP4 sudo Analysis
SUSE Linux Enterprise Server 15 SP4-LTSS sudo Analysis
SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 12 SP5 sudo Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP2 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 15 SP3 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 15 SP4 sudo Analysis
Products past their end of life and not receiving proactive updates anymore.
HPE Helion OpenStack 8 sudo Analysis
SUSE CaaS Platform 3.0 sudo Analysis
SUSE CaaS Platform 4.0 sudo Analysis
SUSE Enterprise Storage 6 sudo Analysis
SUSE Enterprise Storage 7 sudo Analysis
SUSE Enterprise Storage 7.1 sudo Unsupported
SUSE Linux Enterprise Desktop 11 SP3 sudo Analysis
SUSE Linux Enterprise Desktop 11 SP4 sudo Analysis
SUSE Linux Enterprise Desktop 12 SP2 sudo Analysis
SUSE Linux Enterprise Desktop 12 SP3 sudo Analysis
SUSE Linux Enterprise Desktop 12 SP4 sudo Analysis
SUSE Linux Enterprise Desktop 15 sudo Analysis
SUSE Linux Enterprise Desktop 15 SP1 sudo Analysis
SUSE Linux Enterprise Desktop 15 SP2 sudo Analysis
SUSE Linux Enterprise Desktop 15 SP3 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP1 sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15-ESPOS sudo Analysis
SUSE Linux Enterprise High Performance Computing 15-LTSS sudo Analysis
SUSE Linux Enterprise Micro 5.0 sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 sudo Analysis
SUSE Linux Enterprise Module for Basesystem 15 SP1 sudo Analysis
SUSE Linux Enterprise Point of Sale 11 SP3 sudo Analysis
SUSE Linux Enterprise Point of Sale 12 SP2-CLIENT sudo Analysis
SUSE Linux Enterprise Real Time 15 SP2 sudo Analysis
SUSE Linux Enterprise Real Time 15 SP3 sudo Analysis
SUSE Linux Enterprise Real Time 15 SP4 sudo Analysis
SUSE Linux Enterprise Server 11 SP3 sudo Analysis
SUSE Linux Enterprise Server 11 SP3-LTSS sudo Analysis
SUSE Linux Enterprise Server 11 SP4 sudo Analysis
SUSE Linux Enterprise Server 11 SP4 LTSS sudo Analysis
SUSE Linux Enterprise Server 11 SP4-LTSS sudo Analysis
SUSE Linux Enterprise Server 12 SP2 sudo Analysis
SUSE Linux Enterprise Server 12 SP2-BCL sudo Analysis
SUSE Linux Enterprise Server 12 SP2-ESPOS sudo Analysis
SUSE Linux Enterprise Server 12 SP2-LTSS sudo Analysis
SUSE Linux Enterprise Server 12 SP3 sudo Analysis
SUSE Linux Enterprise Server 12 SP3-BCL sudo Analysis
SUSE Linux Enterprise Server 12 SP3-ESPOS sudo Analysis
SUSE Linux Enterprise Server 12 SP3-LTSS sudo Analysis
SUSE Linux Enterprise Server 12 SP4 sudo Analysis
SUSE Linux Enterprise Server 12 SP4-ESPOS sudo Analysis
SUSE Linux Enterprise Server 12 SP4-LTSS sudo Analysis
SUSE Linux Enterprise Server 15 sudo Analysis
SUSE Linux Enterprise Server 15 SP1 sudo Analysis
SUSE Linux Enterprise Server 15 SP1-BCL sudo Analysis
SUSE Linux Enterprise Server 15 SP1-LTSS sudo Analysis
SUSE Linux Enterprise Server 15 SP2-BCL sudo Analysis
SUSE Linux Enterprise Server 15 SP3-BCL sudo Analysis
SUSE Linux Enterprise Server 15-LTSS sudo Analysis
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 12 SP2 sudo Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP3 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 12 SP4 sudo Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 sudo Analysis
SUSE Linux Enterprise Server for SAP Applications 15 SP1 sudo Analysis
SUSE Linux Enterprise Software Development Kit 12 SP2 sudo Analysis
SUSE Linux Enterprise Software Development Kit 12 SP3 sudo Analysis
SUSE Linux Enterprise Software Development Kit 12 SP4 sudo Analysis
SUSE Linux Enterprise Software Development Kit 12 SP5 sudo Unsupported
SUSE Manager Proxy 4.0 sudo Analysis
SUSE Manager Proxy 4.1 sudo Analysis
SUSE Manager Proxy 4.2 sudo Analysis
SUSE Manager Retail Branch Server 4.0 sudo Analysis
SUSE Manager Retail Branch Server 4.1 sudo Analysis
SUSE Manager Retail Branch Server 4.2 sudo Analysis
SUSE Manager Server 4.0 sudo Analysis
SUSE Manager Server 4.1 sudo Analysis
SUSE Manager Server 4.2 sudo Analysis
SUSE OpenStack Cloud 7 sudo Analysis
SUSE OpenStack Cloud 8 sudo Analysis
SUSE OpenStack Cloud 9 sudo Unsupported
SUSE OpenStack Cloud Crowbar 8 sudo Analysis
SUSE OpenStack Cloud Crowbar 9 sudo Unsupported
openSUSE Leap 15.3 sudo Analysis
openSUSE Leap 15.4 sudo Analysis
openSUSE Leap Micro 5.2 sudo Analysis
openSUSE Leap Micro 5.3 sudo Analysis
openSUSE Leap Micro 5.4 sudo Analysis
Products at an unknown state of their lifecycle.
SLES15-SP5-CHOST-BYOS-GDC sudo Analysis
Container Status
ses/6/cephcsi/cephcsi
ses/6/rook/ceph
ses/7.1/cephcsi/cephcsi
ses/7.1/rook/ceph
ses/7/ceph/ceph
ses/7/cephcsi/cephcsi
ses/7/rook/ceph
suse/sle-micro-rancher/5.2
suse/sle-micro-rancher/5.3
suse/sle-micro-rancher/5.4
suse/sle-micro/5.0/toolbox
suse/sle-micro/5.1/toolbox
suse/sle-micro/5.2/toolbox
suse/sle-micro/5.3/toolbox
suse/sle-micro/5.4/toolbox
suse/sle-micro/5.5
suse/sle-micro/5.5/toolbox
sudoAnalysis
bci/spack
suse/manager/5.0/x86_64/server
sudoAlready fixed


SUSE Timeline for this CVE

CVE page created: Thu Sep 21 20:00:17 2023
CVE page last modified: Sat Nov 23 14:26:24 2024