Bug 1191468 (CVE-2021-38297)

Summary: VUL-0: CVE-2021-38297: go1.15,go1.16,go1.17: misc/wasm, cmd/link: do not let command line args overwrite global data
Product: [Novell Products] SUSE Security Incidents Reporter: Jeff Kowalczyk <jkowalczyk>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: abergmann, andreas.taschner, jkowalczyk, rfrohl
Version: unspecifiedFlags: abergmann: needinfo? (jkowalczyk)
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/312102/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-38297:6.2:(AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jeff Kowalczyk 2021-10-08 01:27:11 UTC
When invoking functions from WASM modules, built using GOARCH=wasm GOOS=js, passing very large arguments can cause portions of the module to be overwritten with data from the arguments.

If using wasm_exec.js to execute WASM modules, users will need to replace their copy (as described in https://golang.org/wiki/WebAssembly#getting-started) after rebuilding any modules.

This is issue go#48797 and CVE-2021-38297. Thanks to Ben Lubar for reporting this issue.

Refs:

https://github.com/golang/go/issues/48797
Comment 1 OBSbugzilla Bot 2021-10-08 04:40:15 UTC
This is an autogenerated message for OBS integration:
This bug (1191468) was mentioned in
https://build.opensuse.org/request/show/924125 Factory / go1.16
https://build.opensuse.org/request/show/924126 Factory / go1.17
Comment 4 Swamp Workflow Management 2021-10-20 19:22:26 UTC
SUSE-SU-2021:3487-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1182345,1191468
CVE References: CVE-2021-38297
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Development Tools 15-SP3 (src):    go1.16-1.16.9-1.29.1
SUSE Linux Enterprise Module for Development Tools 15-SP2 (src):    go1.16-1.16.9-1.29.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Swamp Workflow Management 2021-10-20 19:38:53 UTC
openSUSE-SU-2021:3487-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1182345,1191468
CVE References: CVE-2021-38297
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    go1.16-1.16.9-1.29.1
Comment 6 Swamp Workflow Management 2021-10-20 19:49:12 UTC
openSUSE-SU-2021:3488-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1190649,1191468
CVE References: CVE-2021-38297
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    go1.17-1.17.2-1.6.2
Comment 7 Swamp Workflow Management 2021-10-20 19:50:44 UTC
SUSE-SU-2021:3488-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1190649,1191468
CVE References: CVE-2021-38297
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Development Tools 15-SP3 (src):    go1.17-1.17.2-1.6.2
SUSE Linux Enterprise Module for Development Tools 15-SP2 (src):    go1.17-1.17.2-1.6.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2021-10-31 20:58:34 UTC
openSUSE-SU-2021:1420-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1182345,1191468
CVE References: CVE-2021-38297
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    go1.16-1.16.9-lp152.14.1