Bug 2087658 (CVE-2022-30688)

Summary: CVE-2022-30688 needrestart: local privilege escalation
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: duck
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-18 11:15:08 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: 2087659, 2087660, 2087661, 2087662    
Bug Blocks:    

Description Sandipan Roy 2022-05-18 07:33:51 UTC
needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters are not anchored, allowing a local user to escalate privileges when needrestart tries to detect if interpreters are using old source files.

https://www.openwall.com/lists/oss-security/2022/05/17/9
https://github.com/liske/needrestart/releases/tag/v3.6
https://lists.debian.org/debian-security-announce/2022/msg00105.html
https://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30
http://www.openwall.com/lists/oss-security/2022/05/17/9

Comment 1 Sandipan Roy 2022-05-18 07:35:17 UTC
Created needrestart tracking bugs for this issue:

Affects: epel-7 [bug 2087660]
Affects: epel-8 [bug 2087661]
Affects: fedora-34 [bug 2087662]
Affects: fedora-35 [bug 2087659]

Comment 2 Product Security DevOps Team 2022-05-18 11:15:06 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.