Bug 2174218 (CVE-2023-27320)

Summary: CVE-2023-27320 sudo: double free with per-command chroot sudoers rules
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dapospis, jburrell, rsroka
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sudo 1.9.13p2 Doc Type: If docs needed, set a value
Doc Text:
A double-free vulnerability was found in Sudo in the per-command chroot feature. This flaw exists due to a boundary error when matching a sudoer rule that contains a per-command chroot directive (CHROOT=dir). By sending a specially-crafted request, a local privileged attacker can elevate privileges and execute arbitrary code on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-02 08:18:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2174219    
Bug Blocks: 2174135    

Description Guilherme de Almeida Suckevicz 2023-02-28 20:32:17 UTC
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.

References:
https://www.sudo.ws/releases/stable/#1.9.13p2
https://www.openwall.com/lists/oss-security/2023/02/28/1

Comment 1 Guilherme de Almeida Suckevicz 2023-02-28 20:34:30 UTC
Created sudo tracking bugs for this issue:

Affects: fedora-all [bug 2174219]

Comment 2 Product Security DevOps Team 2023-03-02 08:18:38 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-27320