Bug 2208602 (CVE-2023-31972)

Summary: CVE-2023-31972 yasm: use-after-free in pp_getline() in modules/preprocs/nasm/nasm-pp.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fjansen, nickc, sipoyare
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2208603, 2208604, 2208616, 2208617    
Bug Blocks: 2196620    

Description Guilherme de Almeida Suckevicz 2023-05-19 18:00:02 UTC
yasm v1.3.0 was discovered to contain a use after free via the function pp_getline at /nasm/nasm-pp.c.


Comment 1 Guilherme de Almeida Suckevicz 2023-05-19 18:00:23 UTC
Created yasm tracking bugs for this issue:

Affects: epel-all [bug 2208604]
Affects: fedora-all [bug 2208603]

Comment 3 Siddhesh Poyarekar 2023-05-19 19:31:31 UTC
This should be rejected as per yasm security policy, unless there's a way this could be exploited using *trusted* input: