Bug 1791954 (CVE-2019-20095)

Summary: CVE-2019-20095 kernel: memory leak in mwifiex_tm_cmd in drivers/net/wireless/marvell/mwifiex/cfg80211.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, airlied, bdettelb, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jlelli, john.j5live, jonathan, josef, jross, jschorr, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, masami256, matt, mchehab, mcressma, mjg59, mlangsdo, nmurray, qzhao, rt-maint, rvrbovsk, steved, williams, wmealing
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's mwifiex driver implementation when connecting to other WiFi devices in "Test Mode." A kernel memory leak can occur if an error condition is met during the parameter negotiation. This issue can lead to a denial of service if multiple error conditions meeting the repeated connection attempts are attempted.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-16 16:32:10 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: 1791955, 1804971, 1804972, 1804973, 1804974, 1804975    
Bug Blocks: 1791956    

Description Guilherme de Almeida Suckevicz 2020-01-16 19:00:50 UTC
The Mwifiex driver implementation in the Linux kernel has a memory leak on the error condition when encountering an error condition when in 'Wifi test mode'. 

Wifi test mode is a 'region' mode that wireless devices can use that allows for full use of the wifi spectrum disregarding regional laws that prohibit broadcasting in certain ranges.

This requires a connection to another wifi device in "test mode" to create the error condition.

Reference and upstream commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=003b686ace820ce2d635a83f10f2d7f9c147dabc

Comment 1 Guilherme de Almeida Suckevicz 2020-01-16 19:03:09 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1791955]

Comment 2 Justin M. Forbes 2020-01-16 21:00:27 UTC
This was fixed for Fedora in the 5.1.6 stable kernel updates.

Comment 7 Wade Mealing 2020-02-20 02:29:09 UTC
Mitigation:

As connecting to a wireless device is not automatic and initiated by a user, not connecting to rogue access points would prevent this flaw from being abused.

Comment 8 errata-xmlrpc 2020-04-16 14:38:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1493 https://access.redhat.com/errata/RHSA-2020:1493

Comment 9 Product Security DevOps Team 2020-04-16 16:32:10 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-2019-20095

Comment 10 errata-xmlrpc 2020-09-29 18:59:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:4062 https://access.redhat.com/errata/RHSA-2020:4062

Comment 11 errata-xmlrpc 2020-09-29 20:53:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:4060 https://access.redhat.com/errata/RHSA-2020:4060